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