SHA256
1
0
forked from pool/jq
jq/jq.spec
Ismail Dönmez f604510b4e Accepting request 646096 from home:avindra:branches:utilities
- Update to version 1.6
  * Destructuring Alternation
  * many new builtins (see docs)
  * Add support for ASAN and UBSAN
  * Make it easier to use jq with shebangs
  * Add $ENV builtin variable to access environment
  * Add JQ_COLORS env var for configuring the output colors
  * change: Calling jq without a program argument now always assumes
    "." for the program, regardless of stdin/stdout
  * fix: Make sorting stable regardless of qsort.
- cleanup with spec-cleaner
- drop CVE-2015-8863.patch (upstreamed in 8eb1367ca44e772963e704a700ef72ae2e12babd)
- drop CVE-2016-4074.patch (upstreamed in fd4ae8304e23007672af9a37855c7a76de7c78cf)

OBS-URL: https://build.opensuse.org/request/show/646096
OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=19
2018-11-03 08:58:11 +00:00

97 lines
2.6 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package jq
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 https://bugs.opensuse.org/
#
Name: jq
Version: 1.6
Release: 0
Summary: A lightweight and flexible command-line JSON processor
License: MIT AND CC-BY-3.0
Group: Productivity/Text/Utilities
URL: http://stedolan.github.io/jq/
Source: https://github.com/stedolan/jq/releases/download/jq-%{version}/jq-%{version}.tar.gz
BuildRequires: chrpath
BuildRequires: flex
BuildRequires: oniguruma-devel
BuildRequires: valgrind
%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
structured data with the same ease that sed, awk, grep and friends let
you play with text.
%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).
%prep
%setup -q
%build
%configure \
--disable-static \
--disable-silent-rules
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}
%check
%if "%{qemu_user_space_build}" == "0"
make %{?_smp_mflags} check
%endif
%post -n libjq1 -p /sbin/ldconfig
%postun -n libjq1 -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files -n libjq1
%{_libdir}/libjq.so.1*
%files -n libjq-devel
%{_includedir}/jq.h
%{_includedir}/jv.h
%{_libdir}/libjq.so
%changelog