2013-10-01 19:06:13 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package jq
|
|
|
|
|
#
|
2019-07-09 12:52:18 +02:00
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-10-01 19:06:13 +02:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-08-21 10:24:12 +02:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2013-10-01 19:06:13 +02:00
|
|
|
|
#
|
|
|
|
|
|
2014-06-15 23:14:53 +02:00
|
|
|
|
|
2013-10-01 19:06:13 +02:00
|
|
|
|
Name: jq
|
2018-11-03 09:58:11 +01:00
|
|
|
|
Version: 1.6
|
2014-06-15 23:14:53 +02:00
|
|
|
|
Release: 0
|
2013-10-01 19:06:13 +02:00
|
|
|
|
Summary: A lightweight and flexible command-line JSON processor
|
2018-11-03 09:58:11 +01:00
|
|
|
|
License: MIT AND CC-BY-3.0
|
2014-06-15 23:14:53 +02:00
|
|
|
|
Group: Productivity/Text/Utilities
|
2018-11-03 09:58:11 +01:00
|
|
|
|
URL: http://stedolan.github.io/jq/
|
2015-08-21 10:59:18 +02:00
|
|
|
|
Source: https://github.com/stedolan/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz
|
2014-06-27 13:08:04 +02:00
|
|
|
|
BuildRequires: chrpath
|
2017-01-03 00:10:44 +01:00
|
|
|
|
BuildRequires: flex
|
2015-08-21 10:59:18 +02:00
|
|
|
|
BuildRequires: oniguruma-devel
|
2017-01-03 00:10:44 +01:00
|
|
|
|
BuildRequires: valgrind
|
2019-07-09 12:52:18 +02:00
|
|
|
|
Requires: libjq1 = %{version}
|
2013-10-01 19:06:13 +02:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A 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
|
2014-06-15 23:14:53 +02:00
|
|
|
|
structured data with the same ease that sed, awk, grep and friends let
|
2013-10-01 19:06:13 +02:00
|
|
|
|
you play with text.
|
|
|
|
|
|
2014-06-15 23:14:53 +02:00
|
|
|
|
%package -n libjq1
|
|
|
|
|
Summary: Library for a lightweight and flexible command-line JSON processor
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n libjq1
|
|
|
|
|
Library for a lightweight and flexible command-line JSON processor.
|
|
|
|
|
|
|
|
|
|
%package -n libjq-devel
|
|
|
|
|
Summary: Development files for jq
|
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
Requires: libjq1 = %{version}
|
|
|
|
|
|
|
|
|
|
%description -n libjq-devel
|
|
|
|
|
Development files (headers and libraries for jq).
|
|
|
|
|
|
2013-10-01 19:06:13 +02:00
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
2016-07-16 20:11:18 +02:00
|
|
|
|
%configure \
|
|
|
|
|
--disable-static \
|
2017-01-03 00:10:44 +01:00
|
|
|
|
--disable-silent-rules
|
2013-10-01 19:06:13 +02:00
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
2014-06-27 13:08:04 +02:00
|
|
|
|
# RPATH contains the builddir yucks!
|
|
|
|
|
chrpath -d %{buildroot}%{_bindir}/jq
|
|
|
|
|
|
|
|
|
|
# No static stuff
|
|
|
|
|
rm %{buildroot}%{_libdir}/libjq.la
|
|
|
|
|
|
2013-10-01 19:06:13 +02:00
|
|
|
|
# we install the documentation in a separate location using the doc macro
|
2014-06-15 23:14:53 +02:00
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
|
|
|
|
|
2016-07-16 20:11:18 +02:00
|
|
|
|
%check
|
2017-01-03 00:10:44 +01:00
|
|
|
|
%if "%{qemu_user_space_build}" == "0"
|
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
%endif
|
2014-06-15 23:14:53 +02:00
|
|
|
|
|
2016-07-16 20:11:18 +02:00
|
|
|
|
%post -n libjq1 -p /sbin/ldconfig
|
2014-06-15 23:14:53 +02:00
|
|
|
|
%postun -n libjq1 -p /sbin/ldconfig
|
2013-10-01 19:06:13 +02:00
|
|
|
|
|
|
|
|
|
%files
|
2018-11-03 09:58:11 +01:00
|
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README.md
|
2013-10-01 19:06:13 +02:00
|
|
|
|
%{_bindir}/%{name}
|
2018-11-03 09:58:11 +01:00
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2013-10-01 19:06:13 +02:00
|
|
|
|
|
2014-06-15 23:14:53 +02:00
|
|
|
|
%files -n libjq1
|
|
|
|
|
%{_libdir}/libjq.so.1*
|
|
|
|
|
|
|
|
|
|
%files -n libjq-devel
|
|
|
|
|
%{_includedir}/jq.h
|
|
|
|
|
%{_includedir}/jv.h
|
|
|
|
|
%{_libdir}/libjq.so
|
|
|
|
|
|
2013-10-01 19:06:13 +02:00
|
|
|
|
%changelog
|