X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=eric4.spec;h=781870632208e305adff80ff23115ac58f43bf26;hb=fe8c0da22a973b2d242815f6196115f22e4630f1;hp=2cd256c6ce1bffdbcd25a04efacd3e83c27a5813;hpb=a0b8685904e0a96c5d9706eaffcd7228fce6041b;p=packages%2Feric4.git diff --git a/eric4.spec b/eric4.spec index 2cd256c..7818706 100644 --- a/eric4.spec +++ b/eric4.spec @@ -1,51 +1,56 @@ -%define _snap 20061222 -Summary: Eric4 is a full featured Python IDE -Summary(pl): Eric4 - pe³nowarto¶ciowe IDE dla Pythona +Summary: Eric4 - a full featured Python IDE +Summary(pl.UTF-8): Eric4 - pełnowartościowe IDE dla Pythona Name: eric4 -Version: 4.0 -Release: 0.1 +Version: 4.3.1 +Release: 1 License: GPL Group: X11/Development/Tools -Source0: http://www.die-offenbachs.de/detlev/snapshots4/%{name}-snapshot-%{_snap}.tar.gz -# Source0-md5: 04a4b2a1193427fba18a779c070683ed -URL: http://www.die-offenbachs.de/detlev/eric.html -BuildRequires: python-qscintilla2-devel +Source0: http://dl.sourceforge.net/eric-ide/%{name}-%{version}.tar.gz +# Source0-md5: f7060154d397ca53dcc3fc43995c73b7 +Source1: %{name}.desktop +Patch0: %{name}-distdir.patch +URL: http://eric-ide.python-projects.org/ +BuildRequires: python-qscintilla2-devel >= 2.2 BuildRequires: rpm-pythonprov %pyrequires_eq python-modules -Requires: python-qscintilla2 +Requires: python-qscintilla2 >= 2.2 Requires: python-devel-tools +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Eric4 is a full featured Python IDE that is written in PyQt4 using the QScintilla editor widget. -%description -l pl -Eric4 jest pe³nowarto¶ciowym IDE dla Pythona napisanym w PyQt4 i -u¿ywaj±cym edytora QScintilla. +%description -l pl.UTF-8 +Eric4 jest pełnowartościowym IDE dla Pythona napisanym w PyQt4 i +używającym edytora QScintilla. %package doc Summary: Documentation for Eric4 -Summary(pl): Dodatkowa dokumentacja dla Eric4 +Summary(pl.UTF-8): Dodatkowa dokumentacja dla Eric4 Group: X11/Development/Tools Requires: %{name} = %{version}-%{release} %description doc Documentation for Eric4. -%description doc -l pl +%description doc -l pl.UTF-8 Dodatkowa dokumentacja dla Eric4. %prep -%setup -q -n %{name}-snapshot-%{_snap} +%setup -q +%patch0 -p1 %install rm -rf $RPM_BUILD_ROOT -python install.py -c -b %{_bindir} -d %{py_sitedir} -i $RPM_BUILD_ROOT +python install.py -c -b %{_bindir} -d %{py_sitescriptdir} -i $RPM_BUILD_ROOT +install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/eric4.desktop +install -D eric/pixmaps/eric.png $RPM_BUILD_ROOT%{_pixmapsdir}/eric4.png -%py_comp $RPM_BUILD_ROOT%{py_sitedir}/* -%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/* +%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/* +%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/* %clean rm -rf $RPM_BUILD_ROOT @@ -54,13 +59,20 @@ rm -rf $RPM_BUILD_ROOT # so do not remove them from package %files %defattr(644,root,root,755) -%doc ChangeLog README* THANKS +%doc README* THANKS %attr(755,root,root) %{_bindir}/* -%{py_sitedir}/eric4config.py -%{py_sitedir}/%{name} -%exclude %{py_sitedir}/%{name}/Documentation +%{py_sitescriptdir}/eric4config.py* +%{py_sitescriptdir}/%{name} +%dir %{py_sitescriptdir}/%{name}plugins +%{py_sitescriptdir}/%{name}plugins/* +%exclude %{py_sitescriptdir}/%{name}/Documentation +%{_desktopdir}/eric4.desktop +%{_pixmapsdir}/eric4.png +#%{_datadir}/qt4/qsci/api/python/* +#%dir %{_datadir}/qt4/qsci/api/ruby +#%{_datadir}/qt4/qsci/api/ruby/* %files doc %defattr(644,root,root,755) -%dir %{py_sitedir}/%{name}/Documentation -%{py_sitedir}/%{name}/Documentation/Source +%dir %{py_sitescriptdir}/%{name}/Documentation +%{py_sitescriptdir}/%{name}/Documentation/Source