[packages/ykclient] - cleanup, pl, added -static; release 2
qboosh
qboosh at pld-linux.org
Mon May 21 18:22:10 CEST 2018
commit 1467a0ade14c619ef29b69ccc781c6c849d23805
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon May 21 18:23:00 2018 +0200
- cleanup, pl, added -static; release 2
ykclient.spec | 66 +++++++++++++++++++++++++++++++++++++++++++----------------
1 file changed, 48 insertions(+), 18 deletions(-)
---
diff --git a/ykclient.spec b/ykclient.spec
index 31c38da..1864b5c 100644
--- a/ykclient.spec
+++ b/ykclient.spec
@@ -1,36 +1,62 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+
Summary: Yubikey management library and client
+Summary(pl.UTF-8): Biblioteka i klient do zarządzania urządzeniami Yubikey
Name: ykclient
Version: 2.15
-Release: 1
+Release: 2
License: BSD
Group: Applications/System
-URL: http://opensource.yubico.com/yubico-c-client/
-Source0: http://opensource.yubico.com/yubico-c-client/releases/%{name}-%{version}.tar.gz
+Source0: https://developers.yubico.com/yubico-c-client/Releases/%{name}-%{version}.tar.gz
# Source0-md5: d7da4d4acc1461af06346e194aa4960b
-BuildRequires: chrpath
+URL: https://developers.yubico.com/yubico-c-client/
BuildRequires: curl-devel
BuildRequires: help2man
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Commandline for yubikeys.
+Yubikey management library and command line client.
+
+%description -l pl.UTF-8
+Biblioteka i działający z linii poleceń klient do zarządzania
+urządzeniami Yubikey.
%package devel
-Summary: Development headers and libraries for ykclient
+Summary: Development headers for ykclient library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ykclient
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-development files for ykclient needed to build applications to take
-advantage of yubikey authentication.
+Development files for ykclient library needed to build applications to
+take advantage of Yubikey authentication.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne biblioteki ykclient, potrzebne przy tworzeniu
+aplikacji wykorzystujących uwierzytelnianie Yubikey.
+
+%package static
+Summary: Static ykclient library
+Summary(pl.UTF-8): Statyczna biblioteka ykclient
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static ykclient library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka ykclient.
%prep
%setup -q
%build
%configure \
- --disable-static \
- --disable-silent-rules
+ --disable-silent-rules \
+ %{!?with_static_libs:--disable-static}
%{__make}
%install
@@ -39,25 +65,29 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm $RPM_BUILD_ROOT%{_libdir}/libykclient.la
-chrpath -d $RPM_BUILD_ROOT%{_bindir}/ykclient
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libykclient.la
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README
+%doc AUTHORS COPYING ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/ykclient
+%attr(755,root,root) %{_libdir}/libykclient.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libykclient.so.3
-%attr(755,root,root) %{_libdir}/libykclient.so.*.*
%{_mandir}/man1/ykclient.1*
%files devel
%defattr(644,root,root,755)
-%doc README NEWS AUTHORS
-%{_includedir}/*.h
%attr(755,root,root) %{_libdir}/libykclient.so
+%{_includedir}/ykclient*.h
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libykclient.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ykclient.git/commitdiff/1467a0ade14c619ef29b69ccc781c6c849d23805
More information about the pld-cvs-commit
mailing list