File qt-recordMyDesktop.spec of Package qt-recordMyDesktop

#
# spec file for package qt-recordmydesktop
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:     qt-recordmydesktop
Version:  0.3.8
Release:  0.1
Summary:  QT4 Frontend for Desktop Recorder
Source:   %{name}-%{version}.tar.gz
URL:       http://recordmydesktop.sourceforge.net
Group:     Productivity/Multimedia/Video/Editors and Convertors
License:   GPL
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires:	libqt4 >= 4.2 libqt4-devel >= 4.2 automake >= 1.5
BuildRequires:  python >= 2.4 python-devel >= 2.4 python-qt4 >= 4.1
BuildRequires:	update-desktop-files
BuildRequires:  fdupes
Requires:  jack
Provides:  recordmydesktop-qt = %{version}
Requires:  recordmydesktop >= %{version}
Requires:  python-qt4 >= 4.1
%py_requires
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:     noarch
%endif

%description
recordMyDesktop is a program that captures audio and video data from a Linux
desktop session, producing an Ogg-encapsulated Theora-Vorbis file. The main
goal is to be as unobstrusive as possible by proccessing only regions of the
screen that have changed.

%prep
%setup -q -n "qt-recordmydesktop-%{version}"

%build
%configure --prefix=%{_prefix}/
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

%suse_update_desktop_file -r qt-recordmydesktop AudioVideo AudioVideoEditing
# Unfortunately, we cannot use %%{name} here due to different capitalization:
%{find_lang} qt-recordMyDesktop
%fdupes %buildroot

%files -f qt-recordMyDesktop.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/qt-recordMyDesktop
%{_datadir}/applications/qt-recordmydesktop.desktop
%{_datadir}/pixmaps/*.png
%dir %{python_sitelib}/qt_recordMyDesktop
%{python_sitelib}/qt_recordMyDesktop/*
%{_datadir}/pixmaps/media-playback-pause.svg
%{_datadir}/pixmaps/media-playback-stop.svg
%{_datadir}/pixmaps/media-record.svg

%changelog
openSUSE Build Service is sponsored by