diff --git a/anda/others/uxplay/anda.hcl b/anda/others/uxplay/anda.hcl new file mode 100644 index 0000000000..9a43e44b5a --- /dev/null +++ b/anda/others/uxplay/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "uxplay.spec" + } +} diff --git a/anda/others/uxplay/update.rhai b/anda/others/uxplay/update.rhai new file mode 100644 index 0000000000..03a2e63fec --- /dev/null +++ b/anda/others/uxplay/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("FDH2/UxPlay")); diff --git a/anda/others/uxplay/uxplay.spec b/anda/others/uxplay/uxplay.spec new file mode 100644 index 0000000000..b137da87cc --- /dev/null +++ b/anda/others/uxplay/uxplay.spec @@ -0,0 +1,62 @@ +Name: uxplay +Version: 1.65 +Release: 1%?dist +Summary: AirPlay Unix mirroring server +License: GPL-3.0 +URL: https://github.com/FDH2/UxPlay +Source0: %url/archive/refs/tags/v%version.tar.gz +Requires: openssl libplist avahi gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav +BuildRequires: cmake desktop-file-utils systemd-rpm-macros gcc gcc-c++ openssl-devel avahi-compat-libdns_sd-devel +BuildRequires: pkgconfig(gstreamer-1.0) pkgconfig(gstreamer-sdp-1.0) pkgconfig(gstreamer-video-1.0) pkgconfig(gstreamer-app-1.0) pkgconfig(libplist-2.0) + +%description +%summary. + +%prep +%autosetup -n UxPlay-%version +cat < %name.desktop +[Desktop Entry] +Type=Application +Version=1.0 +Name=UxPlay +GenericName=AirPlay server +Exec=%_bindir/uxplay +Icon=computer-apple-ipad-symbolic +Terminal=true +Categories=AudioVideo; +Comment=%summary +EOF + +%build +%cmake . +%cmake_build --config Release + + +%install +mkdir -p %buildroot%_bindir %buildroot%_datadir/applications %buildroot%_mandir/man1 +install -Dm755 redhat-linux-build/%name %buildroot%_bindir/ +install -Dm644 %name.desktop %buildroot%_datadir/applications/ + +mv %name.1 %buildroot%_mandir/man1/%name.1 + +%post +%systemd_post avahi-daemon.service + +%preun +%systemd_preun avahi-daemon.service + +%postun +%systemd_postun_with_restart avahi-daemon.service + +%check +desktop-file-validate %name.desktop + +%files +%license LICENSE +%doc README.* +%_bindir/%name +%_datadir/applications/%name.desktop +%_mandir/man1/* + +%changelog +%autochangelog