From 5d41669265692d36393a3525e91fa62fa877a09a Mon Sep 17 00:00:00 2001 From: Phil Knirsch Date: Thu, 27 Mar 2008 14:30:50 +0000 Subject: [PATCH] - Specfile cleanup, removal of static development libraries (#226414) --- sg3_utils.spec | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/sg3_utils.spec b/sg3_utils.spec index 5755543..416784c 100644 --- a/sg3_utils.spec +++ b/sg3_utils.spec @@ -1,12 +1,12 @@ Summary: Utilities for devices that use SCSI command sets Name: sg3_utils Version: 1.25 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and BSD -Group: Utilities/System +Group: Applications/System Source: http://sg.torque.net/sg/p/sg3_utils-%{version}.tgz Url: http://sg.torque.net/sg/sg3_utils.html -Provides: sg_utils +Provides: sg_utils = 1.02 BuildRequires: libtool BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -26,18 +26,18 @@ and the incorrect usage of them may render your system inoperable. %package libs Summary: Shared library for %{name} -Group: System/Libraries +Group: System Environment/Libraries %description libs This package contains the shared library for %{name}. %package devel -Summary: Static library and header files for the sgutils library -Group: Development/C +Summary: Development library and header files for the sg3_utils library +Group: Development/System Requires: %{name}-libs = %{version}-%{release} %description devel -This package contains the static %{name} library and its header files for +This package contains the %{name} library and its header files for developing applications. %prep @@ -52,10 +52,16 @@ if [ "$RPM_BUILD_ROOT" != "/" ]; then rm -rf $RPM_BUILD_ROOT fi make install DESTDIR=$RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la +rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.a %clean rm -rf $RPM_BUILD_ROOT +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + %files %defattr(-,root,root) %doc ChangeLog COVERAGE CREDITS INSTALL README README.sg_start @@ -70,10 +76,11 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %{_includedir}/scsi/*.h %{_libdir}/*.so -%{_libdir}/*.a -%{_libdir}/*.la %changelog +* Thu Mar 27 2008 Phil Knirsch - 1.25-3 +- Specfile cleanup, removal of static development libraries (#226414) + * Tue Feb 19 2008 Fedora Release Engineering - 1.25-2 - Autorebuild for GCC 4.3