1 |
Name: gerbera |
Name: gerbera |
2 |
Version: 1.9.1 |
Version: 1.9.1 |
3 |
Release: 1%{?dist} |
Release: 2%{?dist} |
4 |
Summary: UPnP Media Server |
Summary: UPnP Media Server |
5 |
License: GPLv2 and MIT and OFL |
License: GPLv2 and MIT and OFL |
6 |
Url: https://gerbera.io |
Url: https://gerbera.io |
8 |
Source1: config.xml |
Source1: config.xml |
9 |
Source2: gerbera-sysusers.conf |
Source2: gerbera-sysusers.conf |
10 |
|
|
11 |
BuildRequires: gcc |
BuildRequires: fmt-devel |
12 |
BuildRequires: gcc-c++ |
BuildRequires: gcc devtoolset-9-gcc |
13 |
|
BuildRequires: gcc-c++ devtoolset-9-gcc-c++ |
14 |
BuildRequires: libupnp-devel |
BuildRequires: libupnp-devel |
15 |
BuildRequires: libuuid-devel |
BuildRequires: libuuid-devel |
16 |
BuildRequires: sqlite-devel |
BuildRequires: sqlite-devel |
20 |
BuildRequires: file-devel |
BuildRequires: file-devel |
21 |
BuildRequires: libexif-devel |
BuildRequires: libexif-devel |
22 |
BuildRequires: exiv2-devel |
BuildRequires: exiv2-devel |
23 |
BuildRequires: cmake |
BuildRequires: cmake cmake3 |
24 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
25 |
BuildRequires: libebml-devel |
BuildRequires: libebml-devel |
26 |
BuildRequires: libmatroska-devel |
BuildRequires: libmatroska-devel |
27 |
BuildRequires: spdlog-devel |
BuildRequires: spdlog-devel |
28 |
BuildRequires: pugixml-devel |
BuildRequires: pugixml-devel |
29 |
BuildRequires: mariadb-connector-c-devel |
BuildRequires: mariadb-devel |
30 |
|
#BuildRequires: mariadb-connector-c-devel |
31 |
%{?sysusers_requires_compat} |
%{?sysusers_requires_compat} |
32 |
%{?systemd_ordering} |
%{?systemd_ordering} |
33 |
BuildRequires: systemd-devel |
BuildRequires: systemd-devel |
34 |
BuildRequires: systemd-rpm-macros |
# not available for centos7 |
35 |
|
#BuildRequires: systemd-rpm-macros |
36 |
|
# add for SME10 |
37 |
|
#BuildRequires: rh-mariadb103-mariadb-devel |
38 |
BuildRequires: make |
BuildRequires: make |
39 |
Requires: %{name}-data = %{version}-%{release} |
Requires: %{name}-data = %{version}-%{release} |
40 |
|
|
51 |
Data files for the Gerbera media server. |
Data files for the Gerbera media server. |
52 |
|
|
53 |
%prep |
%prep |
54 |
|
. /opt/rh/devtoolset-9/enable |
55 |
%autosetup -p1 |
%autosetup -p1 |
56 |
|
|
57 |
%build |
%build |
58 |
%cmake \ |
. /opt/rh/devtoolset-9/enable |
59 |
|
#sed -i "s/7.1.3/6.2.1/" CMakeLists.txt |
60 |
|
#taglib 1.11, found: 1.8.0 |
61 |
|
#sed -i "s/1.11/1.8.0/" cmake/FindTaglib.cmake |
62 |
|
#see error about curl https://note.nogisawa.net/?2021/0303_gerbera_compile |
63 |
|
perl -pi -e 's;CURLINFO_CONTENT_LENGTH_DOWNLOAD_T;CURLINFO_CONTENT_LENGTH_DOWNLOAD;g' ./src/util/url.cc |
64 |
|
|
65 |
|
%cmake3 \ |
66 |
-DWITH_JS=1 \ |
-DWITH_JS=1 \ |
67 |
-DWITH_MYSQL=1 \ |
-DWITH_MYSQL=1 \ |
68 |
-DWITH_CURL=1 \ |
-DWITH_CURL=1 \ |
69 |
-DWITH_TAGLIB=1 \ |
-DWITH_TAGLIB=0 \ |
70 |
-DWITH_MAGIC=1 \ |
-DWITH_MAGIC=1 \ |
71 |
-DWITH_AVCODEC=0 \ |
-DWITH_AVCODEC=0 \ |
72 |
-DWITH_EXIF=1 \ |
-DWITH_EXIF=1 \ |
77 |
-DUPNP_HAS_IPV6=1 \ |
-DUPNP_HAS_IPV6=1 \ |
78 |
-DUPNP_HAS_REUSEADDR=1 |
-DUPNP_HAS_REUSEADDR=1 |
79 |
|
|
80 |
%cmake_build |
%cmake3_build |
81 |
|
|
82 |
%install |
%install |
83 |
|
. /opt/rh/devtoolset-9/enable |
84 |
|
|
85 |
install -p -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/gerbera/config.xml |
install -p -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/gerbera/config.xml |
86 |
install -p -D -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gerbera.conf |
install -p -D -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gerbera.conf |
87 |
|
|
88 |
%cmake_install |
%cmake3_install |
89 |
|
|
90 |
# make all files under %%_sysconfdir/gerbera owned by |
# make all files under %%_sysconfdir/gerbera owned by |
91 |
# this package |
# this package |
136 |
%config(noreplace) %{_datadir}/%{name}/js/common.js |
%config(noreplace) %{_datadir}/%{name}/js/common.js |
137 |
|
|
138 |
%changelog |
%changelog |
139 |
|
* Thu Nov 11 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.9.1-2.sme |
140 |
|
- add fmt-devel Requirement |
141 |
|
|
142 |
* Sat Aug 28 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.9.1-1 |
* Sat Aug 28 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.9.1-1 |
143 |
- 1.9.1 |
- 1.9.1 |
144 |
|
|