]> git.pld-linux.org Git - packages/p11-kit.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 3 Aug 2011 18:36:21 +0000 (18:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    p11-kit.spec -> 1.1

p11-kit.spec [new file with mode: 0644]

diff --git a/p11-kit.spec b/p11-kit.spec
new file mode 100644 (file)
index 0000000..bab9b3f
--- /dev/null
@@ -0,0 +1,118 @@
+#
+# Conditional build:
+%bcond_without apidocs         # do not build and package API docs
+%bcond_without static_libs     # don't build static libraries
+#
+Summary:       Library and proxy module for properly loading and sharing PKCS#11 modules
+Summary(pl.UTF-8):     Biblioteka i moduł proxy do właściwego wczytywania i współdzielenia modułów PKCS#11
+Name:          p11-kit
+Version:       0.3
+Release:       1
+License:       BSD
+Group:         Libraries
+Source0:       http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz
+# Source0-md5: 319e04da39139f3bccb2d910590e0d58
+URL:           http://p11-glue.freedesktop.org/p11-kit.html
+BuildRequires: gtk-doc >= 1.15
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+P11-KIT provides a way to load and enumerate PKCS#11 modules. It also
+provides a standard configuration setup for installing PKCS#11 modules
+in such a way that they-re discoverable.
+
+%description -l pl.UTF-8
+P11-KIT zapewnia możliwość ładowania i numeracji modułów PKCS#11.
+Zapewnia też ustandaryzowaną konfigurację do instalowania modułów
+PKCS#11 w taki sposób, żeby były możliwe do wykrycia.
+
+%package devel
+Summary:       Header files for P11-KIT library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki P11-KIT
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for P11-KIT library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki P11-KIT.
+
+%package static
+Summary:       Static P11-KIT library
+Summary(pl.UTF-8):     Statyczna biblioteka P11-KIT
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static P11-KIT library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka P11-KIT.
+
+%package apidocs
+Summary:       P11-KIT API documentation
+Summary(pl.UTF-8):     Dokumentacja API biblioteki P11-KIT
+Group:         Documentation
+Requires:      gtk-doc-common
+
+%description apidocs
+API and internal documentation for P11-KIT library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki P11-KIT.
+
+%prep
+%setup -q
+
+%build
+%configure \
+       %{!?with_apidocs:--disable-gtk-doc} \
+       --disable-silent-rules \
+       %{?with_static_libs:--enable-static} \
+       --with-html-dir=%{_gtkdocdir}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/modules
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libp11-kit.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README
+%attr(755,root,root) %{_bindir}/p11-kit
+%attr(755,root,root) %{_libdir}/libp11-kit.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libp11-kit.so.0
+%attr(755,root,root) %{_libdir}/p11-kit-proxy.so
+%dir %{_sysconfdir}/pkcs11
+%dir %{_sysconfdir}/pkcs11/modules
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libp11-kit.so
+%{_includedir}/p11-kit-1
+%{_pkgconfigdir}/p11-kit-1.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libp11-kit.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/p11-kit
+%endif
This page took 0.174222 seconds and 4 git commands to generate.