File me-tv.spec of Package me-tv
#
# spec file for package me-tv
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: me-tv
Version: 1.4.0.54
Release: 0
Summary: Me TV DVB application
License: GPL-3.0+
Group: Hardware/TV
Url: https://launchpad.net/me-tv
Source: http://launchpad.net/me-tv/1.4/1.4.0/+download/me-tv-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnome-common
BuildRequires: gstreamer-0_10-devel
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconfmm-2.6)
BuildRequires: pkgconfig(giomm-2.4)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtkmm-2.4)
BuildRequires: pkgconfig(libvlc)
BuildRequires: pkgconfig(libxml++-2.6)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(unique-1.0)
# needed for transponder files
Requires: dvb
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{gconf_schemas_prereq}
%description
Me TV is a digital television (DVB) viewer for GNOME/GTK
Me TV was developed for the modern digital lounge room with
a PC for a media centre that is capable of normal PC tasks
(web surfing, word processing and watching TV). It is not
designed to be a full-blown media centre, such as MythTV,
but will integrate well with an existing GNOME desktop.
%lang_package
%prep
%setup -q
./autogen.sh
%build
export CXXFLAGS="%{optflags} -std=c++11"
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
# Fix desktop file
%suse_update_desktop_file %{name} AudioVideo Video
%find_lang %{name}
%{find_gconf_schemas}
# Remove unneeded files and search for duplicates
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS
%{_bindir}/me-tv-client
%{_bindir}/me-tv-server
%{_datadir}/applications/%{name}.desktop
%{_datadir}/me-tv
%{_datadir}/pixmaps/%{name}*
%{_mandir}/man1/me-tv-*.1%{ext_man}
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog