Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 3b2b0a96903c94fcd473c1d55fff3de4 > files > 2

sugar-paint-27-3.fc14.src.rpm

%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif

Name:           sugar-paint
Version:        27
Release:        3%{?dist}
Summary:        Paint activity for Sugar

Group:          Sugar/Activities
License:        GPLv2
URL:            http://wiki.sugarlabs.org/go/Activities/Paint
Source0:        http://activities.sugarlabs.org/sugar/downloads/file/26190/paint-%{version}.xo
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  gettext
BuildRequires:  gtk2-devel
BuildRequires:  pygtk2-devel
BuildRequires:  python-devel
BuildRequires:  sugar-toolkit
Requires:       sugar


%description
Paint will provide a canvas for an individual or a group of children 
to express themselves creatively through drawing. 

%prep
%setup -q -n Paint.activity

# make sure to grab blob from the right location and remove prebuilt ones
sed '49,53d' -i fill/Makefile
rm -rf fill/linux*


%build
make %{?_smp_mflags} V=1 -C fill LDFLAGS+=--build-id
%{__python} setup.py build


%install
rm -rf  %{buildroot}
mkdir -p %{buildroot}%{python_sitearch}/fill/
install -Dm 0755 fill/_fill.so %{buildroot}%{python_sitearch}/fill/
install -Dm 0644 fill/__init__.py %{buildroot}%{python_sitearch}/fill/
%{__python} setup.py install --prefix=%{buildroot}/%{_prefix}
rm -rf %{buildroot}%{sugaractivitydir}Paint.activity/fill
%find_lang org.laptop.Oficina


%clean
rm -rf %{buildroot}

%files -f org.laptop.Oficina.lang
%defattr(-,root,root,-)
%doc NEWS COPYING
%{python_sitearch}/fill/
%{sugaractivitydir}/Paint.activity/


%changelog
* Fri Jul 30 2010 Sebastian Dziallas <sebastian@when.com> - 27-3
- Rebuild for Python 2.7

* Mon May 24 2010 Sebastian Dziallas <sebastian@when.com> - 27-2
- Fix the buildroot

* Thu Mar 11 2010 Sebastian Dziallas <sebastian@when.com> - 27-1
- New upstream release
- Cleaned the spec file up

* Tue Nov 19 2008 Bryan Kearney <bkearney@redhat.com> - 23-2
- Deleted directory creation which is not required.

* Tue Nov 18 2008 Bryan Kearney <bkearney@redhat.com> - 23-1
- Initial packaging