File FDesktopRecorder.spec of Package FDesktopRecorder

#
# spec file for package 
#
# Copyright (c) 2010 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/
#

# norootforbuild

Name:           FDesktopRecorder
Version:	20130819
Release:	1
License:	GPL-2.0
Summary:	A program to record the screen
Url:		https://github.com/froksen/FDesktopRecorder
Group:		Productivity/Multimedia/Other
Source:		%{name}-%{version}.tar.gz
Source2:	%{name}.png
Source3:	%{name}.desktop
Source4: 	%{name}.notifyrc
Patch0:		%{name}.patch

%if 0%{?suse_version}
BuildRequires:	desktop-file-utils, libqt4-devel, gcc-c++, make, cmake, libkde4-devel, alsa-devel
%endif
%if %{defined fedora}
BuildRequires:	desktop-file-utils, libqt4-devel, gcc-c++, make, kdelibs-devel
%endif
%if 0%{?suse_version} == 1230
BuildRequires:  libjpeg8-devel
%endif

Requires:	xwininfo ffmpeg kaffeine

BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
A program that can record a single window or your entire desktop using ffmpeq. Based on a script by Peter Lyberth from the danish GNU/Linux show "Kanal Tux" http://www.kanaltux.dk 


%prep
%setup -q
%patch0 -p1

%build
cmake CMakeLists.txt
make

%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/applications
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/kde4/apps/%{name}

install -p -m 755 %{name} $RPM_BUILD_ROOT/%{_bindir}

desktop-file-install                                    \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
%{SOURCE3}

install -p %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/
install -p %{SOURCE4}  ${RPM_BUILD_ROOT}%{_datadir}/kde4/apps/%{name}/


%clean
%{?buildroot:%__rm -rf "%{buildroot}"}


%files
%defattr(-,root,root)
%doc CHANGELOG README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/kde4
%{_datadir}/kde4/apps
%{_datadir}/kde4/apps/%{name}
%attr(644, root, root) %{_datadir}/kde4/apps/%{name}/%{name}.notifyrc
%{_datadir}/kde4/apps/%{name}/%{name}.notifyrc*

%changelog
openSUSE Build Service is sponsored by