2013-10-01 19:06:13 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package jq
|
|
|
|
|
#
|
2016-04-25 13:52:50 +02:00
|
|
|
|
# Copyright (c) 2016 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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2014-06-15 23:14:53 +02:00
|
|
|
|
|
2013-10-01 19:06:13 +02:00
|
|
|
|
Name: jq
|
2015-08-21 10:59:18 +02:00
|
|
|
|
Version: 1.5
|
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
|
2014-06-15 23:14:53 +02:00
|
|
|
|
License: MIT and CC-BY-3.0
|
|
|
|
|
Group: Productivity/Text/Utilities
|
2013-10-01 19:06:13 +02: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
|
2016-04-25 13:52:50 +02:00
|
|
|
|
Patch1: CVE-2015-8863.patch
|
2013-10-01 19:06:13 +02:00
|
|
|
|
BuildRequires: autoconf
|
2014-06-27 13:08:04 +02:00
|
|
|
|
BuildRequires: chrpath
|
2013-10-01 19:06:13 +02:00
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: make
|
2015-08-21 10:59:18 +02:00
|
|
|
|
BuildRequires: oniguruma-devel
|
2013-10-01 19:06:13 +02:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%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
|
2016-04-25 13:52:50 +02:00
|
|
|
|
%patch1 -p2
|
2013-10-01 19:06:13 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2014-06-27 13:08:04 +02:00
|
|
|
|
%configure --disable-static
|
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}
|
|
|
|
|
|
|
|
|
|
%post -n libjq1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n libjq1 -p /sbin/ldconfig
|
2013-10-01 19:06:13 +02:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2015-08-21 10:59:18 +02:00
|
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README README.md
|
2013-10-01 19:06:13 +02:00
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_mandir}/man1/%{name}.1.gz
|
|
|
|
|
|
2014-06-15 23:14:53 +02:00
|
|
|
|
%files -n libjq1
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libjq.so.1*
|
|
|
|
|
|
|
|
|
|
%files -n libjq-devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/jq.h
|
|
|
|
|
%{_includedir}/jv.h
|
|
|
|
|
%{_libdir}/libjq.so
|
|
|
|
|
|
2013-10-01 19:06:13 +02:00
|
|
|
|
%changelog
|