eb1c8d9f45
- updated to 1.4 OBS-URL: https://build.opensuse.org/request/show/237443 OBS-URL: https://build.opensuse.org/package/show/utilities/jq?expand=0&rev=5
89 lines
2.4 KiB
RPMSpec
89 lines
2.4 KiB
RPMSpec
#
|
||
# spec file for package jq
|
||
#
|
||
# 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
|
||
# 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.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/
|
||
Source: http://stedolan.github.io/jq/download/source/%{name}-%{version}.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.
|
||
|
||
%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
|
||
make %{?_smp_mflags}
|
||
|
||
%install
|
||
%make_install
|
||
|
||
# we install the documentation in a separate location using the doc macro
|
||
rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
||
|
||
%post -n libjq1 -p /sbin/ldconfig
|
||
|
||
%postun -n libjq1 -p /sbin/ldconfig
|
||
|
||
%files
|
||
%defattr(-,root,root)
|
||
%doc README README.md COPYING AUTHORS
|
||
%{_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.a
|
||
%{_libdir}/libjq.la
|
||
%{_libdir}/libjq.so
|
||
|
||
%changelog
|