gopass.spec 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## gopass.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2022 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_gopass_base 1.13.0
  25. %define V_gopass_snap 20211212
  26. # package information
  27. Name: gopass
  28. Summary: Password Manager
  29. URL: https://www.gopass.pw/
  30. Vendor: JustWatch GmbH
  31. Packager: OpenPKG Project
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: Filesystem
  35. License: MIT
  36. Version: %{V_gopass_base}.%{V_gopass_snap}
  37. Release: 20211212
  38. # list of sources
  39. Source0: http://download.openpkg.org/components/versioned/gopass/gopass-%{V_gopass_snap}.tar.xz
  40. # build information
  41. BuildPreReq: OpenPKG, openpkg >= 20160101, go
  42. PreReq: OpenPKG, openpkg >= 20160101, gnupg, git
  43. %description
  44. Password management should be simple and follow Unix philosophy.
  45. With gopass, each secret lives inside of a gpg encrypted file whose
  46. filename is the title of the website or resource that requires the
  47. secret. These encrypted files may be organized into meaningful
  48. folder hierarchies, copied from computer to computer, and, in
  49. general, manipulated using standard command line file management
  50. utilities.
  51. %track
  52. prog gopass:release = {
  53. version = %{V_gopass_base}
  54. url = https://github.com/gopasspw/gopass/releases
  55. regex = v(\d+\.\d+\.\d+)\.tar\.gz
  56. }
  57. prog gopass:snapshot = {
  58. version = %{V_gopass_snap}
  59. url = http://download.openpkg.org/components/versioned/gopass/
  60. regex = gopass-(__VER__)\.tar\.xz
  61. }
  62. %prep
  63. %setup -q -n gopass
  64. %build
  65. # build program
  66. export GOPATH=`pwd`
  67. cd src/github.com/gopasspw/gopass
  68. go build -v -o gopass
  69. %install
  70. # create directory hierarchy
  71. %{l_shtool} mkdir -f -p -m 755 \
  72. $RPM_BUILD_ROOT%{l_prefix}/bin
  73. # install program
  74. %{l_shtool} install -c -s -m 755 \
  75. src/github.com/gopasspw/gopass/gopass \
  76. $RPM_BUILD_ROOT%{l_prefix}/bin/
  77. # determine installation files
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  79. %files -f files
  80. %clean