]>
Commit | Line | Data |
---|---|---|
8239d7dc JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without totem # Totem plugin | |
4 | # | |
5 | Summary: Daemon to setup DVB devices, record and watch TV shows and browse EPG | |
6 | Summary(pl.UTF-8): Demon do ustawiania urządzeń DVB, nagrywania i oglądania programów TV oraz przeglądania EPG | |
7 | Name: gnome-dvb-daemon | |
8 | Version: 0.2.90 | |
df8099bd | 9 | Release: 9 |
8239d7dc JB |
10 | License: GPL v3+ |
11 | Group: X11/Applications/Multimedia | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-dvb-daemon/0.2/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 06409269886d174ac54883b07f71faac | |
14 | URL: https://wiki.gnome.org/Projects/DVBDaemon | |
15 | BuildRequires: autoconf >= 2.63.2 | |
16 | BuildRequires: automake >= 1:1.11 | |
17 | BuildRequires: gettext-tools | |
18 | BuildRequires: glib2-devel >= 1:2.32.0 | |
19 | BuildRequires: gstreamer-devel >= 1.4.0 | |
20 | # pkgconfig(gstreamer-mpegts-1.0), plugins: tsparse dvbbasebin dvbsrc | |
21 | BuildRequires: gstreamer-plugins-bad-devel >= 1.4.0 | |
22 | # pkgconfig(gstreamer-rtsp-1.0) | |
23 | BuildRequires: gstreamer-plugins-base-devel >= 1.4.0 | |
24 | # rtpmp2tpay plugin | |
25 | BuildRequires: gstreamer-plugins-good >= 1.4.0 | |
26 | BuildRequires: gstreamer-rtsp-server-devel >= 1.4.0 | |
27 | BuildRequires: intltool >= 0.40.0 | |
28 | BuildRequires: libgee-devel >= 0.8.0 | |
29 | BuildRequires: libtool >= 2:2.2.6 | |
30 | BuildRequires: pkgconfig >= 1:0.9 | |
31 | BuildRequires: python3-devel >= 1:3.2 | |
32 | BuildRequires: python3-pygobject3-devel >= 3.2.1 | |
33 | BuildRequires: sqlite3-devel >= 3.4 | |
34 | BuildRequires: udev-devel | |
35 | BuildRequires: vala >= 2:0.25.1 | |
36 | Requires(post,postun): gtk-update-icon-cache | |
37 | Requires: glib2 >= 1:2.32.0 | |
38 | Requires: hicolor-icon-theme | |
39 | Requires: gstreamer >= 1.4.0 | |
40 | Requires: gstreamer-plugins-bad >= 1.4.0 | |
41 | Requires: gstreamer-plugins-base >= 1.4.0 | |
42 | Requires: gstreamer-plugins-good >= 1.4.0 | |
43 | Requires: gstreamer-rtsp-server >= 1.4.0 | |
44 | Requires: libgee >= 0.8.0 | |
45 | Requires: python3-pygobject3 >= 3.2.1 | |
46 | Requires: sqlite3 >= 3.4 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | GNOME DVB Daemon is a daemon written in Vala to setup your DVB | |
51 | devices, record and watch TV shows and browse EPG. It can be | |
52 | controlled directly via its D-Bus interface or with UI applications | |
53 | that come with it. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | GNOME DVB Daemon to napisany w języku Vala demon do ustawiania | |
57 | urządzeń DVB, nagrywania i oglądania programów telewizyjnych oraz | |
58 | przeglądania elektronicznych przewodników po programach (EPG). Może | |
59 | być sterowany bezpośrednio poprzez interfejs D-Bus albo przy użyciu | |
60 | dołączonych aplikacji z interfejsem użytkownika. | |
61 | ||
62 | %package -n totem-dvb-daemon | |
63 | Summary: GNOME DVB Daemon plugin for Totem | |
64 | Summary(pl.UTF-8): Wtyczka GNOME DVB Daemon dla Totema | |
65 | Group: X11/Applications/Multimedia | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | Requires: totem | |
68 | ||
69 | %description -n totem-dvb-daemon | |
70 | Totem plugin to watch live TV and recorded shows using GNOME DVB | |
71 | Daemon. | |
72 | ||
73 | %description -n totem-dvb-daemon -l pl.UTF-8 | |
74 | Wtyczka Totema do oglądania telewizji na żywo oraz nagranych programów | |
75 | przy użyciu GNOME DVB Daemona. | |
76 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python3,' client/{gnome-dvb-control,gnome-dvb-setup} | |
81 | ||
82 | %build | |
83 | %{__intltoolize} | |
84 | %{__libtoolize} | |
85 | %{__aclocal} -I m4 | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | --disable-silent-rules \ | |
91 | %{?with_totem:--enable-totem-plugin} \ | |
92 | --with-totem-plugin-dir=%{_libdir}/totem/plugins | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | %find_lang %{name} | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post | |
107 | %update_icon_cache hicolor | |
108 | ||
109 | %postun | |
110 | %update_icon_cache hicolor | |
111 | ||
112 | %files -f %{name}.lang | |
113 | %defattr(644,root,root,755) | |
114 | %doc AUTHORS ChangeLog NEWS README | |
115 | %attr(755,root,root) %{_bindir}/gnome-dvb-control | |
116 | %attr(755,root,root) %{_bindir}/gnome-dvb-daemon | |
117 | %attr(755,root,root) %{_bindir}/gnome-dvb-setup | |
118 | %{py3_sitescriptdir}/gnomedvb | |
119 | %{_datadir}/dbus-1/services/org.gnome.DVB.service | |
120 | %{_datadir}/dbus-1/services/org.gnome.UPnP.MediaServer2.DVBDaemon.service | |
121 | %{_desktopdir}/gnome-dvb-control.desktop | |
122 | %{_desktopdir}/gnome-dvb-setup.desktop | |
123 | %{_iconsdir}/hicolor/*x*/apps/gnome-dvb-daemon.png | |
124 | %{_iconsdir}/hicolor/*x*/apps/gnome-dvb-setup.png | |
125 | %{_iconsdir}/hicolor/scalable/apps/gnome-dvb-daemon.svg | |
126 | %{_iconsdir}/hicolor/scalable/apps/gnome-dvb-setup.svg | |
127 | ||
128 | %files -n totem-dvb-daemon | |
129 | %defattr(644,root,root,755) | |
130 | %dir %{_libdir}/totem/plugins/dvb-daemon | |
131 | %{_libdir}/totem/plugins/dvb-daemon/dvb-daemon.plugin | |
132 | %{_libdir}/totem/plugins/dvb-daemon/dvb-daemon.py |