Rev | Line | |
---|
[9212] | 1 | %define ver 1.4 |
---|
| 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 |
---|
| 13 | |
---|
| 14 | Vendor: Project Vine |
---|
| 15 | Distribution: Vine Linux |
---|
| 16 | Packager: iwaim |
---|
| 17 | |
---|
| 18 | %description |
---|
| 19 | jq is like sed for JSON data – you can use it to slice and filter and |
---|
| 20 | map and transform structured data with the same ease that sed, awk, |
---|
| 21 | grep and friends let you play with text. |
---|
| 22 | |
---|
| 23 | %package devel |
---|
| 24 | Summary: Development files for %{name} |
---|
| 25 | Group: Development/Libraries |
---|
| 26 | Requires: %{name} = %{version}-%{release} |
---|
| 27 | |
---|
| 28 | %description devel |
---|
| 29 | The %{name}-devel package contains libraries and header files for |
---|
| 30 | developing applications that use %{name}. |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q |
---|
| 34 | %configure --enable-shared --enable-static=no |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | %__make |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | rm -rf $RPM_BUILD_ROOT |
---|
| 41 | %makeinstall |
---|
| 42 | |
---|
| 43 | %clean |
---|
| 44 | rm -rf $RPM_BUILD_ROOT |
---|
| 45 | |
---|
| 46 | %check |
---|
| 47 | make check |
---|
| 48 | |
---|
| 49 | %post -p /sbin/ldconfig |
---|
| 50 | |
---|
| 51 | %postun -p /sbin/ldconfig |
---|
| 52 | |
---|
| 53 | %files |
---|
| 54 | %defattr(-,root,root,-) |
---|
| 55 | %doc AUTHORS COPYING README* |
---|
| 56 | %{_bindir}/jq |
---|
| 57 | %{_libdir}/libjq.so.* |
---|
| 58 | %{_mandir}/man1/jq.1* |
---|
| 59 | |
---|
| 60 | %files devel |
---|
| 61 | %defattr(-,root,root,-) |
---|
| 62 | %{_includedir}/*.h |
---|
| 63 | %{_libdir}/libjq.so |
---|
| 64 | |
---|
| 65 | %changelog |
---|
| 66 | * Fri Jan 2 2015 IWAI, Masaharu <iwaim.sub@gmail.com> |
---|
| 67 | - initial release Vine Linux |
---|
Note: See
TracBrowser
for help on using the repository browser.