Summary: Code Editor for Objective C
+Summary(pl): Edytor kodu dla jêzyka Objective C
Name: CodeEditor
-Version: 0.4.1
-Release: 1
+Version: 0.4.4
+Release: 3
License: GPL
Group: X11/Applications
-Source0: http://savannah.nongnu.org/download/codeeditor/CodeEditor.pkg/0.4.1/%{name}-%{version}.tar.gz
-# Source0-md5: 4906152cd85fe0bd8b61ae1b17db9323
+Source0: http://savannah.nongnu.org/download/codeeditor/%{name}-%{version}.tar.gz
+# Source0-md5: 396cc3b9a51a7f045fe53800c98723e0
URL: http://www.nongnu.org/codeeditor/
BuildRequires: gnustep-gui-devel >= 0.8.7
Requires: gnustep-gui >= 0.8.7
-Requires: %{name}-libs = %{version}
+Requires: %{name}-libs = %{version}-%{release}
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}
+%define gscpu %(echo %{_target_cpu} | sed -e 's/amd64/x86_64/;s/ppc/powerpc/')
%endif
-%define appdir %{_libdir}/GNUstep/System/Applications/CodeEditor.app
-%define supportdir %{_libdir}/GNUstep/System/Library/ApplicationSupport/CodeEditorView
+%define appdir %{_prefix}/System/Applications/CodeEditor.app
+%define supportdir %{_prefix}/System/Library/ApplicationSupport/CodeEditorView
%description
-This is CodeEditor, a programmer's editor and library for GNUstep
+CodeEditor is a programmer's editor and library for GNUstep.
+
+%description -l pl
+CodeEditor jest edytorem programisty i bibliotek± dla GNUstepa.
%package libs
Summary: CodeEditorView bundle
+Summary(pl): Paczka CodeEditorView
Group: Development/Tools
%description libs
-CodeEditorView bundle for embedding CodeEditor in other apps
+CodeEditorView bundle for embedding CodeEditor in other apps.
+
+%description libs -l pl
+Paczka CodeEditorView do osadzania CodeEditora w innych aplikacjach.
%package devel
Summary: CodeEditorView bundle headers
+Summary(pl): Pliki nag³ówkowe paczki CodeEditorView
Group: Development/Tools
+Requires: %{name}-libs = %{version}-%{release}
%description devel
-CodeEditorView bundle headers
+CodeEditorView bundle headers.
+
+%description devel -l pl
+Pliki nag³ówkowe paczki CodeEditorView.
%prep
-%setup -q -n codeeditor
+%setup -q -n CodeEditor
%build
. %{_prefix}/System/Library/Makefiles/GNUstep.sh
%defattr(644,root,root,755)
%doc README TODO
%dir %{appdir}
-%attr(755,root,root) %{appdir}/CodeEditor
+%attr(755,root,root) %{appdir}/%{name}
%dir %{appdir}/Resources
%{appdir}/Resources/*.desktop
%{appdir}/Resources/*.plist
%dir %{appdir}/%{gscpu}
%dir %{appdir}/%{gscpu}/%{gsos}
%dir %{appdir}/%{gscpu}/%{gsos}/%{libcombo}
-%attr(755,root,root) %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/CodeEditor
+%attr(755,root,root) %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/%{name}
%{appdir}/%{gscpu}/%{gsos}/%{libcombo}/*.openapp
%files libs
%defattr(644,root,root,755)
+%dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle
+%dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu}
+%dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu}/%{gsos}
+%dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu}/%{gsos}/%{libcombo}
+%{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu}/%{gsos}/%{libcombo}/CodeEditorView
+%dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/Resources
+%{_prefix}/System/Library/Bundles/CodeEditorView.bundle/Resources/OpenInWorkspace.tiff
+%{_prefix}/System/Library/Bundles/CodeEditorView.bundle/Resources/Info-gnustep.plist
+%dir %{supportdir}
%dir %{supportdir}/ObjCHandler.bundle
+%dir %{supportdir}/ObjCHandler.bundle/Resources
%{supportdir}/ObjCHandler.bundle/Resources/*.plist
+%dir %{supportdir}/ObjCHandler.bundle/%{gscpu}
+%dir %{supportdir}/ObjCHandler.bundle/%{gscpu}/%{gsos}
+%dir %{supportdir}/ObjCHandler.bundle/%{gscpu}/%{gsos}/%{libcombo}
%{supportdir}/ObjCHandler.bundle/%{gscpu}/%{gsos}/%{libcombo}/ObjCHandler
-%files devel
-%defattr(644,root,root,755)
-%{_libdir}/GNUstep/System/Library/Headers/CodeEditorView/*.h
+#%files devel
+#%defattr(644,root,root,755)
+#%{_prefix}/System/Library/Headers/CodeEditorView