new (version 1.6.4)
authorJan Palus <atler@pld-linux.org>
Mon, 2 Nov 2020 11:22:38 +0000 (12:22 +0100)
committerJan Palus <atler@pld-linux.org>
Mon, 2 Nov 2020 11:22:38 +0000 (12:22 +0100)
gerbera.spec [new file with mode: 0644]

diff --git a/gerbera.spec b/gerbera.spec
new file mode 100644 (file)
index 0000000..08137a9
--- /dev/null
@@ -0,0 +1,92 @@
+Summary:       UPnP Media Server
+Name:          gerbera
+Version:       1.6.4
+Release:       1
+License:       GPL v2
+Group:         Applications
+Source0:       https://github.com/gerbera/gerbera/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 3d62bd2404ea2a5055560a2dd55bb5bf
+URL:           https://gerbera.io
+BuildRequires: cmake >= 3.14
+BuildRequires: curl-devel
+BuildRequires: exiv2-devel
+BuildRequires: ffmpeg-devel
+BuildRequires: ffmpegthumbnailer-devel
+BuildRequires: libfmt-devel
+BuildRequires: libmagic-devel
+BuildRequires: libmatroska-devel
+BuildRequires: libstdc++-devel >= 6:7.1
+BuildRequires: libupnp-devel >= 1.12.1
+BuildRequires: libuuid-devel
+BuildRequires: pugixml-devel
+BuildRequires: spdlog-devel
+BuildRequires: sqlite3-devel
+BuildRequires: systemd-devel
+BuildRequires: taglib-devel
+BuildRequires: zlib-devel
+Requires:      libupnp >= 1.12.1
+Requires:      systemd-units >= 38
+Provides:      group(gerbera)
+Provides:      user(gerbera)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Gerbera is a UPnP media server which allows you to stream your digital
+media through your home network and consume it on a variety of UPnP
+compatible devices.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%cmake .. \
+       -DWITH_AVCODEC=1 \
+       -DWITH_DEBUG=0 \
+       -DWITH_EXIV2=1 \
+       -DWITH_FFMPEGTHUMBNAILER=1 \
+       -DWITH_JS=0
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/gerbera,/var/lib/gerbera}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -g 338 gerbera
+%useradd -u 338 -r -d /var/lib/gerbera -s /bin/false -c "Gerbera user" -g gerbera gerbera
+
+%post
+%systemd_post gerbera.service
+
+%preun
+if [ "$1" = "0" ]; then
+       %service gerbera stop
+fi
+%systemd_preun gerbera.service
+
+%postun
+if [ "$1" = "0" ]; then
+       %userremove gerbera
+       %groupremove gerbera
+fi
+%systemd_reload
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog.md CONTRIBUTING.md README.md
+%attr(755,root,root) %{_bindir}/gerbera
+%dir %attr(750,gerbera,gerbera) %{_sysconfdir}/gerbera
+%{_datadir}/gerbera
+%{_mandir}/man1/gerbera.1*
+%{systemdunitdir}/gerbera.service
+%dir %attr(770,gerbera,gerbera) /var/lib/gerbera
This page took 0.066537 seconds and 4 git commands to generate.