Script to trigger re-build of slop - https://github.com/naelstrof/slop

slop.spec.in 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Name: slop
  2. Version: __APP_VERSION__
  3. Release: __APP_RELEASE__
  4. Summary: Select Operation
  5. URL: https://github.com/naelstrof/slop
  6. License: GPLv3
  7. Source0: __APP_URLBASE__/archive/v%{version}.tar.gz
  8. BuildRequires: gcc-c++ >= 4.9
  9. BuildRequires: cmake
  10. BuildRequires: glew-devel
  11. BuildRequires: glm-devel
  12. BuildRequires: libicu-devel
  13. BuildRequires: libXrender-devel
  14. BuildRequires: mesa-libEGL-devel
  15. Requires: libslopy = %{version}-%{release}
  16. %description
  17. slop (Select Operation) is an application that queries for a selection
  18. from the user and prints the region to stdout.
  19. %package -n libslopy
  20. Summary: Select Operation
  21. Group: System Environment/Libraries
  22. %description -n libslopy
  23. slop (Select Operation) is an application that queries for a selection
  24. from the user and prints the region to stdout.
  25. This sub-package contains libslopy library.
  26. %package -n libslopy-devel
  27. Summary: Select Operation
  28. Group: Development/Libraries
  29. Requires: libslopy = %{version}-%{release}
  30. %description -n libslopy-devel
  31. slop (Select Operation) is an application that queries for a selection
  32. from the user and prints the region to stdout.
  33. This sub-package contains development files for libslopy library.
  34. %prep
  35. %autosetup -n %{name}-%{version}
  36. %build
  37. CXXFLAGS="${CXXFLAGS:-%{optflags}}"; export CXXFLAGS
  38. cmake -DCMAKE_INSTALL_PREFIX="/usr" ./
  39. %install
  40. %make_install
  41. %post -n libslopy
  42. /sbin/ldconfig
  43. %postun -n libslopy
  44. /sbin/ldconfig
  45. %files
  46. %{_bindir}/slop
  47. %{_mandir}/man1/slop.1.gz
  48. %files -n libslopy
  49. %{_libdir}/libslopy.so.%{version}
  50. %files -n libslopy-devel
  51. %{_libdir}/libslopy.so
  52. %{_includedir}/slop.hpp
  53. %changelog
  54. * __APP_DATE__ Alois Mahdal <netvor+slop@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
  55. - Unofficial experimental RPM pseudo-release
  56. # spec file generated from __APP_BUILDSCRIPT_VERSION__