Package gerbera: Specfile
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 | %define _unpackaged_files_terminate_build 1 Name: gerbera Version: 1.8.1 Release: alt1 Summary: UPnP Media Server Group: System/Servers License: GPLv2 and MIT Url: https://gerbera.io Source: %name-%version.tar Patch: %name-%version-%release.patch Requires: %name-data = %EVR BuildRequires: cmake >= 3.14 BuildRequires: gcc-c++ BuildRequires: libupnp-devel >= 1.14.0 BuildRequires: libfmt-devel BuildRequires: libspdlog-devel >= 1.4 BuildRequires: libuuid-devel BuildRequires: libexpat-devel BuildRequires: libsqlite3-devel BuildRequires: libduktape-devel BuildRequires: libcurl-devel BuildRequires: libtag-devel BuildRequires: libmagic-devel BuildRequires: libpugixml-devel BuildRequires: libexif-devel BuildRequires: libexiv2-devel BuildRequires: libavformat-devel BuildRequires: libavutil-devel BuildRequires: libffmpegthumbnailer-devel BuildRequires: zlib-devel BuildRequires: libebml-devel libmatroska-devel BuildRequires: libsystemd-devel BuildRequires: libmysqlclient-devel %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. %package data Summary: Data files for Gerbera BuildArch: noarch Group: System/Servers %description data Data files for the Gerbera media server. %prep %setup %patch -p1 %build %cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DWITH_JS=YES \ -DWITH_MYSQL=YES \ -DWITH_CURL=YES \ -DWITH_TAGLIB=YES \ -DWITH_MAGIC=YES \ -DWITH_AVCODEC=YES \ -DWITH_EXIF=YES \ -DWITH_EXIV2=YES \ -DWITH_FFMPEGTHUMBNAILER=YES \ -DWITH_INOTIFY=YES \ -DWITH_SYSTEMD=YES \ -DWITH_MYSQL=YES \ -DUPNP_HAS_REUSEADDR=YES %cmake_build %install mkdir -p %buildroot{%_sysconfdir,%_localstatedir,%_logdir}/%name %cmakeinstall_std %buildroot%_bindir/%name --create-config --home %_localstatedir/%name > %buildroot%_sysconfdir/%name/config.xml mkdir -p %buildroot%_logrotatedir cat > %buildroot%_logrotatedir/%name << 'EOF' /var/log/gerbera/gerbera { monthly missingok create 0644 gerbera gerbera notifempty compress } EOF touch %buildroot%_localstatedir/%name/{%name.db,%name.html} %pre groupadd -r -f %name >/dev/null 2>&1 ||: useradd -r -n -g %name -d %_localstatedir/%name -s /dev/null \ -c 'Gerbera UPnP Media Server' %name >/dev/null 2>&1 ||: %post %post_service %name %preun %preun_service %name %files %doc LICENSE.md AUTHORS CONTRIBUTING.md ChangeLog.md %doc doc/*.rst %dir %attr(750,root,%name) %_sysconfdir/%name %config(noreplace) %attr(750,root,%name) %_sysconfdir/%name/config.xml %attr(750,%name,adm) %_logdir/%name %config(noreplace) %_logrotatedir/%name %_bindir/%name %_man1dir/* %_unitdir/%name.service %attr(3770,root,%name) %dir %_localstatedir/%name %ghost %attr(775,%name,%name) %_localstatedir/%name/%name.db %ghost %attr(775,%name,%name) %_localstatedir/%name/%name.html %files data %_datadir/%name %config(noreplace) %_datadir/%name/js/import.js %config(noreplace) %_datadir/%name/js/playlists.js %config(noreplace) %_datadir/%name/js/common.js %changelog * Fri May 28 2021 Alexey Shabalin <shaba@altlinux.org> 1.8.1-alt1 - new version 1.8.1 * Sat Nov 14 2020 Alexey Shabalin <shaba@altlinux.org> 1.6.4-alt1 - new version 1.6.4 * Tue Aug 04 2020 Alexey Shabalin <shaba@altlinux.org> 1.6.0-alt1 - new version 1.6.0 * Sun May 24 2020 Alexey Shabalin <shaba@altlinux.org> 1.5.0-alt1 - Initial build. |