X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=gaphor.spec;h=83217cf52e6a2ec84b9b1f1a82eb9ef1079bbbcb;hb=HEAD;hp=14e90be406223429fa3ee398229d4dae4b5fc005;hpb=8ad4624c69d9b6d34ed029e0649956a2e800c68b;p=packages%2Fgaphor.git diff --git a/gaphor.spec b/gaphor.spec index 14e90be..83217cf 100644 --- a/gaphor.spec +++ b/gaphor.spec @@ -1,18 +1,24 @@ Summary: UML modeling environment written in Python -Summary(pl): ¦rodowisko modelowania UML oparte o Pythona +Summary(pl.UTF-8): Środowisko modelowania UML oparte o Pythona Name: gaphor -Version: 0.5.0 +Version: 0.13.1 Release: 1 License: GPL Group: Applications/Engineering -Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz -# Source0-md5: 761451126030e3171d0b20fee829d800 -Patch0: %{name}-pluginsdir.patch -Patch1: %{name}-datadir.patch -URL: http://gaphor.sourceforge.net/ +Source0: http://pypi.python.org/packages/source/g/gaphor/%{name}-%{version}.tar.gz +# Source0-md5: cb08850a91f23bee62eb266f4388af0e +Source1: %{name}.desktop +URL: http://gaphor.devjavu.com/ +BuildRequires: rpmbuild(macros) >= 1.710 BuildRequires: python-devel -Requires: python-pygtk-gtk >= 2.0.0 -Requires: python-diacanvas >= 0.13 +BuildRequires: python-pygtk-gtk >= 2.8.4 +%pyrequires_eq python-libs +Requires: python-decorator >= 2.2.0 +Requires: python-gaphas >= 0.3.3 +Requires: python-pygtk-gtk >= 2.8.4 +Requires: python-setuptools +Requires: Zope-Component >= 3.4.0-1 +Requires: Zope-Interface BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -21,50 +27,38 @@ Gaphor is an easy to use modeling environment. This means that you are able to create nice UML diagrams for documentation and to assist you with design decisions. Gaphor will help you create your applications. -%description -l pl -Gaphost jest ³atwym w u¿yciu ¶rodowiskiem do projektowania UML. To -znaczy u³atwia tworzenie diagramów UML dla dokumentacji oraz pomaga w -podejmowaniu decyzji. Gaphost u³atwia pracê przy tworzeniu aplikacji. +%description -l pl.UTF-8 +Gaphor jest łatwym w użyciu środowiskiem do projektowania UML. To +znaczy ułatwia tworzenie diagramów UML dla dokumentacji oraz pomaga w +podejmowaniu decyzji. Gaphor ułatwia pracę przy tworzeniu aplikacji. %prep %setup -q -%patch0 -%patch1 %build -python setup.py build +%py_build %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_bindir} +install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir}} -python setup.py install \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT +%py_install -cat < $RPM_BUILD_ROOT%{_bindir}/%{name} -#!/usr/bin/python -O -import gaphor -gaphor.main() -EOF +install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} -%find_lang %{name} +%py_postclean + +#%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files -f %{name}.lang +#%files -f %{name}.lang +%files %defattr(644,root,root,755) %doc README PKG-INFO NEWS TODO AUTHORS %attr(755,root,root) %{_bindir}/* -%dir %{py_sitescriptdir}/%{name} -%dir %{py_sitescriptdir}/%{name}/ui -%dir %{py_sitescriptdir}/%{name}/misc -%dir %{py_sitescriptdir}/%{name}/diagram -%dir %{py_sitescriptdir}/%{name}/UML -%{py_sitescriptdir}/%{name}/*.py[oc] -%{py_sitescriptdir}/%{name}/ui/*.py[oc] -%{py_sitescriptdir}/%{name}/misc/*.py[oc] -%{py_sitescriptdir}/%{name}/diagram/*.py[oc] -%{py_sitescriptdir}/%{name}/UML/*.py[oc] -%{_datadir}/%{name} +%{py_sitescriptdir}/%{name} +%{py_sitescriptdir}/%{name}*egg* +%{_desktopdir}/%{name}.desktop +%{_pixmapsdir}/%{name}*