2012-12-03 17:27:40 -06:00
|
|
|
# This is spec file maintained by developers of JQ, not by a OS distro.
|
|
|
|
# Your OS of choice will likely ignore this RPM spec file.
|
2012-10-30 10:26:08 -07:00
|
|
|
Summary: Command-line JSON processor
|
|
|
|
Name: jq
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
2012-12-03 17:27:40 -06:00
|
|
|
Source0: jq-%{version}.tar.gz
|
2012-10-30 10:26:08 -07:00
|
|
|
URL: https://github.com/stedolan/jq
|
2012-12-03 17:27:40 -06:00
|
|
|
License: BSD
|
|
|
|
AutoReqProv: no
|
|
|
|
BuildPrereq: autoconf, libtool, automake, flex, bison, python
|
|
|
|
|
2012-10-30 10:26:08 -07:00
|
|
|
Group: Applications/System
|
|
|
|
# Requires:
|
|
|
|
|
|
|
|
# Disables debug packages and stripping of binaries:
|
|
|
|
%global _enable_debug_package 0
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global __os_install_post %{nil}
|
2012-12-03 17:27:40 -06:00
|
|
|
|
2012-10-30 10:26:08 -07:00
|
|
|
%description
|
|
|
|
jq is a command-line JSON processor
|
2012-12-03 17:27:40 -06:00
|
|
|
|
2012-10-30 10:26:08 -07:00
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2012-12-03 17:27:40 -06:00
|
|
|
echo "Building in: \"$(pwd)\""
|
|
|
|
./configure --prefix=%{_prefix}
|
|
|
|
make
|
|
|
|
|
2012-10-30 10:26:08 -07:00
|
|
|
%install
|
2012-12-03 17:27:40 -06:00
|
|
|
echo "Installing to: \"${RPM_BUILD_ROOT}\""
|
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
2012-10-30 10:26:08 -07:00
|
|
|
|
|
|
|
%clean
|
2012-12-03 17:27:40 -06:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2012-10-30 10:26:08 -07:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-12-03 17:27:40 -06:00
|
|
|
%{_bindir}/jq
|
|
|
|
%{_bindir}/jq_test
|
|
|
|
%{_datadir}/doc/jq/AUTHORS
|
|
|
|
%{_datadir}/doc/jq/COPYING
|
|
|
|
%{_datadir}/doc/jq/INSTALL
|
|
|
|
%{_datadir}/doc/jq/NEWS
|
|
|
|
%{_datadir}/doc/jq/README
|
|
|
|
%{_datadir}/doc/jq/README.md
|
|
|
|
|
2012-10-30 10:26:08 -07:00
|
|
|
%changelog
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%post
|