jq-vl.spec 1.3 KB

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