--- /dev/null
+%define _snap 20061222
+Summary: Eric4 is a full featured Python IDE
+Summary(pl): Eric4 - pe³nowarto¶ciowe IDE dla Pythona
+Name: eric4
+Version: 4.0
+Release: 0.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
+BuildRequires: rpm-pythonprov
+%pyrequires_eq python-modules
+Requires: python-qscintilla2
+Requires: python-devel-tools
+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.
+
+%package doc
+Summary: Documentation for Eric4
+Summary(pl): Dodatkowa dokumentacja dla Eric4
+Group: X11/Development/Tools
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Documentation for Eric4.
+
+%description doc -l pl
+Dodatkowa dokumentacja dla Eric4.
+
+%prep
+%setup -q -n %{name}-snapshot-%{_snap}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+python install.py -c -b %{_bindir} -d %{py_sitedir} -i $RPM_BUILD_ROOT
+
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}/*
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+# NOTE: eric4 uses *.py files for it's own purposes
+# so do not remove them from package
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README* THANKS
+%attr(755,root,root) %{_bindir}/*
+%{py_sitedir}/eric4config.py
+%{py_sitedir}/%{name}
+%exclude %{py_sitedir}/%{name}/Documentation
+
+%files doc
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/%{name}/Documentation
+%{py_sitedir}/%{name}/Documentation/Source