14 |
BuildRequires: libupnp-devel |
BuildRequires: libupnp-devel |
15 |
BuildRequires: libuuid-devel |
BuildRequires: libuuid-devel |
16 |
BuildRequires: sqlite-devel |
BuildRequires: sqlite-devel |
17 |
#BuildRequires: duktape-devel |
BuildRequires: duktape-devel |
18 |
BuildRequires: curl-devel |
BuildRequires: curl-devel |
19 |
BuildRequires: taglib-devel |
BuildRequires: taglib-devel |
20 |
BuildRequires: file-devel |
BuildRequires: file-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-devel |
30 |
#BuildRequires: mariadb-connector-c-devel |
#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 |
# not available for centos7 |
# not available for centos7 |
35 |
#BuildRequires: systemd-rpm-macros |
#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 |
|
|
56 |
|
|
57 |
%build |
%build |
58 |
. /opt/rh/devtoolset-9/enable |
. /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 \ |
%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 \ |