include.am 979 B

123456789101112131415161718192021222324252627282930313233343536
  1. # vim:ft=automake
  2. rpm-build: rpm/spec dist
  3. @rm -f *.rpm
  4. rpmdev-setuptree
  5. find ~/rpmbuild/RPMS ~/rpmbuild/SRPMS -name "$(PACKAGE)-$(VERSION)*.rpm" | xargs rm -f
  6. @cp $(PACKAGE)-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
  7. @rpmbuild -ba --clean rpm/spec
  8. @cp ~/rpmbuild/RPMS/*/$(PACKAGE)-$(VERSION)*.rpm .
  9. @cp ~/rpmbuild/RPMS/*/$(PACKAGE)-devel-$(VERSION)*.rpm .
  10. @cp ~/rpmbuild/RPMS/*/$(PACKAGE)-debuginfo-$(VERSION)*.rpm .
  11. @cp ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm .
  12. rpm-sign: rpm-build
  13. @rpm --addsign *.rpm
  14. @rpm --checksig *.rpm
  15. clean-rpm:
  16. @rm -f *.tar.gz
  17. @rm -f *.src.rpm
  18. @rm -f *.rpm
  19. rpm: rpm-build
  20. rpm-docker:
  21. docker build -t "fedora-builder:Dockerfile" Docker/packaging/fedora
  22. docker run --rm -v $(CURDIR):/opt/wolfssl fedora-builder:Dockerfile \
  23. bash -c 'make -C /opt/wolfssl rpm'
  24. # To allow the user to keep using the configuration on the host
  25. @./config.status --recheck &> /dev/null
  26. release: rpm-sign
  27. auto-rpmbuild:
  28. @auto-br-rpmbuild -ba rpm/spec