Clean up the spec file for modern rpmbuild

This commit is contained in:
Kalev Lember 2011-05-27 15:56:05 +03:00
parent b840e4ee64
commit 80e56fd3d9

View File

@ -11,7 +11,6 @@ Group: System Environment/Libraries
License: LGPLv2+
URL: http://pcsclite.alioth.debian.org/ccid.html
Source0: http://alioth.debian.org/download.php/%{upstream_build}/ccid-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libusb1-devel
BuildRequires: pcsc-lite-devel >= %{pcsc_lite_ver}
@ -38,15 +37,10 @@ make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
cp -p src/openct/LICENSE LICENSE.openct
%clean
rm -rf $RPM_BUILD_ROOT
%post
[ -x %{_initrddir}/pcscd ] && %{_initrddir}/pcscd status >> /dev/null 2>&1 && %{_sbindir}/pcscd -H > /dev/null 2>&1
exit 0
@ -57,7 +51,6 @@ exit 0
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING LICENSE.openct README
%{dropdir}/ifd-ccid.bundle/
%{dropdir}/serial/
@ -67,6 +60,7 @@ exit 0
%changelog
* Fri May 27 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.4-1
- Update to 1.4.4
- Clean up the spec file for modern rpmbuild
* Sat Apr 02 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.3-1
- Update to 1.4.3