diff options
| author | Cody Robibero <cody@robibe.ro> | 2024-03-18 08:42:07 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-18 10:42:07 -0400 |
| commit | 78b53a60b4018b25c64a2477408c10144a750252 (patch) | |
| tree | c193fcd988536af79ea3afb7f790d411128c4ba1 /fedora/Makefile | |
| parent | 4bcabbde7b8c1a9a0ca7a89ab3e2b0de390393f5 (diff) | |
Remove legacy build utilities (#11162)
Diffstat (limited to 'fedora/Makefile')
| -rw-r--r-- | fedora/Makefile | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/fedora/Makefile b/fedora/Makefile deleted file mode 100644 index 3188cf6039..0000000000 --- a/fedora/Makefile +++ /dev/null @@ -1,52 +0,0 @@ -DIR := $(dir $(lastword $(MAKEFILE_LIST))) -INSTGIT := $(shell if [ "$$(id -u)" = "0" ]; then dnf -y install git; fi) -NAME := jellyfin-server -VERSION := $(shell sed -ne '/^Version:/s/.* *//p' $(DIR)/jellyfin.spec) -RELEASE := $(shell sed -ne '/^Release:/s/.* *\(.*\)%{.*}.*/\1/p' $(DIR)/jellyfin.spec) -SRPM := jellyfin-$(subst -,~,$(VERSION))-$(RELEASE)$(shell rpm --eval %dist).src.rpm -TARBALL :=$(NAME)-$(subst -,~,$(VERSION)).tar.gz - -epel-7-x86_64_repos := https://packages.microsoft.com/rhel/7/prod/ - -fed_ver := $(shell rpm -E %fedora) -# fallback when not running on Fedora -fed_ver ?= 36 -TARGET ?= fedora-$(fed_ver)-x86_64 - -outdir ?= $(PWD)/$(DIR)/ - -srpm: $(DIR)/$(SRPM) -tarball: $(DIR)/$(TARBALL) - -$(DIR)/$(TARBALL): - cd $(DIR)/; \ - SOURCE_DIR=.. \ - WORKDIR="$${PWD}"; \ - version=$(VERSION); \ - tar \ - --transform "s,^\.,$(NAME)-$(subst -,~,$(VERSION))," \ - --exclude='.git*' \ - --exclude='**/.git' \ - --exclude='**/.hg' \ - --exclude='**/.vs' \ - --exclude='**/.vscode' \ - --exclude=deployment \ - --exclude='**/bin' \ - --exclude='**/obj' \ - --exclude='**/.nuget' \ - --exclude='*.deb' \ - --exclude='*.rpm' \ - --exclude=$(notdir $@) \ - -czf $(notdir $@) \ - -C $${SOURCE_DIR} ./ - -$(DIR)/$(SRPM): $(DIR)/$(TARBALL) $(DIR)/jellyfin.spec - cd $(DIR)/; \ - rpmbuild -bs jellyfin.spec \ - --define "_sourcedir $$PWD/" \ - --define "_srcrpmdir $(outdir)" - -rpms: $(DIR)/$(SRPM) - mock $(addprefix --addrepo=, $($(TARGET)_repos)) \ - --enable-network \ - -r $(TARGET) $< |
