mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Run bump_version in make srpm
Also add an "rpms" target that builds the RPMs using mock in a target environment. Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
This commit is contained in:
parent
584cf47ef5
commit
296a61cbc4
@ -1,26 +1,41 @@
|
|||||||
VERSION := $(shell sed -ne '/^Version:/s/.* *//p' fedora/jellyfin.spec)
|
VERSION := $(shell sed -ne '/^Version:/s/.* *//p' fedora/jellyfin.spec)
|
||||||
|
outdir ?= fedora/
|
||||||
|
TARGET ?= fedora-35-x86_64
|
||||||
|
|
||||||
srpm:
|
srpm:
|
||||||
cd fedora/; \
|
pushd fedora/; \
|
||||||
SOURCE_DIR=.. \
|
if [ "$$(id -u)" = "0" ]; then \
|
||||||
WORKDIR="$${PWD}"; \
|
dnf -y install git; \
|
||||||
tar \
|
fi; \
|
||||||
--transform "s,^\.,jellyfin-server-$(VERSION)," \
|
version=$$(git describe --tags | sed -e 's/^v//' \
|
||||||
--exclude='.git*' \
|
-e 's/-[0-9]*-g.*$$//' \
|
||||||
--exclude='**/.git' \
|
-e 's/-/~/'); \
|
||||||
--exclude='**/.hg' \
|
SOURCE_DIR=.. \
|
||||||
--exclude='**/.vs' \
|
WORKDIR="$${PWD}"; \
|
||||||
--exclude='**/.vscode' \
|
tar \
|
||||||
--exclude='deployment' \
|
--transform "s,^\.,jellyfin-server-$$version," \
|
||||||
--exclude='**/bin' \
|
--exclude='.git*' \
|
||||||
--exclude='**/obj' \
|
--exclude='**/.git' \
|
||||||
--exclude='**/.nuget' \
|
--exclude='**/.hg' \
|
||||||
--exclude='*.deb' \
|
--exclude='**/.vs' \
|
||||||
--exclude='*.rpm' \
|
--exclude='**/.vscode' \
|
||||||
--exclude='jellyfin-server-$(VERSION).tar.gz' \
|
--exclude=deployment \
|
||||||
-czf "jellyfin-server-$(VERSION).tar.gz" \
|
--exclude='**/bin' \
|
||||||
-C $${SOURCE_DIR} ./
|
--exclude='**/obj' \
|
||||||
cd fedora/; \
|
--exclude='**/.nuget' \
|
||||||
rpmbuild -bs jellyfin.spec \
|
--exclude='*.deb' \
|
||||||
--define "_sourcedir $$PWD/" \
|
--exclude='*.rpm' \
|
||||||
|
--exclude=jellyfin-server-$$version.tar.gz \
|
||||||
|
-czf "jellyfin-server-$$version.tar.gz" \
|
||||||
|
-C $${SOURCE_DIR} ./; \
|
||||||
|
popd; \
|
||||||
|
./bump_version $$version
|
||||||
|
cd fedora/; \
|
||||||
|
rpmbuild -bs jellyfin.spec \
|
||||||
|
--define "_sourcedir $$PWD/" \
|
||||||
--define "_srcrpmdir $(outdir)"
|
--define "_srcrpmdir $(outdir)"
|
||||||
|
|
||||||
|
rpms: fedora/jellyfin-$(shell git describe --tags | sed -e 's/^v//' -e 's/-[0-9]*-g.*$$//' -e 's/-/~/')-1$(shell rpm --eval %dist).src.rpm
|
||||||
|
mock --addrepo=https://download.copr.fedorainfracloud.org/results/@dotnet-sig/dotnet-preview/$(TARGET)/ \
|
||||||
|
--enable-network \
|
||||||
|
-r $(TARGET) $<
|
||||||
|
@ -12,7 +12,7 @@ Release: 1%{?dist}
|
|||||||
Summary: The Free Software Media System
|
Summary: The Free Software Media System
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://jellyfin.org
|
URL: https://jellyfin.org
|
||||||
# Jellyfin Server tarball created by `make -f .copr/Makefile srpm`, real URL ends with `v%{version}.tar.gz`
|
# Jellyfin Server tarball created by `make -f .copr/Makefile srpm`, real URL ends with `v%%{version}.tar.gz`
|
||||||
Source0: jellyfin-server-%{version}.tar.gz
|
Source0: jellyfin-server-%{version}.tar.gz
|
||||||
Source11: jellyfin.service
|
Source11: jellyfin.service
|
||||||
Source12: jellyfin.env
|
Source12: jellyfin.env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user