diff --git a/.gitignore b/.gitignore index e69de29..87133a0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libcacard-0.1.0.tar.bz2 diff --git a/libcacard.spec b/libcacard.spec new file mode 100644 index 0000000..3f4fa13 --- /dev/null +++ b/libcacard.spec @@ -0,0 +1,73 @@ +Name: libcacard +Version: 0.1.0 +Release: 4%{?dist} +Summary: Common Access Card (CAC) Emulation +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.spice-space.org/download +Source0: http://www.spice-space.org/download/libcacard/libcacard-%{version}.tar.bz2 +BuildRequires: nss-devel >= 3.12.8-2 + +%description +Common Access Card (CAC) emulation library. + +%package tools +Summary: CAC Emulation tools +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description tools +CAC emulation tools. + +%package devel +Summary: CAC Emulation devel +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +CAC emulation development files. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING README +%{_libdir}/libcacard.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/cacard +%{_libdir}/pkgconfig/libcacard.pc +%{_libdir}/libcacard.so + +%files tools +%defattr(-,root,root,-) +%{_bindir}/vscclient + +%changelog +* Sun Dec 12 2010 Alon Levy - 0.1.0-4 +- address review issues: + - Group for main and devel and tools + - Requires for devel and tools +- fix changelog for previous entry (day was wrong, and macro quoting) +* Sat Dec 11 2010 Alon Levy - 0.1.0-3 +- address review issues: defattr typo, %%doc at %%files, remove .*a from install +* Thu Dec 9 2010 Alon Levy - 0.1.0-2 +- address prereview issues. +* Thu Dec 9 2010 Alon Levy - 0.1.0-1 +- initial package. + diff --git a/sources b/sources index e69de29..9c119be 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ce64ff551612eff94eab0e0ea82d2421 libcacard-0.1.0.tar.bz2