[LIBREPORT PATCH 1/4] fix rpmlint issues in the spec file

Jakub Filak jfilak at redhat.com
Mon Jul 15 09:12:24 UTC 2013


Related to abrt/abrt#669

Signed-off-by: Jakub Filak <jfilak at redhat.com>
---
 libreport.spec.in | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/libreport.spec.in b/libreport.spec.in
index df37227..fb36c59 100644
--- a/libreport.spec.in
+++ b/libreport.spec.in
@@ -77,7 +77,7 @@ Development libraries and headers for libreport
 
 %package web
 Summary: Library providing network API for libreport
-Group: Libraries
+Group: System Environment/Libraries
 Requires: libreport = %{version}-%{release}
 
 %description web
@@ -254,6 +254,7 @@ Plugin to report bugs into anonymous FTP site associated with ticketing system.
 %package fedora
 Summary: Default configuration for reporting bugs via Fedora infrastructure
 Group: Applications/File
+Requires: %{name} = %{version}-%{release}
 
 %description fedora
 Default configuration for reporting bugs via Fedora infrastructure
@@ -263,6 +264,7 @@ install this package and you're done.
 %package rhel
 Summary: Default configuration for reporting bugs via Red Hat infrastructure
 Group: Applications/File
+Requires: %{name} = %{version}-%{release}
 
 %description rhel
 Default configuration for reporting bugs via Red Hat infrastructure
@@ -273,8 +275,9 @@ install this package and you're done.
 %package anaconda
 Summary: Default configuration for reporting anaconda bugs
 Group: Applications/File
-Requires: libreport-plugin-reportuploader
-Requires: libreport-plugin-bugzilla
+Requires: %{name} = %{version}-%{release}
+Requires: libreport-plugin-reportuploader = %{version}-%{release}
+Requires: libreport-plugin-bugzilla = %{version}-%{release}
 
 %description anaconda
 Default configuration for reporting Anaconda problems using Fedora
@@ -342,6 +345,13 @@ fi
 %posttrans gtk
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
+
+%post web -p /sbin/ldconfig
+
+
+%postun web -p /sbin/ldconfig
+
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc README COPYING
@@ -385,10 +395,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files web
 %defattr(-,root,root,-)
-%{_libdir}/libreport-web.so*
+%{_libdir}/libreport-web.so.*
 
 %files web-devel
 %defattr(-,root,root,-)
+%{_libdir}/libreport-web.so
 %{_includedir}/libreport/libreport_curl.h
 %{_libdir}/pkgconfig/libreport-web.pc
 
-- 
1.8.3.1



More information about the Crash-catcher mailing list