/[packages]/cauldron/xine-xvdr/current/SPECS/xine-xvdr.spec
ViewVC logotype

Contents of /cauldron/xine-xvdr/current/SPECS/xine-xvdr.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103162 - (show annotations) (download)
Fri Jun 10 11:03:09 2011 UTC (13 years, 9 months ago) by obgr_seneca
File size: 2972 byte(s)
imported package xine-xvdr
1
2 %define oname vdr-plugin-xineliboutput
3 %define plugin xineliboutput
4 %define name xine-xvdr
5 # manually created tarball from CVS tag
6 %define version 1.0.5
7 %define snapshot 0
8 %define prever 0
9 %define rel 2
10
11 %if %snapshot
12 %if %prever
13 %define release %mkrel 0.%prever.%snapshot.%rel
14 %else
15 %define release %mkrel 0.%snapshot.%rel
16 %endif
17 %else
18 %if %prever
19 %define release %mkrel 0.%prever.%rel
20 %else
21 %define release %mkrel %rel
22 %endif
23 %endif
24
25 %define xineplugindir %(xine-config --plugindir 2>/dev/null || echo 0)
26 # Does not always match rpm version, reports 1.1.9 on 1.1.9.1, so use rpmver directly instead.
27 #define xineversion %(xine-config --version 2>/dev/null || echo 0)
28 %define xineversion %(rpm -qf --qf '%%{version}' %{_bindir}/xine-config 2>/dev/null || echo 0)
29 %define xineapi %(A=%xineplugindir; echo ${A##*/})
30
31 Summary: Xine frontend for the xineliboutput VDR plugin
32 Name: %name
33 Version: %version
34 Release: %release
35 Group: Video
36 License: GPLv2+
37 URL: http://sourceforge.net/projects/xineliboutput/
38 %if %snapshot
39 Source: vdr-%plugin-%snapshot.tar.bz2
40 %else
41 %if %prever
42 Source: http://prdownloads.sourceforge.net/xineliboutput/vdr-%plugin-%{version}%{prever}.tar.bz2
43 %else
44 Source: http://prdownloads.sourceforge.net/xineliboutput/vdr-%plugin-%version.tar.bz2
45 %endif
46 %endif
47 BuildRoot: %{_tmppath}/%{name}-buildroot
48 BuildRequires: vdr-devel >= 1.6.0
49 BuildRequires: libx11-devel
50 BuildRequires: libxv-devel
51 BuildRequires: libxine-devel
52 BuildRequires: jpeg-devel
53 BuildRequires: libextractor-devel
54 BuildRequires: libxrender-devel
55 BuildRequires: libxinerama-devel
56 BuildRequires: dbus-glib-devel
57 Requires: xine-plugin-api >= %xineapi
58 Obsoletes: vdr-plugin-xineliboutput-frontend-xine xineliboutput-fe-xine
59
60 %description
61 With this package you can connect to your VDR with xine with an MRL
62 like below:
63 xvdr://127.0.0.1#nocache;demux:mpeg_block
64
65 Frontend packages:
66 - xine-xvdr: Xine frontend
67 - xine1.2-xvdr: Xine1.2 frontend
68 - xineliboutput-sxfe: Standalone X11 frontend
69 - xineliboutput-fbfe: Standalone FB frontend
70 - xineliboutput-local-sxfe: Local X11 frontend
71 - xineliboutput-local-fbfe: Local FB frontend
72
73 %prep
74 %if %snapshot
75 %setup -q -n vdr-%plugin
76 %else
77 %if %prever
78 %setup -q -n %plugin-%version%prever
79 %else
80 %setup -q -n %plugin-%version
81 %endif
82 %endif
83
84 find -name CVS -type d | while read i; do rm -r "$i" || exit 1; done
85
86 %build
87 %setup_compile_flags
88 CFLAGS="$CFLAGS -fPIC"
89 %make XINELIBOUTPUT_VDRPLUGIN=0 XINELIBOUTPUT_X11=0 XINELIBOUTPUT_FB=0 LOCALEDIR=.
90
91 %install
92 rm -rf %{buildroot}
93 install -d -m755 %buildroot%xineplugindir/post %buildroot%_bindir
94 %makeinstall XINELIBOUTPUT_VDRPLUGIN=0 XINELIBOUTPUT_X11=0 XINELIBOUTPUT_FB=0 LOCALEDIR=. \
95 XINEPLUGINDIR=%buildroot%xineplugindir
96
97 %clean
98 rm -rf %{buildroot}
99
100 %files
101 %defattr(-,root,root)
102 %doc README
103 # xine-plugins maybe upgraded without new xine-xvdr (while everything still
104 # works). Therefore we have to include the plugindir as well.
105 %dir %{xineplugindir}
106 %{xineplugindir}/*.so
107 %{xineplugindir}/post/*.so
108
109

  ViewVC Help
Powered by ViewVC 1.1.30