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

Revision 5914, 3.7 KB checked in by kudoh, 12 years ago (diff)
Line 
1%define         build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3%define         pkg_version 0.12
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
18
19Vendor:         Project Vine
20Distribution:   Vine Linux
21Packager:       Takemikaduchi
22
23%description
24Provides a way to load and enumerate PKCS#11 modules. Provides a standard
25configuration setup for installing PKCS#11 modules in such a way that
26they're discoverable.
27
28Also solves problems with coordinating the use of PKCS#11 by different
29components or libraries living in the same process.
30
31
32%package        devel
33Summary:        Development tools for p11-kit
34Summary(ja):    p11-kit の開発環境
35Group:          Development/Libraries
36Requires:       %{name} = %{version}-%{release}
37Requires:       pkgconfig
38
39%description devel
40Header files and libraries for building a extension library for the
41p11-kit.
42
43
44%package        doc
45Summary:        Documentation for p11-kit
46Summary(ja):    p11-kit 用のドキュメント
47Group:          Documentation
48Requires:       %{name} = %{version}-%{release}
49BuildArch:      noarch
50
51%description    doc
52This package contains documentation for p11-kit.
53
54
55# compat32
56%package -n compat32-%{name}
57Summary:        Provides a way to load and enumerate PKCS#11 modules
58Group:          System Environment/Libraries
59Requires:       %{name} = %{version}-%{release}
60
61%description -n compat32-%{name}
62Provides a way to load and enumerate PKCS#11 modules. Provides a standard
63configuration setup for installing PKCS#11 modules in such a way that
64they're discoverable.
65
66Also solves problems with coordinating the use of PKCS#11 by different
67components or libraries living in the same process.
68
69%package -n compat32-%{name}-devel
70Summary:        Development tools for p11-kit
71Summary(ja):    p11-kit の開発環境
72Group:          Development/Libraries
73Requires:       compat32-%{name} = %{version}-%{release}
74Requires:       %{name}-devel = %{version}-%{release}
75Requires:       pkgconfig
76
77%description -n compat32-%{name}-devel
78Header files and libraries for building a extension library for the
79p11-kit.
80
81
82%prep
83%setup -q
84
85%build
86%configure \
87        --disable-static \
88
89make V=0
90
91%install
92rm -rf $RPM_BUILD_ROOT
93make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c"
94
95rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
96
97
98%clean
99rm -rf $RPM_BUILD_ROOT
100
101%post -p /sbin/ldconfig
102%postun -p /sbin/ldconfig
103
104%post -n compat32-%{name} -p /sbin/ldconfig
105%postun -n compat32-%{name} -p /sbin/ldconfig
106
107%files
108%defattr(-,root,root,-)
109%doc ChangeLog AUTHORS COPYING NEWS README
110%{_sysconfdir}/pkcs11/pkcs11.conf.example
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
125# compat32
126%if %{build_compat32}
127%files -n compat32-%{name}
128%defattr(-, root, root)
129%{_libdir}/lib*.so.*
130
131%files -n compat32-%{name}-devel
132%defattr(-, root, root)
133%{_libdir}/lib*.so
134%{_libdir}/pkgconfig/p11-kit-1.pc
135%endif
136
137
138%changelog
139* Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1
140- new upstream release
141
142* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1
143- new upstream release
144- create compat32 sub packages
145
146* Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1
147- initial build for Vine Linux
148
Note: See TracBrowser for help on using the repository browser.