Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > main-updates-src > by-pkgid > c76a9413e6601496d9dd7af213bea587 > files > 2

p11-kit-0.12-0.1.src.rpm

%define major	0
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d

Name:		p11-kit
Summary:	Load and enumerate PKCS#11 modules
Version:	0.12
%define subrel 1
Release:	%mkrel 0
License:	Apache License
Group:		System/Libraries
Url:		http://p11-glue.freedesktop.org/p11-kit.html
Source0:	http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz

%description
Provides a way to load and enumerate PKCS#11 modules. Provides a standard
configuration setup for installing PKCS#11 modules in such a way that
they're discoverable.

Also solves problems with coordinating the use of PKCS#11 by different
components or libraries living in the same process.

%package -n	%{libname}
Summary:	Library and proxy module for properly loading and sharing PKCS#11 modules
Group:		System/Libraries

%description -n	%{libname}
Provides a way to load and enumerate PKCS#11 modules. Provides a standard
configuration setup for installing PKCS#11 modules in such a way that
they're discoverable.

Also solves problems with coordinating the use of PKCS#11 by different
components or libraries living in the same process.

%package -n 	%{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{devname}
This package contains the development files and headers for %{name}.

%prep
%setup -q

%build
%configure2_5x	--disable-static \
		--disable-rpath

%make

%install
%makeinstall_std

#dirs for configs etc
%__mkdir_p %{buildroot}%{_sysconfdir}/pkcs11/modules

#ghost files
touch %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf

find %{buildroot} -name "*.la" -exec rm -rf {} \;

%check
%make check

%post
%create_ghostfile %{_sysconfdir}/pkcs11/pkcs11.conf root root 644

%files
%doc AUTHORS NEWS
%{_bindir}/%{name}
%dir %{_sysconfdir}/pkcs11
%dir %{_sysconfdir}/pkcs11/modules
%{_sysconfdir}/pkcs11/pkcs11.conf.example
%ghost %config(noreplace) %{_sysconfdir}/pkcs11/pkcs11.conf

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}
%{_includedir}/%{name}-1
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-1.pc


%changelog
* Tue Mar 27 2012 Oden Eriksson <oeriksson@mandriva.com> 0.12-0.1
- backported for gnutls-2.12.8+

* Mon Mar 26 2012 Per Øyvind Karlsen <peroyvind@mandriva.org> 0.12-2
+ Revision: 786857
- rebuild to get rid of rpmlib() dep
- rebuiild to get rid of rpmlib(DistEpoch) blunder and also some minor cleaning

* Tue Mar 13 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.12-1
+ Revision: 784649
- version update 0.12

* Fri Feb 10 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.11-1
+ Revision: 772388
- version update 0.11

* Wed Jan 25 2012 Andrey Bondrov <abondrov@mandriva.org> 0.10-1
+ Revision: 768189
- New version 0.10

* Thu Nov 17 2011 Matthew Dawkins <mattydaw@mandriva.org> 0.9-1
+ Revision: 731369
- imported package p11-kit


* Thu Nov 17 2011 Matthew Dawkins <mdawkins@unity-linux.org> 0.9-1-unity2011
- new version 0.9

* Thu Oct 27 2011 wally <wally> 0.8-1.mga2
+ Revision: 158797
- new version 0.8