/
xvidcap.spec
122 lines (106 loc) · 3.15 KB
/
xvidcap.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#####################
# Hardcode PLF build
%define build_plf 0
#####################
%{?_with_plf: %{expand: %%global build_plf 1}}
%if %{build_plf}
%define distsuffix plf
# make EVR of plf build higher than regular to allow update, needed with rpm5 mkrel
%define extrarelsuffix plf
%endif
# Note that disabling these does not cause build failures, but
# other output formats than xwd will be disabled
# embedded ffmpeg vhook modules
%define _disable_ld_no_undefined 1
# FIXME: embedded ffmpeg
%define _disable_ld_as_needed 1
Name: xvidcap
Summary: Screen capture video recorder
Version: 1.1.7
Release: 6%{?extrarelsuffix}
License: GPLv2+
Group: Video
URL: http://xvidcap.sourceforge.net/
Source0: http://downloads.sourceforge.net/xvidcap/%{name}-%{version}.tar.gz
Source1: xvidcap_ru.po
Patch0: xvidcap-1.1.5-docbook.patch
Patch1: xvidcap-1.1.7-fix-headers.patch
Patch2: xvidcap-1.1.5-nawk.patch
Patch3: xvidcap-1.1.7-desktop-entry.patch
Patch4: xvidcap-1.1.7-ffmpeg-options.patch
Patch5: xvidcap-1.1.7-shmstr.patch
Patch6: xvidcap-1.1.7-glib.patch
Patch7: xvidcap-1.1.7-add-ru-localization.patch
Patch8: xvidcap-1.1.7-automake-1.13.patch
BuildRequires: docbook-utils
BuildRequires: intltool
BuildRequires: scrollkeeper
BuildRequires: xmlto
BuildRequires: jpeg-devel
BuildRequires: gettext
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libglade-2.0)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(theora)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(zlib)
%if %{build_plf}
BuildRequires: libfaac-devel
BuildRequires: libfaad2-devel
BuildRequires: liblame-devel
BuildRequires: pkgconfig(x264)
%endif
BuildConflicts: ffmpeg-devel
Requires(post): scrollkeeper
Requires(postun): scrollkeeper
Requires: mplayer
Requires: mencoder
Requires: ffmpeg
Requires: imagemagick
%description
xvidcap is a screen capture enabling you to capture videos off your X-Window
desktop for illustration or documentation purposes. It is intended to be a
standards-based alternative to tools like Lotus ScreenCam.
%if %{build_plf}
This package is in Restricted reporitory as it is linked with patented codecs.
%endif
%prep
%setup -q
cp -p %{SOURCE1} po/ru.po
%patch0 -p0 -b .docbook
%patch1 -p1
%patch2 -p0 -b .fixawk
%patch3 -p1
%patch4 -p1
%patch5 -p0
%patch6 -p1
%patch7 -p1 -b .ru_po
%patch8 -p0
aclocal
autoheader
autoconf
automake --add-missing
cp configure.ac configure.in
# NOCONFIGURE=yes sh ./autogen.sh
intltoolize --copy --force
%build
%configure2_5x --disable-dependency-tracking --enable-libtheora LIBS="-lX11 -lz -lXext"
%make CPPFLAGS=-I`pwd`/ffmpeg
%install
%makeinstall_std
chmod 755 %{buildroot}%{_datadir}/%{name}/ppm2mpeg.sh
ln -s %{_datadir}/%{name}/ppm2mpeg.sh %{buildroot}%{_bindir}/ppm2mpeg.sh
rm -fr %{buildroot}/%{_docdir}
%find_lang %{name} --with-gnome --with-man --all-name
%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_bindir}/xvidcap-dbus-client
%{_bindir}/ppm2mpeg.sh
%{_datadir}/dbus-1/services/net.jarre_de_the.Xvidcap.service
%{_mandir}/man1/*
%{_datadir}/applications/xvidcap.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png