2013-10-01 19:06:13 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package jq
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2013 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
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
Name: jq
|
|
|
|
|
Version: 1.3
|
|
|
|
|
Release: 0.0
|
2013-10-17 21:34:50 +02:00
|
|
|
|
License: MIT and CC-BY-3.0
|
2013-10-01 19:06:13 +02:00
|
|
|
|
Summary: A lightweight and flexible command-line JSON processor
|
|
|
|
|
Url: http://stedolan.github.io/jq/
|
|
|
|
|
Group: Productivity/Text/Utilities
|
|
|
|
|
Source: http://stedolan.github.io/jq/download/source/jq-1.3.tar.gz
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
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
|
|
|
|
|
you play with text.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
# we install the documentation in a separate location using the doc macro
|
|
|
|
|
%{__rm} -rf %{buildroot}/usr/share/doc/%{name}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README README.md COPYING AUTHORS
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_mandir}/man1/%{name}.1.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|