aboutsummaryrefslogtreecommitdiff
path: root/fedora/Makefile
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-03-23 16:28:49 -0400
committerJoshua M. Boniface <joshua@boniface.me>2020-03-23 17:32:07 -0400
commit6028bc0f7915a09caea881462008561424a15829 (patch)
treeb307d2bba6ead9bfaa8629c7ac33311cb121d48c /fedora/Makefile
parenteb632e4a0dd5d83a1aea4c710caf1ea0f3ad6b0e (diff)
Port Fedora and CentOS builds and remove web build
Simplifies a number of aspects of the RPM build, including moving .copr/Makefile into the "fedora/" folder (and leaving a symlink), removing the jellyfin-web build components, and renaming it jellyfin-server like Debian did.
Diffstat (limited to 'fedora/Makefile')
-rw-r--r--fedora/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/fedora/Makefile b/fedora/Makefile
new file mode 100644
index 0000000000..1d2709a2fe
--- /dev/null
+++ b/fedora/Makefile
@@ -0,0 +1,29 @@
+VERSION := $(shell sed -ne '/^Version:/s/.* *//p' fedora/jellyfin.spec)
+
+srpm:
+ cd fedora/; \
+ SOURCE_DIR=.. \
+ WORKDIR="$${PWD}"; \
+ package_temporary_dir="$${WORKDIR}/pkg-dist-tmp"; \
+ pkg_src_dir="$${WORKDIR}"; \
+ GNU_TAR=1; \
+ tar \
+ --transform "s,^\.,jellyfin-server-$(VERSION)," \
+ --exclude='.git*' \
+ --exclude='**/.git' \
+ --exclude='**/.hg' \
+ --exclude='**/.vs' \
+ --exclude='**/.vscode' \
+ --exclude='deployment' \
+ --exclude='**/bin' \
+ --exclude='**/obj' \
+ --exclude='**/.nuget' \
+ --exclude='*.deb' \
+ --exclude='*.rpm' \
+ --exclude='jellyfin-server-$(VERSION).tar.gz' \
+ -czf "jellyfin-server-$(VERSION).tar.gz" \
+ -C $${SOURCE_DIR} ./
+ cd fedora/; \
+ rpmbuild -bs jellyfin.spec \
+ --define "_sourcedir $$PWD/" \
+ --define "_srcrpmdir $(outdir)"