-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathiptvx.spec
80 lines (72 loc) · 2.61 KB
/
iptvx.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# 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/