Makefile 1.8 KB

1234567891011121314151617181920212223242526
  1. VERSION := $(shell sed -ne '/^Version:/s/.* *//p' fedora/jellyfin.spec)
  2. srpm:
  3. cd fedora/; \
  4. SOURCE_DIR=.. \
  5. WORKDIR="$${PWD}"; \
  6. tar \
  7. --transform "s,^\.,jellyfin-server-$(VERSION)," \
  8. --exclude='.git*' \
  9. --exclude='**/.git' \
  10. --exclude='**/.hg' \
  11. --exclude='**/.vs' \
  12. --exclude='**/.vscode' \
  13. --exclude='deployment' \
  14. --exclude='**/bin' \
  15. --exclude='**/obj' \
  16. --exclude='**/.nuget' \
  17. --exclude='*.deb' \
  18. --exclude='*.rpm' \
  19. --exclude='jellyfin-server-$(VERSION).tar.gz' \
  20. -czf "jellyfin-server-$(VERSION).tar.gz" \
  21. -C $${SOURCE_DIR} ./
  22. cd fedora/; \
  23. rpmbuild -bs jellyfin.spec \
  24. --define "_sourcedir $$PWD/" \
  25. --define "_srcrpmdir $(outdir)"