diff --git a/libpki.spec b/libpki.spec new file mode 100644 index 0000000..655c011 --- /dev/null +++ b/libpki.spec @@ -0,0 +1,58 @@ +Name: libpki +Version: 0.8.9 +Release: 0.beta1%{?dist} +Summary: OpenCA PKI development library +Group: Security/PKI +License: OpenCA License (BSD Style) +URL: http://www.openca.org/projects/libpki +Source0: %{name}-%{version}.tar.gz +BuildRequires: openssl-devel +BuildRequires: libxml2-devel +BuildRequires: openldap-devel + +%description +OpenCA Labs' Easy to use PKI library. + +%package devel +Summary: Development tools for LibPKI applications +Group: Security/PKI +Requires: libpki >= %ver + +%description devel +Includes and documentation for developing applications by using +LibPKI. + +%prep +%setup -q + + +%build +CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCH_FLAGS --prefix="%{prefix}" --mandir="%{_mandir}" +%configure +make %{?_smp_mflags} +make man + +%install +%make_install + + +%files +%defattr(-, root, root) + +%doc AUTHORS COPYING ChangeLog NEWS README + +%{_bindir}/pki-* +%{_bindir}/url-* +%{_libdir}/libpki* +%{_sysconfdir}/libpki/* +%{_sysconfdir}/pki.conf + +%files devel +%defattr(-, root, root) +%{_bindir}/libpki-config +%{_includedir}/* +%{_datadir}/* + +%changelog +* Sat Sep 1 2018 Daniel Berteaud 0.8.9-1 +- Initial release