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