kickout.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##
  2. ## kickout.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2020 OpenPKG Project <http://openpkg.org/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_kickout 1.3.6
  25. %define V_kickout_snap 20200705
  26. # package information
  27. Name: kickout
  28. Summary: Conventiently Release Git-Versioned NPM Package
  29. URL: https://github.com/rse/kickout
  30. Vendor: Dr. Ralf S. Engelschall
  31. Packager: OpenPKG Project
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: Development
  35. License: MIT
  36. Version: %{V_kickout}
  37. Release: 20200705
  38. # list of sources
  39. Source0: http://download.openpkg.org/components/versioned/kickout/kickout-%{V_kickout}-%{V_kickout_snap}.tar.gz
  40. Source1: kickout.sh
  41. # build information
  42. BuildPreReq: OpenPKG, openpkg >= 20160101, node-openpkg
  43. PreReq: OpenPKG, openpkg >= 20160101, node
  44. %description
  45. This is a small opinionated Command-Line Interface (CLI) for
  46. conveniently releasing a Git-versioned NPM package. It performs
  47. sanity checks, bumps the semantic version in `package.json`, commits
  48. the changes to Git, tags the repository with the new version and
  49. publishes the package via NPM.
  50. %track
  51. prog kickout = {
  52. version = %{V_kickout}-%{V_kickout_snap}
  53. url = http://download.openpkg.org/components/versioned/kickout/
  54. regex = kickout-(__VER__)\.tar\.gz
  55. }
  56. %prep
  57. %setup -q -c
  58. %build
  59. # contained packages are very sensible about its files, so this does not work.
  60. # %{l_prefix}/bin/node-openpkg squeeze -n "default:safe"
  61. %install
  62. %{l_shtool} mkdir -f -p -m 755 \
  63. $RPM_BUILD_ROOT%{l_prefix}/bin \
  64. $RPM_BUILD_ROOT%{l_prefix}/lib/kickout
  65. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  66. %{SOURCE kickout.sh} \
  67. $RPM_BUILD_ROOT%{l_prefix}/bin/kickout
  68. %{l_prefix}/bin/node-openpkg install \
  69. %{l_prefix}/lib/kickout/
  70. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  71. %files -f files
  72. %clean