File freetuxtv.spec of Package freetuxtv

#
# spec file for package freetuxtv
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


%if 0%{?suse_version} > 1500
%define _lto_cflags %{nil}
%endif
Name:           freetuxtv
Version:        0.6.8
Release:        0
Summary:        WebTV and Web Radio player
License:        GPL-3.0-only
URL:            https://code.google.com/p/freetuxtv/
Source0:        https://github.com/freetuxtv/freetuxtv/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  dbus-1-glib-devel >= 0.74
BuildRequires:  gcc
BuildRequires:  gettext-tools
BuildRequires:  glib2-devel >= 2.16.0
BuildRequires:  gtk3-devel >= 2.12.0
BuildRequires:  intltool >= 0.35.0
BuildRequires:  libcurl-devel >= 7.18.0
BuildRequires:  libnotify-devel >= 0.4
BuildRequires:  make
BuildRequires:  sqlite3-devel >= 3.4.0
BuildRequires:  update-desktop-files
BuildRequires:  vlc-devel >= 0.8.6
Requires:       vlc
Recommends:     %{name}-lang = %{version}

%description
FreetuxTV is a free GTK+ WebTV and Web Radio player for Linux.
The goal of this project is to create a WebTV player, working on the Linux platform.
It can be used by french people to watch ADSL TV on the PC with ISPs or by other people
to watch WebTV and Web Radio in many languages.
The GUI is developed in GTK2+ and is using the VLC engine to display the channels.
If you want to share a new WebTV, WebRadio or WebCam URL to be available in FreetuxTV,
please send it to the FreetuxTV WebTV Manager (http://database.freetuxtv.net/)

%package devel
Summary:        Development files for freetuxtv
Requires:       %{name} = %{version}

%description devel
FreetuxTV is a free GTK+ WebTV and Web Radio player for Linux.
The goal of this project is to create a WebTV player, working on the Linux platform.
It can be used by french people to watch ADSL TV on the PC with ISPs or by other people
to watch WebTV and Web Radio in many languages.
The GUI is developed in GTK2+ and is using the VLC engine to display the channels.
If you want to share a new WebTV, WebRadio or WebCam URL to be available in FreetuxTV,
please send it to the FreetuxTV WebTV Manager (http://database.freetuxtv.net/)

%lang_package

%prep
%setup -q

%build
%configure --with-gtk=3.0
make %{?_smp_mflags}

%install
%make_install
rm -rf %{buildroot}%{_datadir}/freetuxtv/doc
%find_lang %{name}
%suse_update_desktop_file %{name}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%license COPYING
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_libdir}/*.la

%files lang -f %{name}.lang

%files devel
%{_includedir}/libvlc-gtk/
%{_includedir}/libdbevolution/
%{_libdir}/*.a

%changelog
openSUSE Build Service is sponsored by