diff --git a/README.md b/README.md index a0eda39..a5dbb23 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libp11 +PKCS#11 wrapper library. + diff --git a/libp11.spec b/libp11.spec new file mode 100644 index 0000000..417a707 --- /dev/null +++ b/libp11.spec @@ -0,0 +1,70 @@ +Name: libp11 +Version: 0.4.9 +Release: 1mamba +Summary: PKCS#11 wrapper library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/OpenSC/libp11 +Source: https://github.com/OpenSC/libp11/releases/download/libp11-%{version}/libp11-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +PKCS#11 wrapper library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libp11.so.* +%{_libdir}/engines/libpkcs11.so +%{_libdir}/engines/pkcs11.la +%{_libdir}/engines/pkcs11.so +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/libp11.h +%{_includedir}/p11_err.h +%{_libdir}/libp11.a +%{_libdir}/libp11.la +%{_libdir}/libp11.so +%{_libdir}/pkgconfig/libp11.pc +%{_datadir}/doc/libp11/NEWS +%doc NEWS README.md + +%changelog +* Sat Dec 08 2018 Silvan Calarco 0.4.9-1mamba +- package created using the webbuild interface