1 Summary: Building Interfaces the easy way
2 Summary(pl.UTF-8): Tworzenie interfejsów w łatwy sposób
7 Group: Development/Building
8 Source0: http://ftp.acc.umu.se/pub/GNOME/sources/gazpacho/0.7/%{name}-%{version}.tar.bz2
9 # Source0-md5: ca9c3c308a63194e6dcec3c932c98fbc
10 Patch0: %{name}-desktop.patch
11 URL: http://gazpacho.sicem.biz/
12 BuildRequires: gettext-devel
13 BuildRequires: python-devel
14 BuildRequires: rpm-pythonprov
15 BuildRequires: sed >= 4.0
16 BuildRequires: python-kiwi
17 Requires: python-pygtk-gtk >= 1:2.6.0
18 %pyrequires_eq python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _noautocompressdoc AUTHORS CONTRIBUTORS COPYING
25 This program allows you to create the Graphical User Interface (GUI)
26 of your GTK+ program in a visual way. It started as a Glade-3 clone
27 but now it is more complete and featured than its ancestor. It tries
28 to be compatible with libglade but it can handle some widgets that
29 still lack support in libglade.
31 %description -l pl.UTF-8
32 Ten program pozwala tworzyć graficzny interfejs użytkownika (GUI) dla
33 programów GTK+ w sposób wizualny. Z początku był klonem Glade-3, ale w
34 chwili obecnej jest bardziej zaawansowany od swojego przodka. Gazpacho
35 stara się być kompatybilnym z libglade, choć zawiera kilka kontrolek
36 wciąż nie wspieranych przez libglade.
42 sed -i -e "s/from gazpacho import application//" \
43 -e "s/application.__version__/'%{version}'/" \
46 #sed -i -e "s@return self._variables\['docs_dir'\]\[0\]@return '/usr/share/doc/%{name}-%{version}/'@" gazpacho/environ.py
49 %{__python} setup.py build
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_pixmapsdir}}
55 %{__python} setup.py install \
57 --root $RPM_BUILD_ROOT
59 find $RPM_BUILD_ROOT%{py_sitescriptdir}/gazpacho -name '*.py' -exec rm -f {} \;
61 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
65 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 install pixmaps/gazpacho-icon.png $RPM_BUILD_ROOT%{_pixmapsdir}/gazpacho.png
69 rm -rf $RPM_BUILD_ROOT
73 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
78 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 # do not remove COPYING -- needed at runtime
84 %doc AUTHORS COPYING CONTRIBUTORS ChangeLog NEWS README
85 %attr(755,root,root) %{_bindir}/*
87 %{py_sitescriptdir}/gazpacho
88 %{_desktopdir}/*.desktop
89 %{_examplesdir}/%{name}-%{version}