Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 6e1270e8bfc45bf4d9aabba782cfb719 > files > 2

python-kiwi-1.9.29-2.mga3.src.rpm

%define oname kiwi

Name:          python-kiwi
Version:       1.9.29
Release:       %mkrel 2
Summary:       A framework and a set of enhanced widgets based on PyGTK

Group:         Development/Python
License:       LGPLv2+
URL:           http://www.async.com.br/projects/kiwi/
Source0:       http://ftp.gnome.org/pub/GNOME/sources/kiwi/1.9/kiwi-%{version}.tar.bz2
BuildRequires: pygtk2.0-devel
Requires:      pygtk2.0-libglade

%description
kiwi offers a set of enhanced widgets for
Python based on PyGTK. It also includes a framework designed to make
creating Python applications using PyGTK and libglade much
simpler.

%package docs
Group: Development/Python
Summary: Documentation related to python-kiwi
Requires: %{name} = %{version}-%{release}
	
%description docs
This package contains documentation that contains APIs and related materials,
useful for reference when writing software using Kiwi.

%prep
%setup -q -n %oname-%version
sed -i -e 's|share/doc/kiwi|share/doc/%{name}-%{version}|' setup.py 

%build
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
python setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
%if %_lib != lib
mkdir -p %buildroot%_libdir
mv %buildroot%_prefix/lib/glade3 %buildroot%_libdir
%endif

%find_lang %oname

%files -f %oname.lang
%defattr(-,root,root)
%doc AUTHORS COPYING README NEWS
%{_bindir}/*
%{py_puresitedir}/*.egg-info
#gw this dir is arch-dependant:
%{_libdir}/glade3/*
%{_datadir}/glade3/*
%_datadir/%oname
%{py_puresitedir}/kiwi

%files docs
%defattr(-,root,root,-)
%doc COPYING doc/* examples
	



%changelog

* Sun Jan 13 2013 umeabot <umeabot> 1.9.29-2.mga3
+ Revision: 379039
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Oct 26 2011 philippem <philippem> 1.9.29-1.mga2
+ Revision: 158318
- silent cleaning
- no more noarch for glade3 module
- new upstream 1.9.29

* Wed Apr 13 2011 ennael <ennael> 1.9.27-2.mga1
+ Revision: 84055
- clean spec file
- imported package python-kiwi