actions.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. #shelltools.export("CFLAGS","%s -fPIE" % get.CFLAGS())
  12. #shelltools.export("LDFLAGS", "%s -pie -Wl,-z,relro,-z,now" % get.LDFLAGS())
  13. shelltools.system("sed -e '/noinst_SCRIPTS = gpg-zip/c sbin_SCRIPTS += gpg-zip' -i tools/Makefile.in")
  14. autotools.configure("--enable-symcryptrun \
  15. --disable-rpath \
  16. --enable-gpgtar \
  17. --enable-maintainer-mode")
  18. def build():
  19. autotools.make("-j1")
  20. autotools.make("-C doc html")
  21. # IMPORTANT: for packagers check disabled for build in farm. please test local if passed, commit
  22. #def check():
  23. # autotools.make("check")
  24. def install():
  25. autotools.rawInstall('DESTDIR=%s libexecdir="/usr/libexec"' % get.installDIR())
  26. # Compat symlinks
  27. pisitools.dosym("gpg", "/usr/bin/gpg2")
  28. pisitools.dosym("gpgv", "/usr/bin/gpgv2")
  29. pisitools.dosym("gpg.1", "/usr/share/man/man1/gpg2.1")
  30. pisitools.dosym("gpgv.1", "/usr/share/man/man1/gpgv2.1")
  31. # Lets make doc
  32. pisitools.dohtml("doc/*")
  33. pisitools.dohtml("doc/gnupg.html/*")
  34. pisitools.dodoc("ChangeLog", "NEWS", "README", "THANKS", "TODO")