source: projects/specs/trunk/p/p11-kit/p11-kit-vl.spec @ 7633

Revision 7633, 4.1 KB checked in by Takemikaduchi, 11 years ago (diff)

GNOME-3.8.1

Line 
1%define         build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3%define         pkg_version 0.18.1
4%define         pkg_release 1%{?_dist_release}
5
6Name:           p11-kit
7Version:        %{pkg_version}
8Release:        %{pkg_release}
9Summary:        Provides a way to load and enumerate PKCS#11 modules
10
11Group:          System Environment/Libraries
12License:        LGPLv2+
13URL:            http://p11-glue.freedesktop.org/p11-kit.html
14Source0:        http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz
15
16BuildRoot:      %{_tmppath}/%{name}-%{version}-root
17
18BuildRequires:  libtasn1-devel
19BuildRequires:  ca-certificates
20
21Requires:               ca-certificates
22
23
24Vendor:         Project Vine
25Distribution:   Vine Linux
26Packager:       Takemikaduchi
27
28%description
29Provides a way to load and enumerate PKCS#11 modules. Provides a standard
30configuration setup for installing PKCS#11 modules in such a way that
31they're discoverable.
32
33Also solves problems with coordinating the use of PKCS#11 by different
34components or libraries living in the same process.
35
36
37%package        devel
38Summary:        Development tools for p11-kit
39Summary(ja):    p11-kit の開発環境
40Group:          Development/Libraries
41Requires:       %{name} = %{version}-%{release}
42Requires:       pkgconfig
43
44%description devel
45Header files and libraries for building a extension library for the
46p11-kit.
47
48
49%package        docs
50Summary:        Documentation for p11-kit
51Summary(ja):    p11-kit 用のドキュメント
52Group:          Documentation
53Requires:       %{name} = %{version}-%{release}
54BuildArch:      noarch
55
56%description    docs
57This package contains documentation for p11-kit.
58
59
60# compat32
61%package -n compat32-%{name}
62Summary:        Provides a way to load and enumerate PKCS#11 modules
63Group:          System Environment/Libraries
64Requires:       %{name} = %{version}-%{release}
65
66%description -n compat32-%{name}
67Provides a way to load and enumerate PKCS#11 modules. Provides a standard
68configuration setup for installing PKCS#11 modules in such a way that
69they're discoverable.
70
71Also solves problems with coordinating the use of PKCS#11 by different
72components or libraries living in the same process.
73
74%package -n compat32-%{name}-devel
75Summary:        Development tools for p11-kit
76Summary(ja):    p11-kit の開発環境
77Group:          Development/Libraries
78Requires:       compat32-%{name} = %{version}-%{release}
79Requires:       %{name}-devel = %{version}-%{release}
80Requires:       pkgconfig
81
82%description -n compat32-%{name}-devel
83Header files and libraries for building a extension library for the
84p11-kit.
85
86
87%prep
88%setup -q
89
90%build
91%configure \
92        --disable-static \
93
94make V=0
95
96%install
97rm -rf $RPM_BUILD_ROOT
98make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c"
99
100find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
101
102%clean
103rm -rf $RPM_BUILD_ROOT
104
105%post -p /sbin/ldconfig
106%postun -p /sbin/ldconfig
107
108%post -n compat32-%{name} -p /sbin/ldconfig
109%postun -n compat32-%{name} -p /sbin/ldconfig
110
111%files
112%defattr(-,root,root,-)
113%doc ChangeLog AUTHORS COPYING NEWS README
114%{_sysconfdir}/pkcs11/pkcs11.conf.example
115%{_bindir}/p11-kit
116%{_libdir}/libp11-kit.so.*
117%{_libdir}/p11-kit-proxy.so
118%{_libdir}/pkcs11/p11-kit-trust.so
119%{_libdir}/%{name}/p11-kit-extract-trust
120%{_datadir}/%{name}
121
122%files devel
123%defattr(-, root, root,-)
124%{_includedir}/p11-kit-1
125%{_libdir}/libp11-kit.so
126%{_libdir}/pkgconfig/p11-kit-1.pc
127
128%files docs
129%defattr(-, root, root,-)
130%{_datadir}/gtk-doc/html/p11-kit
131
132# compat32
133%if %{build_compat32}
134%files -n compat32-%{name}
135%defattr(-, root, root)
136%{_libdir}/lib*.so.*
137
138%files -n compat32-%{name}-devel
139%defattr(-, root, root)
140%{_libdir}/lib*.so
141%endif
142
143
144%changelog
145* Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18.1-1
146- new upstream release
147- add BuildRequires: libtasn1-devel, ca-certificates
148- add Requires: ca-certificates
149
150* Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14-1
151- new upstream release
152
153* Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1
154- new upstream release
155
156* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1
157- new upstream release
158- create compat32 sub packages
159
160* Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1
161- initial build for Vine Linux
162
Note: See TracBrowser for help on using the repository browser.