[4812] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[4616] | 3 | Name: p11-kit |
---|
[12515] | 4 | Version: 0.23.22 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[4616] | 6 | Summary: Provides a way to load and enumerate PKCS#11 modules |
---|
[12515] | 7 | Group: system |
---|
[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 の開発環境 |
---|
[12515] | 35 | Group: programming |
---|
[4616] | 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 用のドキュメント |
---|
[12515] | 47 | Group: documentation |
---|
[4616] | 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 |
---|
[12515] | 58 | Group: system |
---|
[4812] | 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 の開発環境 |
---|
[12515] | 72 | Group: programming |
---|
[4812] | 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 | |
---|
[12515] | 81 | %debug_package |
---|
| 82 | |
---|
| 83 | |
---|
[4616] | 84 | %prep |
---|
| 85 | %setup -q |
---|
| 86 | |
---|
[12515] | 87 | |
---|
[4616] | 88 | %build |
---|
| 89 | %configure \ |
---|
| 90 | --disable-static \ |
---|
[12515] | 91 | %{nil} |
---|
[4616] | 92 | |
---|
| 93 | make V=0 |
---|
| 94 | |
---|
| 95 | %install |
---|
| 96 | rm -rf $RPM_BUILD_ROOT |
---|
| 97 | make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c" |
---|
| 98 | |
---|
[7633] | 99 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
[4616] | 100 | |
---|
[12515] | 101 | |
---|
[4616] | 102 | %clean |
---|
| 103 | rm -rf $RPM_BUILD_ROOT |
---|
| 104 | |
---|
[12515] | 105 | |
---|
[4616] | 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 | |
---|
[12515] | 112 | |
---|
[4616] | 113 | %files |
---|
| 114 | %defattr(-,root,root,-) |
---|
[12353] | 115 | %license COPYING |
---|
| 116 | %doc ChangeLog AUTHORS NEWS README* |
---|
[4812] | 117 | %{_sysconfdir}/pkcs11/pkcs11.conf.example |
---|
[4616] | 118 | %{_bindir}/p11-kit |
---|
[7938] | 119 | %{_bindir}/trust |
---|
[4616] | 120 | %{_libdir}/libp11-kit.so.* |
---|
| 121 | %{_libdir}/p11-kit-proxy.so |
---|
[7633] | 122 | %{_libdir}/pkcs11/p11-kit-trust.so |
---|
[12353] | 123 | %{_libdir}/pkcs11/p11-kit-client.so |
---|
| 124 | %{_libexecdir}/p11-kit/p11-kit-remote |
---|
| 125 | %{_libexecdir}/p11-kit/p11-kit-server |
---|
| 126 | %{_libexecdir}/p11-kit/trust-extract-compat |
---|
[7633] | 127 | %{_datadir}/%{name} |
---|
[4616] | 128 | |
---|
| 129 | %files devel |
---|
| 130 | %defattr(-, root, root,-) |
---|
| 131 | %{_includedir}/p11-kit-1 |
---|
| 132 | %{_libdir}/libp11-kit.so |
---|
| 133 | %{_libdir}/pkgconfig/p11-kit-1.pc |
---|
| 134 | |
---|
[7633] | 135 | %files docs |
---|
[4616] | 136 | %defattr(-, root, root,-) |
---|
| 137 | %{_datadir}/gtk-doc/html/p11-kit |
---|
| 138 | |
---|
[4812] | 139 | # compat32 |
---|
| 140 | %if %{build_compat32} |
---|
| 141 | %files -n compat32-%{name} |
---|
| 142 | %defattr(-, root, root) |
---|
| 143 | %{_libdir}/lib*.so.* |
---|
[4616] | 144 | |
---|
[4812] | 145 | %files -n compat32-%{name}-devel |
---|
| 146 | %defattr(-, root, root) |
---|
| 147 | %{_libdir}/lib*.so |
---|
| 148 | %endif |
---|
| 149 | |
---|
| 150 | |
---|
[4616] | 151 | %changelog |
---|
[12515] | 152 | * Sat Dec 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.23.22-1 |
---|
| 153 | - new upstream release. |
---|
| 154 | |
---|
[12376] | 155 | * Thu Apr 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.23.20-2 |
---|
| 156 | - rebuilt with libffi-3.3. |
---|
| 157 | |
---|
[12353] | 158 | * Thu Mar 26 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.23.20-1 |
---|
| 159 | - new upstream release. |
---|
| 160 | |
---|
[9791] | 161 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.1-1 |
---|
| 162 | - new upstream release |
---|
| 163 | |
---|
[9073] | 164 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.1-1 |
---|
| 165 | - new upstream release |
---|
| 166 | |
---|
[8941] | 167 | * Sun Sep 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.5-1 |
---|
| 168 | - new upstream release |
---|
| 169 | |
---|
[8758] | 170 | * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.3-1 |
---|
| 171 | - new upstream release |
---|
| 172 | |
---|
[8353] | 173 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.2-1 |
---|
| 174 | - new upstream release |
---|
| 175 | |
---|
[8085] | 176 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.1-2 |
---|
| 177 | - rebuild with VineSeed environment |
---|
| 178 | |
---|
[7938] | 179 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.1-1 |
---|
| 180 | - new upstream release |
---|
| 181 | - add BuildRequires: libffi-devel |
---|
| 182 | |
---|
[7633] | 183 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18.1-1 |
---|
| 184 | - new upstream release |
---|
| 185 | - add BuildRequires: libtasn1-devel, ca-certificates |
---|
| 186 | - add Requires: ca-certificates |
---|
| 187 | |
---|
[6890] | 188 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14-1 |
---|
| 189 | - new upstream release |
---|
| 190 | |
---|
[5914] | 191 | * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1 |
---|
| 192 | - new upstream release |
---|
| 193 | |
---|
[4812] | 194 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1 |
---|
| 195 | - new upstream release |
---|
| 196 | - create compat32 sub packages |
---|
| 197 | |
---|
[4616] | 198 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1 |
---|
| 199 | - initial build for Vine Linux |
---|
| 200 | |
---|