forked from antimof/UxPlay
-
Notifications
You must be signed in to change notification settings - Fork 81
/
uxplay.spec
141 lines (120 loc) · 3.96 KB
/
uxplay.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Name: uxplay
Version: 1.70
Release: 1%{?dist}
%global gittag v%{version}
Summary: AirPlay-Mirror and AirPlay-Audio server
License: GPLv3+
URL: https://github.com/FDH2/UxPlay
Source0: https://github.com/FDH2/UxPlay/archive/%{gittag}/%{name}-%{version}.tar.gz
Packager: UxPlay maintainer
BuildRequires: cmake >= 3.5
BuildRequires: make
BuildRequires: gcc
BuildRequires: gcc-c++
Requires: avahi
#RedHat and clones
%if %{defined fedora} || %{defined rhel}
BuildRequires: pkgconf
BuildRequires: openssl-devel >= 3.0
BuildRequires: libplist-devel >= 2.0
BuildRequires: avahi-compat-libdns_sd-devel
BuildRequires: gstreamer1-devel
BuildRequires: gstreamer1-plugins-base-devel
Requires: openssl-libs >= 3.0
Requires: libplist >= 2.0
Requires: gstreamer1-plugins-base
Requires: gstreamer1-plugins-good
Requires: gstreamer1-plugins-bad-free
Requires: gstreamer1-libav
%define cmake_builddir redhat-linux-build
%endif
#SUSE
%if "%{_host_vendor}" == "suse"
BuildRequires: pkg-config
BuildRequires: libopenssl-3-devel
BuildRequires: libplist-2_0-devel
BuildRequires: avahi-compat-mDNSResponder-devel
BuildRequires: gstreamer-devel
BuildRequires: gstreamer-plugins-base-devel
Requires: libopenssl3
Requires: libplist-2_0-3
Requires: gstreamer-plugins-base
Requires: gstreamer-plugins-good
Requires: gstreamer-plugins-bad
Requires: gstreamer-plugins-libav
%endif
#Mageia, OpenMandriva, PCLinuxOS (Mandriva/Mandrake descendents)
%if "%{_host_vendor}" == "mageia" || %{defined omvver} || "%{_host_vendor}" == "mandriva"
%if "%{_host_vendor}" == "mandriva"
# host_vendor = "mandriva" identifies PCLinuxOS.
# As of 07/2023, PCLinuxOS does not seem to supply openssl >= 3.0.
# Note that UxPlay does not have a "GPL exception" allowing it to be
# distributed in binary form when linked to openssl < 3.0, unless that
# OpenSSL < 3.0 qualifies as a "system library".
BuildRequires: pkgconfig
BuildRequires: %{mklibname openssl-devel} >= 1.1.1
Requires: %{mklibname openssl1.1.0}
%else
BuildRequires: pkgconf
BuildRequires: %{mklibname openssl-devel} >= 3.0
%if %{defined omvver}
Requires: openssl >= 3.0
%else
Requires: %{mklibname openssl3}
%endif
%endif
BuildRequires: %{mklibname plist-devel} >= 2.0
BuildRequires: %{mklibname avahi-compat-libdns_sd-devel}
%if %{defined omvver}
BuildRequires: %{mklibname gstreamer-devel}
BuildRequires: %{mklibname gst-plugins-base1.0-devel}
Requires: %{mklibname plist} >= 2.0
%else
BuildRequires: %{mklibname gstreamer1.0-devel}
BuildRequires: %{mklibname gstreamer-plugins-base1.0-devel}
Requires: %{mklibname plist2.0_3}
%endif
Requires: gstreamer1.0-plugins-base
Requires: gstreamer1.0-plugins-good
Requires: gstreamer1.0-plugins-bad
Requires: gstreamer1.0-libav
%endif
%description
An AirPlay2 Mirror and AirPlay2 Audio (but not Video) server that provides
screen-mirroring (with audio) of iOS/MacOS clients in a display window on
the server host (which can be shared using a screen-sharing application);
Apple Lossless Audio (ALAC) (e.g.,iTunes) can be streamed from client to
server in non-mirror mode
%prep
%autosetup -n UxPlay-%{version}
# if you are building for a distribution, add cmake option -DNO_MARCH_NATIVE=ON
%cmake -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name}
%build
%if %{defined cmake_builddir}
cd %{cmake_builddir}
%else
cd build
%endif
%make_build
%install
%if %{defined cmake_builddir}
cd %{cmake_builddir}
%else
cd build
%endif
%make_install
%files
%{_bindir}/uxplay
%{_mandir}/man1/uxplay.1*
%doc
%{_docdir}/%{name}/README.txt
%{_docdir}/%{name}/README.html
%{_docdir}/%{name}/README.md
%license
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/llhttp/LICENSE-MIT
%changelog
* Tue Sep 17 2024 UxPlay maintainer <https://github.com/FDH2/UxPlay>
Initial uxplay.spec: tested on Fedora 38, Rocky Linux 9.2, OpenSUSE
Leap 15.5, Mageia 9, OpenMandriva ROME, PCLinuxOS
-