LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gazpacho.spec of Package gazpacho (Project home:joshkress)

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           gazpacho
Version:        0.7.2
Release:        1
Summary:        Glade Interface Creator

Group:          Development/Tools
License:        GPLv2+
URL:            http://gazpacho.sicem.biz/
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

BuildRequires:  python-devel, desktop-file-utils, python-kiwi, gettext
Requires:       python-gtk >= 2.8, python-kiwi-gazpacho


%description
This program allows you to create the Graphical User Interface (GUI) of your
GTK+ program in a visual way. Yes, it is a Glade-3 clone. It is compatible with
libglade.


%prep
%setup -q
#sed -i -e 's|share/doc/gazpacho|share/doc/gazpacho-%{version}|' setup.py


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --prefix=/usr -O1 --skip-build --root=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{_docdir}/gazpacho
desktop-file-install \
    --delete-original \
    --vendor fedora \
    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
    --add-category Application \
    --add-category Development \
    --add-category X-Fedora \
    $RPM_BUILD_ROOT%{_datadir}/applications/gazpacho.desktop
%find_lang %{name}


%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README COPYING NEWS AUTHORS CONTRIBUTORS ChangeLog examples doc
/usr/share/doc/gazpacho/*
/usr/share/doc/gazpacho/examples/*
%{python_sitelib}/gazpacho
%{_datadir}/gazpacho
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{python_sitelib}/gazpacho-0.7.2-py2.5.egg-info


%changelog
* Wed Oct 03 2007 Joerg Kress <j.j.kress@googlemail.com> - 0.7.2-1
- Initial packaging