SHA256
1
0
forked from pool/jq

- Don't package static libs

- Fix rpath on the main binary

OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=7
This commit is contained in:
Ismail Dönmez 2014-06-27 11:08:04 +00:00 committed by Git OBS Bridge
parent 789c6056ce
commit 0ddfe36c96
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 27 09:55:52 UTC 2014 - idonmez@suse.com
- Don't package static libs
- Fix rpath on the main binary
-------------------------------------------------------------------
Sun Jun 15 20:52:42 UTC 2014 - prusnak@opensuse.org

11
jq.spec
View File

@ -25,6 +25,7 @@ Group: Productivity/Text/Utilities
Url: http://stedolan.github.io/jq/
Source: http://stedolan.github.io/jq/download/source/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: chrpath
BuildRequires: coreutils
BuildRequires: make
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -54,12 +55,18 @@ Development files (headers and libraries for jq).
%setup -q
%build
%configure
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
# RPATH contains the builddir yucks!
chrpath -d %{buildroot}%{_bindir}/jq
# No static stuff
rm %{buildroot}%{_libdir}/libjq.la
# we install the documentation in a separate location using the doc macro
rm -rf %{buildroot}%{_datadir}/doc/%{name}
@ -81,8 +88,6 @@ rm -rf %{buildroot}%{_datadir}/doc/%{name}
%defattr(-,root,root)
%{_includedir}/jq.h
%{_includedir}/jv.h
%{_libdir}/libjq.a
%{_libdir}/libjq.la
%{_libdir}/libjq.so
%changelog