mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
8a9a74dc12
The README mentions only the MIT license but in fact part of `jq` is under ICU license and the documentation is under CC. Also jq.spec claimed that it is licensed under BSD.
70 lines
1.4 KiB
RPMSpec
70 lines
1.4 KiB
RPMSpec
# 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.
|
|
Summary: Command-line JSON processor
|
|
Name: jq
|
|
Version: %{myver}
|
|
Release: %{myrel}%{?dist}
|
|
Source0: jq-%{myver}.tar.gz
|
|
URL: https://jqlang.github.io/jq
|
|
License: MIT AND ICU AND CC-BY-3.0
|
|
AutoReqProv: no
|
|
#BuildPrereq: autoconf, libtool, automake, flex, bison, python
|
|
|
|
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}
|
|
|
|
# Crank up the compression
|
|
%define _binary_payload w7.lzdio
|
|
|
|
%description
|
|
jq is a command-line JSON processor
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
echo "Building in: \"$(pwd)\""
|
|
%if "%{devbuild}" == "yes"
|
|
./configure --prefix=%{_prefix} --enable-devel
|
|
%else
|
|
./configure --prefix=%{_prefix}
|
|
%endif
|
|
make
|
|
|
|
%install
|
|
echo "Installing to: \"%{buildroot}\""
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/jq
|
|
%if "%{devbuild}" == "yes"
|
|
%{_libexecdir}/%{name}/jq_test
|
|
%{_libexecdir}/%{name}/testdata
|
|
%endif
|
|
%{_datadir}/doc/%{name}/AUTHORS
|
|
%{_datadir}/doc/%{name}/COPYING
|
|
%{_datadir}/doc/%{name}/README.md
|
|
%{_datadir}/man/man1/jq.1
|
|
%{_includedir}/jq.h
|
|
%{_includedir}/jv.h
|
|
%{_prefix}/lib/libjq.a
|
|
%{_prefix}/lib/libjq.la
|
|
%{_prefix}/lib/libjq.so
|
|
%{_prefix}/lib/libjq.so.1
|
|
%{_prefix}/lib/libjq.so.1.0.4
|
|
|
|
%changelog
|
|
|
|
%pre
|
|
|
|
%post
|