File helia.spec of Package helia

#
# spec file for package helia
#
# 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 http://bugs.opensuse.org/
#


Name:           helia
Version:        10.0
Release:        0
Summary:        Digital TV (DVB-T2/S2/C, ATSC, DTMB, ISDB) & Media Player & IPTV
License:        LGPL-3.0
Group:          Productivity/Multimedia/Video/Players
Url:            https://github.com/vl-nix/Helia
Source0:        https://github.com/vl-nix/Helia/archive/%{version}.tar.gz#/Helia-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-mpegts-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:  pkgconfig(gstreamer-video-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
Recommends:     %{name}-lang = %{version}
%description
Digital TV
  + DVB-T2/S2/C, ATSC, DTMB, ISDB
  + Multifrontend
  + Scrambling
Media Player
  + Drag and Drop
      - files, folders, playlists - M3U, M3U8
  + Record IPTV

%lang_package

%prep
%setup -q -n Helia-%{version}

%build
%meson
%meson_build

%install
%meson_install
install -Dm 644 data/icons/helia-display.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
sed -i -e 's|Icon=display|Icon=%{name}|g' %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

%files
%defattr(-,root,root)
%doc Readme.md
%license License
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%files lang -f %{name}.lang

%changelog