%define nspr_version 4.6 %define nss_version 3.11 Summary: Secure PIN handling using NSS crypto Name: svrcore Version: 4.1.3 Release: 3%{?dist} License: MPL2.0 URL: https://pagure.io/svrcore Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: nspr >= %{nspr_version} Requires: nss >= %{nss_version} BuildRequires: nspr-devel >= %{nspr_version} BuildRequires: nss-devel >= %{nss_version} BuildRequires: pkgconfig BuildRequires: pkgconfig(systemd) BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: systemd-devel Source0: http://www.port389.org/binaries/%{name}-%{version}.tar.bz2 %description svrcore provides applications with several ways to handle secure PIN storage e.g. in an application that must be restarted, but needs the PIN to unlock the private key and other crypto material, without user intervention. svrcore uses the facilities provided by NSS. %package devel Summary: Development files for secure PIN handling using NSS crypto Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: nspr-devel >= %{nspr_version} Requires: nss-devel >= %{nss_version} Requires: pkgconfig %description devel svrcore provides applications with several ways to handle secure PIN storage e.g. in an application that must be restarted, but needs the PIN to unlock the private key and other crypto material, without user intervention. svrcore uses the facilities provided by NSS. This package contains header files and symlinks to develop programs which will use the libsvrcore library. You should install this package if you need to develop programs which will use the svrcore library. %prep %setup -q %build autoreconf -fiv %configure --with-systemd make %install %{__rm} -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/libsvrcore.a rm -f $RPM_BUILD_ROOT%{_libdir}/libsvrcore.la %clean %{__rm} -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc LICENSE README NEWS %{_libdir}/libsvrcore.so.* %files devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/libsvrcore.so %{_includedir}/svrcore.h %changelog * Thu Aug 03 2017 Fedora Release Engineering - 4.1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Mar 17 2017 Mark Reynolds - 4.1.3-1 - release 4.1.3-1 - Ticket 18 - Remove configure outputs - Ticket 17 - update stdc to c99 to match other projects - Ticket 16 - with systemd should unset have systemd if pkgconfig not found - Ticket 14 - svrcore does not detect tty * Sat Feb 11 2017 Fedora Release Engineering - 4.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed May 4 2016 Noriko Hosoi - 4.1.2-1 - release 4.1.2-1 - Resolves: Bug 1329002 - SVRCORE - Fixing coverity issues. * Fri Apr 8 2016 Noriko Hosoi - 4.1.0-1 - Release 4.1.0-1 - Resolves: Bug 1324983 - Rebase: svrcore Added systemd ask password support (DS 48450) * Fri Feb 05 2016 Fedora Release Engineering - 4.0.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 4.0.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Aug 18 2014 Fedora Release Engineering - 4.0.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 4.0.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 4.0.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 4.0.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 4.0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 4.0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 4.0.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jul 26 2009 Fedora Release Engineering - 4.0.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 4.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Sep 6 2008 Tom "spot" Callaway - 4.0.4-3 - fix license tag * Tue Feb 19 2008 Fedora Release Engineering - 4.0.4-2 - Autorebuild for GCC 4.3 * Tue Mar 13 2007 Rich Megginson - 4.0.4-1 - Removed some autoconf generated files which were GPL only - all - code needs to be tri-licensed - updated version to 4.0.4 - added empty COPYING file - do not use the one generated by autoreconf - use bz2 for source tarball instead of gz * Wed Dec 13 2006 Rich Megginson - 4.0.3.01-0 - Fixed support for windows build by moving old makefile to src/Makefile.win - and updating instructions - I could not get configure/libtool to work - with cygwin and the msvc compiler - Added support for --with-nspr and --with-nss and finding nspr/nss - "in-tree" when building with other mozilla components - Use PK11_TokenKeyGenWithFlags instead of PK11_KeyGen * Fri Dec 08 2006 Toshio Kuratomi - 4.0.2.02-0 - Test build based on an second experimental autotools version of svrcore. * Thu Dec 07 2006 Toshio Kuratomi - 4.0.2.01-0 - Test build based on an experimental autotools version of svrcore. * Thu Jul 13 2006 Rich Megginson - 4.0.2-3 - Bump spec rev to 3 - Remove unneeded buildrequires perl, gawk, sed - Remove leading / from path macros - Remove provides for package name - done automatically - Move pkgconfig file stuff under install - Added LICENSE and README under docs * Mon Jun 26 2006 Rich Megginson - 4.0.2-2 - Bump spec rev to 2 due to change of spec file name from svrcore - to svrcore-devel to comply with fedora packaging guidelines * Thu Jun 22 2006 Rich Megginson - 4.0.2-1 - Bump rev to 4.0.2; now using HEAD of mozilla/security/coreconf - which includes the coreconf-location.patch, so got rid of patch * Tue Apr 18 2006 Rich Megginson - 4.0.1-3 - Use pkg-config --variable=includedir to get include dirs * Wed Feb 1 2006 Rich - 4.0.1-2 - Requires nss version was wrong * Wed Jan 11 2006 Rich Megginson - 4.01-1 - Removed svrcore-config - use pkg-config instead * Mon Dec 19 2005 Rich Megginson - 4.01-1 - Initial revision