[4812] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[12353] | 3 | %define pkg_version 0.23.20 |
---|
[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 |
---|
[12353] | 10 | Group: System Environment/Libraries |
---|
[4616] | 11 | |
---|
| 12 | License: LGPLv2+ |
---|
[12353] | 13 | URL: https://p11-glue.github.io/p11-glue/p11-kit.html |
---|
| 14 | Source0: https://github.com/p11-glue/p11-kit/releases/download/%{version}/%{name}-%{version}.tar.xz |
---|
[4616] | 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 |
---|
[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,-) |
---|
[12353] | 113 | %license COPYING |
---|
| 114 | %doc ChangeLog AUTHORS 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 |
---|
[7633] | 120 | %{_libdir}/pkcs11/p11-kit-trust.so |
---|
[12353] | 121 | %{_libdir}/pkcs11/p11-kit-client.so |
---|
| 122 | %{_libexecdir}/p11-kit/p11-kit-remote |
---|
| 123 | %{_libexecdir}/p11-kit/p11-kit-server |
---|
| 124 | %{_libexecdir}/p11-kit/trust-extract-compat |
---|
[7633] | 125 | %{_datadir}/%{name} |
---|
[4616] | 126 | |
---|
| 127 | %files devel |
---|
| 128 | %defattr(-, root, root,-) |
---|
| 129 | %{_includedir}/p11-kit-1 |
---|
| 130 | %{_libdir}/libp11-kit.so |
---|
| 131 | %{_libdir}/pkgconfig/p11-kit-1.pc |
---|
| 132 | |
---|
[7633] | 133 | %files docs |
---|
[4616] | 134 | %defattr(-, root, root,-) |
---|
| 135 | %{_datadir}/gtk-doc/html/p11-kit |
---|
| 136 | |
---|
[4812] | 137 | # compat32 |
---|
| 138 | %if %{build_compat32} |
---|
| 139 | %files -n compat32-%{name} |
---|
| 140 | %defattr(-, root, root) |
---|
| 141 | %{_libdir}/lib*.so.* |
---|
[4616] | 142 | |
---|
[4812] | 143 | %files -n compat32-%{name}-devel |
---|
| 144 | %defattr(-, root, root) |
---|
| 145 | %{_libdir}/lib*.so |
---|
| 146 | %endif |
---|
| 147 | |
---|
| 148 | |
---|
[4616] | 149 | %changelog |
---|
[12353] | 150 | * Thu Mar 26 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.23.20-1 |
---|
| 151 | - new upstream release. |
---|
| 152 | |
---|
[9791] | 153 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.1-1 |
---|
| 154 | - new upstream release |
---|
| 155 | |
---|
[9073] | 156 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.1-1 |
---|
| 157 | - new upstream release |
---|
| 158 | |
---|
[8941] | 159 | * Sun Sep 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.5-1 |
---|
| 160 | - new upstream release |
---|
| 161 | |
---|
[8758] | 162 | * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.3-1 |
---|
| 163 | - new upstream release |
---|
| 164 | |
---|
[8353] | 165 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.2-1 |
---|
| 166 | - new upstream release |
---|
| 167 | |
---|
[8085] | 168 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.1-2 |
---|
| 169 | - rebuild with VineSeed environment |
---|
| 170 | |
---|
[7938] | 171 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.1-1 |
---|
| 172 | - new upstream release |
---|
| 173 | - add BuildRequires: libffi-devel |
---|
| 174 | |
---|
[7633] | 175 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18.1-1 |
---|
| 176 | - new upstream release |
---|
| 177 | - add BuildRequires: libtasn1-devel, ca-certificates |
---|
| 178 | - add Requires: ca-certificates |
---|
| 179 | |
---|
[6890] | 180 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14-1 |
---|
| 181 | - new upstream release |
---|
| 182 | |
---|
[5914] | 183 | * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
[4812] | 186 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1 |
---|
| 187 | - new upstream release |
---|
| 188 | - create compat32 sub packages |
---|
| 189 | |
---|
[4616] | 190 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1 |
---|
| 191 | - initial build for Vine Linux |
---|
| 192 | |
---|