1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define pkg_version 0.23.1 |
---|
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 | |
---|
18 | BuildRequires: libtasn1-devel |
---|
19 | BuildRequires: libffi-devel |
---|
20 | BuildRequires: ca-certificates |
---|
21 | |
---|
22 | Requires: ca-certificates |
---|
23 | |
---|
24 | |
---|
25 | Vendor: Project Vine |
---|
26 | Distribution: Vine Linux |
---|
27 | Packager: Takemikaduchi |
---|
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 | |
---|
38 | %package devel |
---|
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 | |
---|
50 | %package docs |
---|
51 | Summary: Documentation for p11-kit |
---|
52 | Summary(ja): p11-kit 用のドキュメント |
---|
53 | Group: Documentation |
---|
54 | Requires: %{name} = %{version}-%{release} |
---|
55 | BuildArch: noarch |
---|
56 | |
---|
57 | %description docs |
---|
58 | This package contains documentation for p11-kit. |
---|
59 | |
---|
60 | |
---|
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 | |
---|
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 | |
---|
101 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
102 | |
---|
103 | %clean |
---|
104 | rm -rf $RPM_BUILD_ROOT |
---|
105 | |
---|
106 | %post -p /sbin/ldconfig |
---|
107 | %postun -p /sbin/ldconfig |
---|
108 | |
---|
109 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
110 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
111 | |
---|
112 | %files |
---|
113 | %defattr(-,root,root,-) |
---|
114 | %doc ChangeLog AUTHORS COPYING NEWS README |
---|
115 | %{_sysconfdir}/pkcs11/pkcs11.conf.example |
---|
116 | %{_bindir}/p11-kit |
---|
117 | %{_bindir}/trust |
---|
118 | %{_libdir}/libp11-kit.so.* |
---|
119 | %{_libdir}/p11-kit-proxy.so |
---|
120 | %{_libdir}/p11-kit/p11-kit-remote |
---|
121 | %{_libdir}/p11-kit/trust-extract-compat |
---|
122 | %{_libdir}/pkcs11/p11-kit-trust.so |
---|
123 | %{_datadir}/%{name} |
---|
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 | |
---|
131 | %files docs |
---|
132 | %defattr(-, root, root,-) |
---|
133 | %{_datadir}/gtk-doc/html/p11-kit |
---|
134 | |
---|
135 | # compat32 |
---|
136 | %if %{build_compat32} |
---|
137 | %files -n compat32-%{name} |
---|
138 | %defattr(-, root, root) |
---|
139 | %{_libdir}/lib*.so.* |
---|
140 | |
---|
141 | %files -n compat32-%{name}-devel |
---|
142 | %defattr(-, root, root) |
---|
143 | %{_libdir}/lib*.so |
---|
144 | %endif |
---|
145 | |
---|
146 | |
---|
147 | %changelog |
---|
148 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.23.1-1 |
---|
149 | - new upstream release |
---|
150 | |
---|
151 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22.1-1 |
---|
152 | - new upstream release |
---|
153 | |
---|
154 | * Sun Sep 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.5-1 |
---|
155 | - new upstream release |
---|
156 | |
---|
157 | * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.3-1 |
---|
158 | - new upstream release |
---|
159 | |
---|
160 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.2-1 |
---|
161 | - new upstream release |
---|
162 | |
---|
163 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.1-2 |
---|
164 | - rebuild with VineSeed environment |
---|
165 | |
---|
166 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.1-1 |
---|
167 | - new upstream release |
---|
168 | - add BuildRequires: libffi-devel |
---|
169 | |
---|
170 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18.1-1 |
---|
171 | - new upstream release |
---|
172 | - add BuildRequires: libtasn1-devel, ca-certificates |
---|
173 | - add Requires: ca-certificates |
---|
174 | |
---|
175 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14-1 |
---|
176 | - new upstream release |
---|
177 | |
---|
178 | * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1 |
---|
179 | - new upstream release |
---|
180 | |
---|
181 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1 |
---|
182 | - new upstream release |
---|
183 | - create compat32 sub packages |
---|
184 | |
---|
185 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1 |
---|
186 | - initial build for Vine Linux |
---|
187 | |
---|