]>
Commit | Line | Data |
---|---|---|
c157090e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | # | |
6 | Summary: Library and proxy module for properly loading and sharing PKCS#11 modules | |
7 | Summary(pl.UTF-8): Biblioteka i moduł proxy do właściwego wczytywania i współdzielenia modułów PKCS#11 | |
8 | Name: p11-kit | |
9 | Version: 0.3 | |
10 | Release: 1 | |
11 | License: BSD | |
12 | Group: Libraries | |
13 | Source0: http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 319e04da39139f3bccb2d910590e0d58 | |
15 | URL: http://p11-glue.freedesktop.org/p11-kit.html | |
16 | BuildRequires: gtk-doc >= 1.15 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | P11-KIT provides a way to load and enumerate PKCS#11 modules. It also | |
21 | provides a standard configuration setup for installing PKCS#11 modules | |
22 | in such a way that they-re discoverable. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | P11-KIT zapewnia możliwość ładowania i numeracji modułów PKCS#11. | |
26 | Zapewnia też ustandaryzowaną konfigurację do instalowania modułów | |
27 | PKCS#11 w taki sposób, żeby były możliwe do wykrycia. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for P11-KIT library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki P11-KIT | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for P11-KIT library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki P11-KIT. | |
40 | ||
41 | %package static | |
42 | Summary: Static P11-KIT library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka P11-KIT | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static P11-KIT library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka P11-KIT. | |
52 | ||
53 | %package apidocs | |
54 | Summary: P11-KIT API documentation | |
55 | Summary(pl.UTF-8): Dokumentacja API biblioteki P11-KIT | |
56 | Group: Documentation | |
57 | Requires: gtk-doc-common | |
58 | ||
59 | %description apidocs | |
60 | API and internal documentation for P11-KIT library. | |
61 | ||
62 | %description apidocs -l pl.UTF-8 | |
63 | Dokumentacja API biblioteki P11-KIT. | |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
69 | %configure \ | |
70 | %{!?with_apidocs:--disable-gtk-doc} \ | |
71 | --disable-silent-rules \ | |
72 | %{?with_static_libs:--enable-static} \ | |
73 | --with-html-dir=%{_gtkdocdir} | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/modules | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | # obsoleted by pkg-config | |
84 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11-kit.la | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc AUTHORS COPYING ChangeLog NEWS README | |
95 | %attr(755,root,root) %{_bindir}/p11-kit | |
96 | %attr(755,root,root) %{_libdir}/libp11-kit.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libp11-kit.so.0 | |
98 | %attr(755,root,root) %{_libdir}/p11-kit-proxy.so | |
99 | %dir %{_sysconfdir}/pkcs11 | |
100 | %dir %{_sysconfdir}/pkcs11/modules | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/libp11-kit.so | |
105 | %{_includedir}/p11-kit-1 | |
106 | %{_pkgconfigdir}/p11-kit-1.pc | |
107 | ||
108 | %if %{with static_libs} | |
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libp11-kit.a | |
112 | %endif | |
113 | ||
114 | %if %{with apidocs} | |
115 | %files apidocs | |
116 | %defattr(644,root,root,755) | |
117 | %{_gtkdocdir}/p11-kit | |
118 | %endif |