diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd73f75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libcacard-2.5.2.tar.xz diff --git a/.libcacard.metadata b/.libcacard.metadata new file mode 100644 index 0000000..9036f55 --- /dev/null +++ b/.libcacard.metadata @@ -0,0 +1 @@ +8bce876ab074b8151e8fb24475a963b9abd98e2f SOURCES/libcacard-2.5.2.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/libcacard.spec b/SPECS/libcacard.spec new file mode 100644 index 0000000..9521d9f --- /dev/null +++ b/SPECS/libcacard.spec @@ -0,0 +1,79 @@ +Name: libcacard +Version: 2.5.2 +Release: 2%{?dist} +Epoch: 40 +Summary: Common Access Card (CAC) Emulation + +Group: Development/Libraries +License: GPLv2+ and LGPLv2+ and BSD +URL: http://www.spice-space.org/page/Libcacard +Source0: http://www.spice-space.org/download/libcacard/libcacard-2.5.2.tar.xz + + +BuildRequires: glib2-devel +BuildRequires: nss-devel + +Obsoletes: libcacard-rhev + +%description +Common Access Card (CAC) emulation library. + + +%package tools +Summary: CAC Emulation tools +Group: Development/Libraries +Requires: libcacard = %{epoch}:%{version}-%{release} +Obsoletes: libcacard-tools-rhev + +%description tools +CAC emulation tools. + + +%package devel +Summary: CAC Emulation devel +Group: Development/Libraries +Requires: libcacard = %{epoch}:%{version}-%{release} +Obsoletes: libcacard-devel-rhev + +%description devel +CAC emulation development files. + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +%make_install + +find $RPM_BUILD_ROOT -name "libcacard.so*" -exec chmod +x \{\} \; +find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f + +%check +make check V=1 + +%files +%defattr(-,root,root,-) +%{_libdir}/libcacard.so.* + +%files tools +%defattr(-,root,root,-) +%{_bindir}/vscclient + +%files devel +%defattr(-,root,root,-) +%{_includedir}/cacard +%{_libdir}/libcacard.so +%{_libdir}/pkgconfig/libcacard.pc + + +%changelog +* Fri Mar 18 2016 Miroslav Rezanina - 2.5.2-2.el7 +- Obsolete libcacard-rhev (bz#1315953) + +* Fri Jan 29 2016 Miroslav Rezanina - 2.5.2-1.el7 +- Initial build