3 %bcond_without system_ffmpeg # use system ffmpeg
5 Summary: XVidCap - Video Capture for X
6 Summary(pl.UTF-8): XVidCap - przechwytywanie obrazu dla X
12 Group: X11/Applications/Graphics
13 Source0: http://downloads.sourceforge.net/xvidcap/%{name}-%{version}.tar.gz
14 # Source0-md5: b39a682d3ef9fcbf424af771936780e2
15 Patch0: %{name}-ffmpeg.patch
16 Patch1: %{name}-x11.patch
17 URL: http://xvidcap.sourceforge.net/
18 BuildRequires: autoconf >= 2.57
19 BuildRequires: automake
20 BuildRequires: dbus-glib-devel
21 %{?with_system_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9-4.20080930.1}
22 BuildRequires: gettext-tools
23 BuildRequires: gtk+2-devel >= 2.0.0
24 BuildRequires: intltool
25 BuildRequires: libglade2-devel
26 BuildRequires: libpng-devel
27 BuildRequires: pkgconfig
28 BuildRequires: rpmbuild(find_lang) >= 1.23
29 BuildRequires: rpmbuild(macros) >= 1.198
30 BuildRequires: scrollkeeper
31 BuildRequires: xorg-lib-libXmu-devel
32 BuildRequires: zlib-devel
33 Requires(post,postun): scrollkeeper
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Capture parts of your screen to single files for every frame or to an
41 This program does not use a special hardware driver to access the
42 video card. It just asks the X server about rectangular areas. This
43 means you need a fast machine (>= 133 MHz) and a fast harddrive. Big
44 frames (e.g. 384x288 = 1/2 PAL) at a high FPS rate are only possible
45 with very very fast systems :-)
47 %description -l pl.UTF-8
48 Ten pakiet służy do przechwytywania ekranu do pojedynczych plików z
49 każdą ramką lub strumienia MPEG.
51 Program nie używa żadnego specjalnego sterownika sprzętowego do
52 dostępu do karty graficznej - po prostu pobiera prostokątne obszary od
53 serwera X. Oznacza to, że trzeba mieć szybką maszynę (>= 133 MHz) i
54 szybki twardy dysk. Duże ramki (np. 384x288, czyli 1/2 PAL) z dużymi
55 FPS można przechwytywać tylko na bardzo bardzo szybkich systemach :-)
69 %{?with_system_ffmpeg:--without-forced-embedded-ffmpeg}
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_docdir},%{_mandir}/man1}
77 DESTDIR=$RPM_BUILD_ROOT
79 %find_lang %{name} --with-gnome --with-omf
82 rm -rf $RPM_BUILD_ROOT
85 %scrollkeeper_update_post
88 %scrollkeeper_update_postun
90 %files -f %{name}.lang
91 %defattr(644,root,root,755)
92 %doc ChangeLog README TODO.tasks
93 %attr(755,root,root) %{_bindir}/*
94 %dir %{_datadir}/%{name}
95 %attr(755,root,root) %{_datadir}/%{name}/ppm2mpeg.sh
96 %dir %{_datadir}/%{name}/glade
97 %{_datadir}/%{name}/glade/gnome-xvidcap.glade
98 %{_datadir}/%{name}/glade/xvidcap_logo.png
99 %{_datadir}/dbus-1/services/net.jarre_de_the.Xvidcap.service
100 %{_mandir}/man1/xvidcap.1*
101 %{_mandir}/man1/xvidcap-dbus-client.1*
102 %lang(de) %{_mandir}/de/man1/xvidcap.1*
103 %lang(de) %{_mandir}/de/man1/xvidcap-dbus-client.1*
104 %lang(es) %{_mandir}/es/man1/xvidcap.1*
105 %lang(it) %{_mandir}/it/man1/xvidcap.1*
106 %{_desktopdir}/%{name}.desktop
107 %{_pixmapsdir}/%{name}.png