[4812] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[6890] | 3 | %define pkg_version 0.14 |
---|
[4616] | 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 | |
---|
[4812] | 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | Packager: Takemikaduchi |
---|
[4616] | 22 | |
---|
| 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 | |
---|
[4812] | 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 | |
---|
| 44 | %package doc |
---|
| 45 | Summary: Documentation for p11-kit |
---|
| 46 | Summary(ja): p11-kit 用のドキュメント |
---|
| 47 | Group: Documentation |
---|
| 48 | Requires: %{name} = %{version}-%{release} |
---|
| 49 | BuildArch: noarch |
---|
| 50 | |
---|
| 51 | %description doc |
---|
| 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} |
---|
| 74 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 75 | Requires: pkgconfig |
---|
| 76 | |
---|
| 77 | %description -n compat32-%{name}-devel |
---|
| 78 | Header files and libraries for building a extension library for the |
---|
| 79 | p11-kit. |
---|
| 80 | |
---|
| 81 | |
---|
[4616] | 82 | %prep |
---|
| 83 | %setup -q |
---|
| 84 | |
---|
| 85 | %build |
---|
| 86 | %configure \ |
---|
| 87 | --disable-static \ |
---|
| 88 | |
---|
| 89 | make V=0 |
---|
| 90 | |
---|
| 91 | %install |
---|
| 92 | rm -rf $RPM_BUILD_ROOT |
---|
| 93 | make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c" |
---|
| 94 | |
---|
| 95 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | %clean |
---|
| 99 | rm -rf $RPM_BUILD_ROOT |
---|
| 100 | |
---|
| 101 | %post -p /sbin/ldconfig |
---|
| 102 | %postun -p /sbin/ldconfig |
---|
| 103 | |
---|
[4812] | 104 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 105 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 106 | |
---|
[4616] | 107 | %files |
---|
| 108 | %defattr(-,root,root,-) |
---|
| 109 | %doc ChangeLog AUTHORS COPYING NEWS README |
---|
[4812] | 110 | %{_sysconfdir}/pkcs11/pkcs11.conf.example |
---|
[4616] | 111 | %{_bindir}/p11-kit |
---|
| 112 | %{_libdir}/libp11-kit.so.* |
---|
| 113 | %{_libdir}/p11-kit-proxy.so |
---|
| 114 | |
---|
| 115 | %files devel |
---|
| 116 | %defattr(-, root, root,-) |
---|
| 117 | %{_includedir}/p11-kit-1 |
---|
| 118 | %{_libdir}/libp11-kit.so |
---|
| 119 | %{_libdir}/pkgconfig/p11-kit-1.pc |
---|
| 120 | |
---|
| 121 | %files doc |
---|
| 122 | %defattr(-, root, root,-) |
---|
| 123 | %{_datadir}/gtk-doc/html/p11-kit |
---|
| 124 | |
---|
[4812] | 125 | # compat32 |
---|
| 126 | %if %{build_compat32} |
---|
| 127 | %files -n compat32-%{name} |
---|
| 128 | %defattr(-, root, root) |
---|
| 129 | %{_libdir}/lib*.so.* |
---|
[4616] | 130 | |
---|
[4812] | 131 | %files -n compat32-%{name}-devel |
---|
| 132 | %defattr(-, root, root) |
---|
| 133 | %{_libdir}/lib*.so |
---|
| 134 | %endif |
---|
| 135 | |
---|
| 136 | |
---|
[4616] | 137 | %changelog |
---|
[6890] | 138 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14-1 |
---|
| 139 | - new upstream release |
---|
| 140 | |
---|
[5914] | 141 | * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1 |
---|
| 142 | - new upstream release |
---|
| 143 | |
---|
[4812] | 144 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1 |
---|
| 145 | - new upstream release |
---|
| 146 | - create compat32 sub packages |
---|
| 147 | |
---|
[4616] | 148 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1 |
---|
| 149 | - initial build for Vine Linux |
---|
| 150 | |
---|