[4812] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[7633] | 3 | %define pkg_version 0.18.1 |
---|
[4616] | 4 | %define pkg_release 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | Name: p11-kit |
---|
| 7 | Version: %{pkg_version} |
---|
| 8 | Release: %{pkg_release} |
---|
| 9 | Summary: Provides a way to load and enumerate PKCS#11 modules |
---|
| 10 | |
---|
| 11 | Group: System Environment/Libraries |
---|
| 12 | License: LGPLv2+ |
---|
| 13 | URL: http://p11-glue.freedesktop.org/p11-kit.html |
---|
| 14 | Source0: http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz |
---|
| 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
[7633] | 18 | BuildRequires: libtasn1-devel |
---|
| 19 | BuildRequires: ca-certificates |
---|
[4616] | 20 | |
---|
[7633] | 21 | Requires: ca-certificates |
---|
| 22 | |
---|
| 23 | |
---|
[4812] | 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | Packager: Takemikaduchi |
---|
[4616] | 27 | |
---|
| 28 | %description |
---|
| 29 | Provides a way to load and enumerate PKCS#11 modules. Provides a standard |
---|
| 30 | configuration setup for installing PKCS#11 modules in such a way that |
---|
| 31 | they're discoverable. |
---|
| 32 | |
---|
| 33 | Also solves problems with coordinating the use of PKCS#11 by different |
---|
| 34 | components or libraries living in the same process. |
---|
| 35 | |
---|
| 36 | |
---|
[4812] | 37 | %package devel |
---|
[4616] | 38 | Summary: Development tools for p11-kit |
---|
| 39 | Summary(ja): p11-kit の開発環境 |
---|
| 40 | Group: Development/Libraries |
---|
| 41 | Requires: %{name} = %{version}-%{release} |
---|
| 42 | Requires: pkgconfig |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | Header files and libraries for building a extension library for the |
---|
| 46 | p11-kit. |
---|
| 47 | |
---|
| 48 | |
---|
[7633] | 49 | %package docs |
---|
[4616] | 50 | Summary: Documentation for p11-kit |
---|
| 51 | Summary(ja): p11-kit 用のドキュメント |
---|
| 52 | Group: Documentation |
---|
| 53 | Requires: %{name} = %{version}-%{release} |
---|
| 54 | BuildArch: noarch |
---|
| 55 | |
---|
[7633] | 56 | %description docs |
---|
[4616] | 57 | This package contains documentation for p11-kit. |
---|
| 58 | |
---|
| 59 | |
---|
[4812] | 60 | # compat32 |
---|
| 61 | %package -n compat32-%{name} |
---|
| 62 | Summary: Provides a way to load and enumerate PKCS#11 modules |
---|
| 63 | Group: System Environment/Libraries |
---|
| 64 | Requires: %{name} = %{version}-%{release} |
---|
| 65 | |
---|
| 66 | %description -n compat32-%{name} |
---|
| 67 | Provides a way to load and enumerate PKCS#11 modules. Provides a standard |
---|
| 68 | configuration setup for installing PKCS#11 modules in such a way that |
---|
| 69 | they're discoverable. |
---|
| 70 | |
---|
| 71 | Also solves problems with coordinating the use of PKCS#11 by different |
---|
| 72 | components or libraries living in the same process. |
---|
| 73 | |
---|
| 74 | %package -n compat32-%{name}-devel |
---|
| 75 | Summary: Development tools for p11-kit |
---|
| 76 | Summary(ja): p11-kit の開発環境 |
---|
| 77 | Group: Development/Libraries |
---|
| 78 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 79 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 80 | Requires: pkgconfig |
---|
| 81 | |
---|
| 82 | %description -n compat32-%{name}-devel |
---|
| 83 | Header files and libraries for building a extension library for the |
---|
| 84 | p11-kit. |
---|
| 85 | |
---|
| 86 | |
---|
[4616] | 87 | %prep |
---|
| 88 | %setup -q |
---|
| 89 | |
---|
| 90 | %build |
---|
| 91 | %configure \ |
---|
| 92 | --disable-static \ |
---|
| 93 | |
---|
| 94 | make V=0 |
---|
| 95 | |
---|
| 96 | %install |
---|
| 97 | rm -rf $RPM_BUILD_ROOT |
---|
| 98 | make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c" |
---|
| 99 | |
---|
[7633] | 100 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
[4616] | 101 | |
---|
| 102 | %clean |
---|
| 103 | rm -rf $RPM_BUILD_ROOT |
---|
| 104 | |
---|
| 105 | %post -p /sbin/ldconfig |
---|
| 106 | %postun -p /sbin/ldconfig |
---|
| 107 | |
---|
[4812] | 108 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 109 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 110 | |
---|
[4616] | 111 | %files |
---|
| 112 | %defattr(-,root,root,-) |
---|
| 113 | %doc ChangeLog AUTHORS COPYING NEWS README |
---|
[4812] | 114 | %{_sysconfdir}/pkcs11/pkcs11.conf.example |
---|
[4616] | 115 | %{_bindir}/p11-kit |
---|
| 116 | %{_libdir}/libp11-kit.so.* |
---|
| 117 | %{_libdir}/p11-kit-proxy.so |
---|
[7633] | 118 | %{_libdir}/pkcs11/p11-kit-trust.so |
---|
| 119 | %{_libdir}/%{name}/p11-kit-extract-trust |
---|
| 120 | %{_datadir}/%{name} |
---|
[4616] | 121 | |
---|
| 122 | %files devel |
---|
| 123 | %defattr(-, root, root,-) |
---|
| 124 | %{_includedir}/p11-kit-1 |
---|
| 125 | %{_libdir}/libp11-kit.so |
---|
| 126 | %{_libdir}/pkgconfig/p11-kit-1.pc |
---|
| 127 | |
---|
[7633] | 128 | %files docs |
---|
[4616] | 129 | %defattr(-, root, root,-) |
---|
| 130 | %{_datadir}/gtk-doc/html/p11-kit |
---|
| 131 | |
---|
[4812] | 132 | # compat32 |
---|
| 133 | %if %{build_compat32} |
---|
| 134 | %files -n compat32-%{name} |
---|
| 135 | %defattr(-, root, root) |
---|
| 136 | %{_libdir}/lib*.so.* |
---|
[4616] | 137 | |
---|
[4812] | 138 | %files -n compat32-%{name}-devel |
---|
| 139 | %defattr(-, root, root) |
---|
| 140 | %{_libdir}/lib*.so |
---|
| 141 | %endif |
---|
| 142 | |
---|
| 143 | |
---|
[4616] | 144 | %changelog |
---|
[7633] | 145 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18.1-1 |
---|
| 146 | - new upstream release |
---|
| 147 | - add BuildRequires: libtasn1-devel, ca-certificates |
---|
| 148 | - add Requires: ca-certificates |
---|
| 149 | |
---|
[6890] | 150 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14-1 |
---|
| 151 | - new upstream release |
---|
| 152 | |
---|
[5914] | 153 | * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[4812] | 156 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1 |
---|
| 157 | - new upstream release |
---|
| 158 | - create compat32 sub packages |
---|
| 159 | |
---|
[4616] | 160 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1 |
---|
| 161 | - initial build for Vine Linux |
---|
| 162 | |
---|