[packages/jq] - cleanups, pl, added -static; release 2

qboosh qboosh at pld-linux.org
Sun Jun 26 12:50:30 CEST 2016


commit d6faab77f1d475b4aebaf1f37b5f31644797799b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 26 12:50:32 2016 +0200

    - cleanups, pl, added -static; release 2

 jq.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 55 insertions(+), 18 deletions(-)
---
diff --git a/jq.spec b/jq.spec
index c042477..f8539a7 100644
--- a/jq.spec
+++ b/jq.spec
@@ -1,26 +1,30 @@
 #
 # Conditional build:
-%bcond_without	tests		# build without tests
+%bcond_without	static_libs	# static library
+%bcond_without	tests		# check target
 
 %ifnarch %{ix86} %{x8664}
+# valgrind required
 %undefine	with_tests
 %endif
 
 Summary:	Command-line JSON processor
+Summary(pl.UTF-8):	Procesor JSON działający z linii poleceń
 Name:		jq
 Version:	1.5
-Release:	1
-License:	MIT and ASL 2.0 and CC-BY and GPLv3
+Release:	2
+License:	MIT, Apache, CC-BY, GPL v3
 Group:		Applications/Text
+#Source0Download: https://github.com/stedolan/jq/releases
 Source0:	https://github.com/stedolan/jq/releases/download/%{name}-%{version}/jq-%{version}.tar.gz
 # Source0-md5:	0933532b086bd8b6a41c1b162b1731f9
 Patch0:		static.patch
 URL:		https://stedolan.github.io/jq/
-BuildRequires:	autoconf
-BuildRequires:	automake
-BuildRequires:	bison
+BuildRequires:	autoconf >= 2.64
+BuildRequires:	automake >= 1:1.11.2
+BuildRequires:	bison >= 3
 BuildRequires:	flex
-BuildRequires:	libtool
+BuildRequires:	libtool >= 2:2
 BuildRequires:	oniguruma-devel
 %if %{with tests}
 BuildRequires:	valgrind
@@ -29,7 +33,7 @@ Requires:	%{name}-libs = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-lightweight and flexible command-line JSON processor
+lightweight and flexible command-line JSON processor.
 
 jq is like sed for JSON data - you can use it to slice and filter and
 map and transform structured data with the same ease that sed, awk,
@@ -37,23 +41,50 @@ grep and friends let you play with text.
 
 It is written in portable C, and it has zero runtime dependencies.
 
-jq can mangle the data format that you have into the one that you want
-with very little effort, and the program to do so is often shorter and
-simpler than you'd expect.
+%description -l pl.UTF-8
+Lekki i elastyczny procesor JSON działający z linii poleceń.
+
+jq jest odpowiednikiem seda dla danych JSON - można go używać do
+podziału, filtrowania, odwzorowywania i przekształceń danych
+strukturalnych tak samo łatwo, jak programy sed, awk, grep i podobne
+pozwalają bawić się tekstem.
+
+Jest napisany w przenośnym C i nie ma dodatkowych zależności.
 
 %package libs
-Summary:	Shared libraries for jq
+Summary:	Shared jq library
+Summary(pl.UTF-8):	Biblioteka współdzielona jq
 Group:		Libraries
 
 %description libs
-Shared libraries for jq.
+Shared jq library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona jq.
 
 %package devel
-Summary:	Development files for %{name}
+Summary:	Header files for jq library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki jq
+Group:		Development/Libraries
 Requires:	%{name}-libs = %{version}-%{release}
 
 %description devel
-Development files for %{name}
+Header files for jq library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki jq.
+
+%package static
+Summary:	Static jq library
+Summary(pl.UTF-8):	Statyczna biblioteka jq
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static jq library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka jq.
 
 %prep
 %setup -q
@@ -66,7 +97,7 @@ Development files for %{name}
 %{__automake}
 %configure \
 	--disable-docs \
-	--disable-static \
+	%{!?with_static_libs:--disable-static} \
 	--disable-all-static \
 	--disable-silent-rules
 
@@ -113,10 +144,16 @@ rm -rf $RPM_BUILD_ROOT
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libjq.so.*.*.*
-%ghost %{_libdir}/libjq.so.1
+%attr(755,root,root) %ghost %{_libdir}/libjq.so.1
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libjq.so
 %{_includedir}/jq.h
 %{_includedir}/jv.h
-%{_libdir}/libjq.so
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libjq.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jq.git/commitdiff/d6faab77f1d475b4aebaf1f37b5f31644797799b



More information about the pld-cvs-commit mailing list