[packages/qrencode] move to /lib, dependency of systemd (journalctl)
glen
glen at pld-linux.org
Mon Mar 23 09:39:03 CET 2015
commit eff551399a72f38a313000e5065ac3d3f1782961
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Mar 23 10:38:25 2015 +0200
move to /lib, dependency of systemd (journalctl)
qrencode.spec | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/qrencode.spec b/qrencode.spec
index ecd2e7c..7fa7449 100644
--- a/qrencode.spec
+++ b/qrencode.spec
@@ -1,12 +1,12 @@
#
# Conditional build:
%bcond_without static_libs # don't build static libraries
-#
+
Summary: QR Code encoder into PNG image
Summary(pl.UTF-8): Koder kodu QR do obrazów PNG
Name: qrencode
Version: 3.4.4
-Release: 2
+Release: 3
License: LGPL v2.1+
Group: Applications/File
Source0: http://fukuchi.org/works/qrencode/%{name}-%{version}.tar.bz2
@@ -108,18 +108,21 @@ Statyczna biblioteka qrencode.
%{__make}
+# manual
+doxygen
+
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-# manual
-doxygen
-
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+install -d $RPM_BUILD_ROOT/%{_lib}
+mv -f $RPM_BUILD_ROOT%{_libdir}/libqrencode.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libqrencode.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libqrencode.so
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -134,8 +137,8 @@ rm -rf $RPM_BUILD_ROOT
%files libs
%defattr(644,root,root,755)
%doc ChangeLog NEWS README TODO
-%attr(755,root,root) %{_libdir}/libqrencode.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libqrencode.so.3
+%attr(755,root,root) /%{_lib}/libqrencode.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libqrencode.so.3
%files devel
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qrencode.git/commitdiff/eff551399a72f38a313000e5065ac3d3f1782961
More information about the pld-cvs-commit
mailing list