File sugar-record.spec of Package sugar-record
#
# spec file for package sugar-record
#
# Copyright (c) 2013 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: sugar-record
Version: 99
%if 0%{?suse_version}
Release: 1
%else
Release: 1%{?dist}
%endif
Summary: Recording tool for Sugar
License: MIT
Url: http://wiki.laptop.org/go/Record
Group: Sugar/Activities
Source0: http://download.sugarlabs.org/activities/4081/record-%{version}.xo
Source2: sugar-record-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildArch: noarch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libogg-devel
BuildRequires: libogg-devel
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: python-gobject2-devel
BuildRequires: python-gtk-devel
BuildRequires: sugar-toolkit
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: python-cairo-devel
Requires: python-simplejson
Requires: sugar
%description
Record is the basic rich-media capture activity for the laptop. It
lets you capture still images, video, and/or audio. It has a simple
interface and works in both laptop and ebook mode. An interface for
sharing pictures among multi XOs during a picture-taking session is
a hallmark of the Record activity
%prep
%setup -q -n Record.activity
%build
python ./setup.py build
%install
./setup.py install --prefix=%{buildroot}/%{_prefix}
rm -rf %{buildroot}%{sugaractivitydir}/Record.activity/gst/.deps
rm -rf %{buildroot}%{sugaractivitydir}/Record.activity/gst/.libs
%find_lang org.laptop.RecordActivity
%fdupes %{buildroot}
%clean
rm -rf $%{buildroot}
%files -f org.laptop.RecordActivity.lang
%defattr(-,root,root,-)
%doc COPYING NEWS
%{sugaractivitydir}/Record.activity/
%changelog