generated from unkin/rpmbuild-template
Compare commits
No commits in common. "neoloc/add_spec" and "master" have entirely different histories.
neoloc/add
...
master
36
.drone.yml
36
.drone.yml
@ -1,36 +0,0 @@
|
|||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: almalinux8
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
include:
|
|
||||||
- push
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: git.query.consul/unkin/almalinux8:latest
|
|
||||||
commands:
|
|
||||||
# Install the required packages using custom repositories
|
|
||||||
- dnf module install -y nodejs:20
|
|
||||||
- dnf install -y gcc gcc-c++ make patch autoconf automake libtool rpm-build nodejs npm git curl wget which
|
|
||||||
|
|
||||||
# Run the `make` command
|
|
||||||
- make build
|
|
||||||
|
|
||||||
- name: upload
|
|
||||||
image: git.query.consul/unkin/almalinux8:latest
|
|
||||||
environment:
|
|
||||||
GITEA_PASSWORD:
|
|
||||||
from_secret: gitea_password
|
|
||||||
commands:
|
|
||||||
- >
|
|
||||||
for rpm in /drone/src/rpmbuild/RPMS/*/*.rpm; do
|
|
||||||
curl --user droneci:$GITEA_PASSWORD --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
|
|
||||||
done
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
31
Makefile
31
Makefile
@ -1,31 +0,0 @@
|
|||||||
.PHONY: all prep download build clean
|
|
||||||
|
|
||||||
NAME := jellyfin-web
|
|
||||||
RPMBUILD := /drone/src/rpmbuild
|
|
||||||
SOURCES := $(RPMBUILD)/SOURCES
|
|
||||||
SPECS := $(RPMBUILD)/SPECS
|
|
||||||
SPECFILE := $(NAME).spec
|
|
||||||
|
|
||||||
# Extract the version from the spec file
|
|
||||||
VERSION := $(shell grep "^Version:" $(SPECFILE) | awk '{print $$2}')
|
|
||||||
|
|
||||||
all: build
|
|
||||||
|
|
||||||
prep:
|
|
||||||
@echo "Creating rpmbuild directories..."
|
|
||||||
@mkdir -p $(RPMBUILD)/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
||||||
|
|
||||||
download: prep
|
|
||||||
@echo "Downloading sources..."
|
|
||||||
@wget -O $(SOURCES)/$(NAME)-$(VERSION).tar.gz https://github.com/jellyfin/jellyfin-web/archive/refs/tags/v$(VERSION).tar.gz
|
|
||||||
@echo "Sources downloaded."
|
|
||||||
|
|
||||||
build: $(SPECFILE) download
|
|
||||||
@echo "Building RPM..."
|
|
||||||
@rpmbuild -ba --define "_topdir $(RPMBUILD)" $(SPECFILE)
|
|
||||||
@echo "RPM built."
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@echo "Cleaning up..."
|
|
||||||
@rm -rf $(RPMBUILD)
|
|
||||||
@echo "Clean up done."
|
|
||||||
@ -1,7 +1,5 @@
|
|||||||
# RPMBuild: jellyfin-web
|
# RPMBuild: jellyfin-web
|
||||||
|
|
||||||
[](https://droneci.query.consul/unkin/rpmbuild-jellyfin-web)
|
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This project provides an RPM package that installs the jellyfin-web package.
|
This project provides an RPM package that installs the jellyfin-web package.
|
||||||
|
|||||||
@ -1,35 +0,0 @@
|
|||||||
%global debug_package %{nil}
|
|
||||||
|
|
||||||
Name: jellyfin-web
|
|
||||||
Version: 10.9.10
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: The Free Software Media System web client
|
|
||||||
License: GPLv2
|
|
||||||
URL: https://jellyfin.org
|
|
||||||
Source0: %{name}-%{version}.tar.gz
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: nodejs, npm
|
|
||||||
Requires: nodejs, npm
|
|
||||||
|
|
||||||
%description
|
|
||||||
Jellyfin Web is the frontend used for most of the clients available for end users, such as desktop browsers, Android, and iOS.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q
|
|
||||||
|
|
||||||
%build
|
|
||||||
npm install
|
|
||||||
npm run build:development
|
|
||||||
|
|
||||||
%install
|
|
||||||
mkdir -p %{buildroot}/%{_libdir}/jellyfin/jellyfin-web
|
|
||||||
cp -r dist/* %{buildroot}/%{_libdir}/jellyfin/jellyfin-web
|
|
||||||
|
|
||||||
%files
|
|
||||||
%license LICENSE
|
|
||||||
%{_libdir}/jellyfin/jellyfin-web
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Mon Aug 26 2024 Ben Vincent <ben@unkin.net> - 10.9.10-1
|
|
||||||
- Initial build of jellyfin-web 10.9.10
|
|
||||||
Reference in New Issue
Block a user