Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
80 lines (72 sloc)
2.61 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright 2017 Jan Kammerath | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
Name: iptvx | |
Version: 0.5 | |
Release: 1 | |
Summary: iptv player and streamer | |
License: Apache License 2.0 | |
Group: Productivity/Multimedia/Video/Players | |
Url: http://iptvx.org | |
Source: %{name}-%{version}.tar.gz | |
# Build requirements | |
BuildRequires: pkgconfig(glib-2.0) | |
BuildRequires: pkgconfig(webkit2gtk-4.0) | |
BuildRequires: pkgconfig(libconfig) | |
BuildRequires: pkgconfig(libvlc) | |
BuildRequires: pkgconfig(libcurl) | |
BuildRequires: pkgconfig(libxml-2.0) | |
BuildRequires: pkgconfig(sdl) | |
BuildRequires: pkgconfig(SDL_image) | |
BuildRequires: pkgconfig(json-c) | |
BuildRequires: pkgconfig(libmicrohttpd) | |
BuildRequires: pkgconfig(sqlite3) | |
# Runtime requirements | |
Requires(pre): shadow | |
Requires: pkgconfig(glib-2.0) | |
Requires: pkgconfig(webkit2gtk-4.0) | |
Requires: pkgconfig(libconfig) | |
Requires: pkgconfig(libvlc) | |
Requires: pkgconfig(libcurl) | |
Requires: pkgconfig(libxml-2.0) | |
Requires: pkgconfig(sdl) | |
Requires: pkgconfig(SDL_image) | |
Requires: pkgconfig(json-c) | |
Requires: pkgconfig(libmicrohttpd) | |
Requires: pkgconfig(sqlite3) | |
%description | |
IPTV player and streamer for Linux that allows to play any stream that LibVLC can play, offers an overlay based on WebKit using HTML5, JavaScript and CSS and uses XMLTV data for EPG information. It allows the playback of URLs, files and can grab URLs from shell scripts. XMLTV EPG data can be downloaded directly from URLs or grabbed from shell scripts. | |
%prep | |
%setup | |
%build | |
make %{?_smp_mflags} | |
%install | |
mkdir -p %{buildroot}%{_bindir} | |
cp bin/iptvx %{buildroot}%{_bindir}/iptvx | |
chmod 755 %{buildroot}%{_bindir}/iptvx | |
mkdir -p %{buildroot}%{_sysconfdir}/iptvx | |
cp cfg/iptvx.conf %{buildroot}%{_sysconfdir}/iptvx/iptvx.conf | |
cp cfg/channels.conf %{buildroot}%{_sysconfdir}/iptvx/channels.conf | |
mkdir -p %{buildroot}%{_var}/iptvx/data/epg | |
mkdir -p %{buildroot}%{_var}/iptvx/data/logo | |
cp app %{buildroot}%{_var}/iptvx/ -R | |
cp data/db %{buildroot}%{_var}/iptvx/db | |
chmod 755 %{buildroot}%{_var}/iptvx/ -R | |
useradd iptv | |
usermod -L iptv | |
%files | |
%{_bindir}/iptvx | |
%{_sysconfdir}/iptvx/ | |
%{_var}/iptvx/ |