3 %bcond_without gtk # don't build GTK+ frontend
4 %bcond_without qt # don't build Qt frontend
5 %bcond_without x # don't build for X Window System frontends
10 Summary: Desktop session recorder
11 Summary(pl.UTF-8): Rejestrator pulpitu
14 # do not decrease Release, as subpackages Version is not in sync with main Version
17 Group: X11/Applications
18 Source0: http://downloads.sourceforge.net/recordmydesktop/%{name}-%{ver}.tar.gz
19 # Source0-md5: 6998b165540598965499bd99d8aa0eef
20 Source1: http://downloads.sourceforge.net/recordmydesktop/gtk-%{name}-%{gtk_ver}.tar.gz
21 # Source1-md5: 2637b9be9801e0b2c3b6dae8f86a8b59
22 Source2: http://downloads.sourceforge.net/recordmydesktop/qt-%{name}-%{qt_ver}.tar.gz
23 # Source2-md5: bf1525740755615ae172ae27fef68fb5
24 Patch0: cache_fix.patch
25 Patch1: x11_build_fix.patch
26 Patch2: %{name}-ALSA-default.patch
27 Patch3: %{name}-sane-theora-defaults.patch
28 Patch4: %{name}-fix-configure-ac-jack-support.patch
29 URL: http://recordmydesktop.sourceforge.net/
31 BuildRequires: QtCore-devel
32 BuildRequires: QtGui-devel
34 BuildRequires: alsa-lib-devel
35 BuildRequires: autoconf
36 BuildRequires: automake
37 BuildRequires: gettext-devel
38 BuildRequires: jack-audio-connection-kit-devel
39 BuildRequires: libogg-devel
40 BuildRequires: libtheora-devel
41 BuildRequires: libvorbis-devel
42 BuildRequires: pkgconfig
43 %{?with_qt:BuildRequires: python-PyQt4}
44 BuildRequires: python-devel
45 %{?with_gtk:BuildRequires: python-pygtk-devel}
46 BuildRequires: rpm-pythonprov
47 BuildRequires: xorg-lib-libICE-devel
48 BuildRequires: xorg-lib-libSM-devel
49 BuildRequires: xorg-lib-libXdamage-devel
50 BuildRequires: xorg-lib-libXext-devel
51 BuildRequires: xorg-lib-libXfixes-devel
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 Simple command line tool that performs the basic tasks of capturing
56 and encoding desktop session. It produces files using only open
57 formats like Theora for video and Vorbis for audio, using the Ogg
60 %description -l pl.UTF-8
61 Proste narzędzie linii poleceń, które wykonuje podstawowe zadanie
62 zrzucania i kodowania bieżącej sesji pulpitu. Wytwarza on pliki
63 używając tylko otwartych formatów takich jak Theora do zapisu obrazu i
64 Vorbis do zapisu dźwięku, wykorzystując kontener Ogg.
67 Summary: GTK+ frontend for recordmydesktop
68 Summary(pl.UTF-8): Frontend do recordmydesktop oparty na GTK+
70 Group: X11/Applications
71 Requires: %{name} >= %{gtk_ver}
72 Requires: python-%{name} >= %{gtk_ver}
75 GTK+ frontend for recordmydesktop.
77 %description gtk -l pl.UTF-8
78 Frontend do recordmydesktop oparty na GTK+.
81 Summary: Qt frontend for recordmydesktop
82 Summary(pl.UTF-8): Frontend do recordmydesktop oparty na Qt
84 Group: X11/Applications
85 Requires: %{name} >= %{qt_ver}
86 Requires: /usr/bin/jack_lsp
87 Requires: python-PyQt4
90 Qt frontend for recordmydesktop.
92 %description qt -l pl.UTF-8
93 Frontend do recordmydesktop oparty na Qt.
95 %package -n python-%{name}
96 Summary: X Window System resource for recordmydesktop
97 Summary(pl.UTF-8): Zasoby X Window System do recordmydesktop
98 Group: X11/Applications
99 Requires: %{name} = %{ver}-%{release}
101 %description -n python-%{name}
102 X Window System resource for recordmydesktop.
104 %description -n python-%{name} -l pl.UTF-8
105 Zasoby X Window System do recordmydesktop.
124 cd gtk-%{name}-%{gtk_ver}
131 cd qt-%{name}-%{qt_ver}
132 sed -i -e 's@#! /bin/sh@#!/bin/bash@' configure
139 rm -rf $RPM_BUILD_ROOT
141 INSTALL="%{__install} -c -p" \
142 DESTDIR=$RPM_BUILD_ROOT
144 %py_postclean %{py_sitescriptdir}/recordMyDesktop
147 %{__make} -C gtk-%{name}-%{gtk_ver} install \
148 INSTALL="%{__install} -c -p" \
149 DESTDIR=$RPM_BUILD_ROOT
151 %find_lang gtk-recordMyDesktop
155 %{__make} -C qt-%{name}-%{qt_ver} install \
156 INSTALL="%{__install} -c -p" \
157 DESTDIR=$RPM_BUILD_ROOT
160 %find_lang qt-recordMyDesktop
162 %py_postclean %{py_sitescriptdir}/qt_recordMyDesktop
166 rm -rf $RPM_BUILD_ROOT
169 %defattr(644,root,root,755)
170 %doc AUTHORS ChangeLog
171 %attr(755,root,root) %{_bindir}/%{name}
172 %{_mandir}/man1/%{name}.1*
175 %files -n python-%{name}
176 %defattr(644,root,root,755)
177 %{py_sitescriptdir}/recordMyDesktop
181 %files gtk -f gtk-recordMyDesktop.lang
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_bindir}/gtk-recordMyDesktop
184 %{_desktopdir}/gtk-%{name}.desktop
185 %{_pixmapsdir}/gtk-%{name}.png
189 %files qt -f qt-recordMyDesktop.lang
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_bindir}/qt-recordMyDesktop
192 %{_desktopdir}/qt-%{name}.desktop
193 %{_pixmapsdir}/qt-%{name}*.png
195 %{py_sitescriptdir}/qt_recordMyDesktop