Rev | Line | |
---|
[10862] | 1 | %define ver 1.5 |
---|
[9212] | 2 | %define rel 1 |
---|
| 3 | |
---|
| 4 | Summary: a command-line JSON processor |
---|
| 5 | Name: jq |
---|
| 6 | Version: %{ver} |
---|
| 7 | Release: %{rel}%{?_dist_release} |
---|
| 8 | License: BSD |
---|
| 9 | Group: Applications/Text |
---|
| 10 | URL: http://stedolan.github.io/jq/ |
---|
| 11 | Source0: http://stedolan.github.io/jq/download/source/%{name}-%{version}.tar.gz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
[10862] | 13 | BuildRequires: oniguruma-devel |
---|
[9212] | 14 | |
---|
| 15 | Vendor: Project Vine |
---|
| 16 | Distribution: Vine Linux |
---|
| 17 | Packager: iwaim |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | jq is like sed for JSON data – you can use it to slice and filter and |
---|
| 21 | map and transform structured data with the same ease that sed, awk, |
---|
| 22 | grep and friends let you play with text. |
---|
| 23 | |
---|
| 24 | %package devel |
---|
| 25 | Summary: Development files for %{name} |
---|
| 26 | Group: Development/Libraries |
---|
| 27 | Requires: %{name} = %{version}-%{release} |
---|
| 28 | |
---|
| 29 | %description devel |
---|
| 30 | The %{name}-devel package contains libraries and header files for |
---|
| 31 | developing applications that use %{name}. |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q |
---|
| 35 | %configure --enable-shared --enable-static=no |
---|
| 36 | |
---|
| 37 | %build |
---|
| 38 | %__make |
---|
| 39 | |
---|
| 40 | %install |
---|
| 41 | rm -rf $RPM_BUILD_ROOT |
---|
| 42 | %makeinstall |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | rm -rf $RPM_BUILD_ROOT |
---|
| 46 | |
---|
| 47 | %check |
---|
| 48 | make check |
---|
| 49 | |
---|
| 50 | %post -p /sbin/ldconfig |
---|
| 51 | |
---|
| 52 | %postun -p /sbin/ldconfig |
---|
| 53 | |
---|
| 54 | %files |
---|
| 55 | %defattr(-,root,root,-) |
---|
| 56 | %doc AUTHORS COPYING README* |
---|
| 57 | %{_bindir}/jq |
---|
| 58 | %{_libdir}/libjq.so.* |
---|
| 59 | %{_mandir}/man1/jq.1* |
---|
| 60 | |
---|
| 61 | %files devel |
---|
| 62 | %defattr(-,root,root,-) |
---|
| 63 | %{_includedir}/*.h |
---|
| 64 | %{_libdir}/libjq.so |
---|
| 65 | |
---|
| 66 | %changelog |
---|
[10862] | 67 | * Fri Sep 2 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5-1 |
---|
| 68 | - add BR: oniguruma-devel |
---|
| 69 | |
---|
| 70 | * Fri Jan 2 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 1.4-1 |
---|
[9212] | 71 | - initial release Vine Linux |
---|
Note: See
TracBrowser
for help on using the repository browser.