forked from jqlang/jq
-
Notifications
You must be signed in to change notification settings - Fork 2
/
jq.spec
55 lines (43 loc) · 1.05 KB
/
jq.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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: %{version}
Release: %{release}
Source0: jq-%{version}.tar.gz
URL: https://github.com/stedolan/jq
License: BSD
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}
%description
jq is a command-line JSON processor
%prep
%setup
%build
echo "Building in: \"$(pwd)\""
./configure --prefix=%{_prefix}
make
%install
echo "Installing to: \"${RPM_BUILD_ROOT}\""
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%{_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
%changelog
%pre
%post