--- /dev/null
+Summary: Code Editor for Objective C
+Name: CodeEditor
+Version: 0.4.1
+Release: 1
+License: GPL
+Group: X11/Applications
+Source0: http://savannah.nongnu.org/download/codeeditor/CodeEditor.pkg/0.4.1/CodeEditor-0.4.1.tar.gz
+# Source0-md5: 4906152cd85fe0bd8b61ae1b17db9323
+URL: http://www.nongnu.org/codeeditor/
+BuildRequires: gnustep-gui-devel >= 0.8.7
+Requires: gnustep-gui >= 0.8.7
+Requires: %{name}-libs = %{version}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/lib/GNUstep
+
+%define libcombo gnu-gnu-gnu
+%define gsos linux-gnu
+%ifarch %{ix86}
+%define gscpu ix86
+%else
+# also s/alpha.*/alpha/, but we use only "alpha" arch for now
+%define gscpu %{_target_cpu}
+%endif
+
+%description
+This is CodeEditor, a simple image viewer application for GNUstep.
+
+%description -l pl
+To jest CodeEditor - prosta przegl±darka obrazków dla ¶rodowiska
+GNUstep.
+
+%package libs
+Summary: CodeEditorView bundle
+Group: Development/Tools
+
+%description libs
+CodeEditorView bundle for embedding CodeEditor in other apps
+
+%package devel
+Summary: CodeEditorView bundle headers
+Group: Development/Tools
+
+%description devel
+CodeEditorView bundle headers
+
+%prep
+%setup -q -n codeeditor
+
+%build
+. %{_prefix}/System/Library/Makefiles/GNUstep.sh
+%{__make} \
+ OPTFLAG="%{rpmcflags}" \
+ messages=yes
+
+%install
+rm -rf $RPM_BUILD_ROOT
+. %{_prefix}/System/Library/Makefiles/GNUstep.sh
+
+%{__make} install \
+ GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README TODO
+%dir %{_prefix}/System/Applications/CodeEditor.app
+%attr(755,root,root) %{_prefix}/System/Applications/CodeEditor.app/CodeEditor
+%dir %{_prefix}/System/Applications/CodeEditor.app/Resources
+%{_prefix}/System/Applications/CodeEditor.app/Resources/*.desktop
+%{_prefix}/System/Applications/CodeEditor.app/Resources/*.plist
+%{_prefix}/System/Applications/CodeEditor.app/Resources/*.tiff
+%{_prefix}/System/Applications/CodeEditor.app/Resources/*.gorm
+%{_prefix}/System/Applications/CodeEditor.app/Resources/Scripts
+%dir %{_prefix}/System/Applications/CodeEditor.app/%{gscpu}
+%dir %{_prefix}/System/Applications/CodeEditor.app/%{gscpu}/%{gsos}
+%dir %{_prefix}/System/Applications/CodeEditor.app/%{gscpu}/%{gsos}/%{libcombo}
+%attr(755,root,root) %{_prefix}/System/Applications/CodeEditor.app/%{gscpu}/%{gsos}/%{libcombo}/CodeEditor
+%{_prefix}/System/Applications/CodeEditor.app/%{gscpu}/%{gsos}/%{libcombo}/*.openapp
+
+%files libs
+%dir %{_prefix}/System/Library/ApplicationSupport/CodeEditorView/ObjCHandler.bundle
+%{_prefix}/System/Library/ApplicationSupport/CodeEditorView/ObjCHandler.bundle/Resources/*.plist
+%{_prefix}/System/Library/ApplicationSupport/CodeEditorView/ObjCHandler.bundle/%{gscpu}/%{gsos}/%{libcombo}/ObjCHandler
+
+%files devel
+%{_prefix}/System/Library/Headers/CodeEditorView/*.h