Accepting request 238860 from utilities
- Don't package static libs - Fix rpath on the main binary - Updated to 1.4 + New command line arguments * jq --arg-file variable file * jq --unbuffered * jq -e / --exit-status (set exit status based on outputs) * jq -S / --sort-keys (now jq no longer sorts object keys by default + Syntax changes * .. -> like // in XPath (recursive traversal) * question mark (e.g., .a?) to suppress errors * ."foo" syntax (equivalent to .["foo"]) * better error handling for .foo * added % operator (modulo) * allow negation without requiring extra parenthesis * more function arguments (up to six) + New filters * any, all * iterables, arrays, objects, scalars, nulls, booleans, numbers, strings, values + New string built-ins * split * join (join an array of strings with a given separator string) * ltrimstr, rtrimstr * startswith, endswith * explode, implode * fromjson, tojson * index, rindex, indices OBS-URL: https://build.opensuse.org/request/show/238860 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jq?expand=0&rev=2
This commit is contained in:
commit
8da311ac1c
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:623f23c36abfc1d96d85020cf421b56f90a229d566f26a4a0d3e8536244bfed7
|
||||
size 333678
|
3
jq-1.4.tar.gz
Normal file
3
jq-1.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:998c41babeb57b4304e65b4eb73094279b3ab1e63801b6b4bddd487ce009b39d
|
||||
size 578317
|
44
jq.changes
44
jq.changes
@ -1,3 +1,45 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
- Updated to 1.4
|
||||
+ New command line arguments
|
||||
* jq --arg-file variable file
|
||||
* jq --unbuffered
|
||||
* jq -e / --exit-status (set exit status based on outputs)
|
||||
* jq -S / --sort-keys (now jq no longer sorts object keys by
|
||||
default
|
||||
+ Syntax changes
|
||||
* .. -> like // in XPath (recursive traversal)
|
||||
* question mark (e.g., .a?) to suppress errors
|
||||
* ."foo" syntax (equivalent to .["foo"])
|
||||
* better error handling for .foo
|
||||
* added % operator (modulo)
|
||||
* allow negation without requiring extra parenthesis
|
||||
* more function arguments (up to six)
|
||||
+ New filters
|
||||
* any, all
|
||||
* iterables, arrays, objects, scalars, nulls, booleans,
|
||||
numbers, strings, values
|
||||
+ New string built-ins
|
||||
* split
|
||||
* join (join an array of strings with a given separator string)
|
||||
* ltrimstr, rtrimstr
|
||||
* startswith, endswith
|
||||
* explode, implode
|
||||
* fromjson, tojson
|
||||
* index, rindex, indices
|
||||
+ New math functions
|
||||
* floor, sqrt, cbrt, etc.
|
||||
+ Addition of libjq, a C API interface to jq's JSON representation
|
||||
and for running jq programs from C applications.
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 17 15:55:03 UTC 2013 - cdenicolo@suse.com
|
||||
|
||||
@ -7,5 +49,5 @@ Thu Oct 17 15:55:03 UTC 2013 - cdenicolo@suse.com
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 1 15:09:01 UTC 2013 - robert.munteanu@gmail.com
|
||||
|
||||
- Initial packaging of version 1.3
|
||||
- Initial packaging of version 1.3
|
||||
|
||||
|
56
jq.spec
56
jq.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package jq
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,38 +15,64 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: jq
|
||||
Version: 1.3
|
||||
Release: 0.0
|
||||
License: MIT and CC-BY-3.0
|
||||
Version: 1.4
|
||||
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/
|
||||
Group: Productivity/Text/Utilities
|
||||
Source: http://stedolan.github.io/jq/download/source/jq-1.3.tar.gz
|
||||
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
|
||||
|
||||
%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
|
||||
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
|
||||
%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}/usr/share/doc/%{name}
|
||||
rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
||||
|
||||
%post -n libjq1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libjq1 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
@ -54,4 +80,14 @@ make %{?_smp_mflags}
|
||||
%{_bindir}/%{name}
|
||||
%{_mandir}/man1/%{name}.1.gz
|
||||
|
||||
%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
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user