--- rpms/gerbera/contribs10/gerbera.spec 2021/11/10 03:00:21 1.1 +++ rpms/gerbera/contribs10/gerbera.spec 2021/11/11 05:09:08 1.2 @@ -1,6 +1,6 @@ Name: gerbera Version: 1.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: UPnP Media Server License: GPLv2 and MIT and OFL Url: https://gerbera.io @@ -8,28 +8,30 @@ Source0: https://github.com/gerbe Source1: config.xml Source2: gerbera-sysusers.conf -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: fmt-devel +BuildRequires: gcc devtoolset-9-gcc +BuildRequires: gcc-c++ devtoolset-9-gcc-c++ BuildRequires: libupnp-devel BuildRequires: libuuid-devel BuildRequires: sqlite-devel -BuildRequires: duktape-devel +#BuildRequires: duktape-devel BuildRequires: curl-devel BuildRequires: taglib-devel BuildRequires: file-devel BuildRequires: libexif-devel BuildRequires: exiv2-devel -BuildRequires: cmake +BuildRequires: cmake cmake3 BuildRequires: zlib-devel BuildRequires: libebml-devel BuildRequires: libmatroska-devel BuildRequires: spdlog-devel BuildRequires: pugixml-devel -BuildRequires: mariadb-connector-c-devel +#BuildRequires: mariadb-connector-c-devel %{?sysusers_requires_compat} %{?systemd_ordering} BuildRequires: systemd-devel -BuildRequires: systemd-rpm-macros +# not available for centos7 +#BuildRequires: systemd-rpm-macros BuildRequires: make Requires: %{name}-data = %{version}-%{release} @@ -46,10 +48,12 @@ BuildArch: noarch Data files for the Gerbera media server. %prep +. /opt/rh/devtoolset-9/enable %autosetup -p1 %build -%cmake \ +. /opt/rh/devtoolset-9/enable +%cmake3 \ -DWITH_JS=1 \ -DWITH_MYSQL=1 \ -DWITH_CURL=1 \ @@ -64,13 +68,15 @@ Data files for the Gerbera media server. -DUPNP_HAS_IPV6=1 \ -DUPNP_HAS_REUSEADDR=1 -%cmake_build +%cmake3_build %install +. /opt/rh/devtoolset-9/enable + install -p -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/gerbera/config.xml install -p -D -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gerbera.conf -%cmake_install +%cmake3_install # make all files under %%_sysconfdir/gerbera owned by # this package @@ -121,6 +127,9 @@ EOF %config(noreplace) %{_datadir}/%{name}/js/common.js %changelog +* Thu Nov 11 2021 Jean-Philippe Pialasse 1.9.1-2.sme +- add fmt-devel Requirement + * Sat Aug 28 2021 Gwyn Ciesla - 1.9.1-1 - 1.9.1