File qt-recordmydesktop.spec of Package qt-recordmydesktop

#
# spec file for package qt-recordmydesktop
#
# Copyright (c) 2015 SUSE LINUX 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
Summary:        QT4 Frontend for Desktop Recorder
License:        GPL-3.0 and LGPL-3.0
Group:          Productivity/Multimedia/Video/Editors and Convertors
Url:            http://recordmydesktop.sourceforge.net
Source:         http://downloads.sourceforge.net/recordmydesktop/qt-recordMyDesktop/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  automake >= 1.5
BuildRequires:  fdupes
BuildRequires:  libqt4 >= 4.2
BuildRequires:  libqt4-devel >= 4.2
BuildRequires:  python >= 2.4
BuildRequires:  python-devel >= 2.4
BuildRequires:  python-qt4 >= 4.1
BuildRequires:  update-desktop-files
Requires:       jack
Requires:       python-qt4 >= 4.1
Requires:       recordmydesktop >= %{version}
Provides:       recordmydesktop-qt = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if %{?suse_version: 0%{?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

%build
%configure --prefix=%{_prefix}/
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%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 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