1 Summary: Code Editor for Objective C
6 Group: X11/Applications
7 Source0: http://savannah.nongnu.org/download/codeeditor/CodeEditor.pkg/0.4.1/%{name}-%{version}.tar.gz
8 # Source0-md5: 4906152cd85fe0bd8b61ae1b17db9323
9 URL: http://www.nongnu.org/codeeditor/
10 BuildRequires: gnustep-gui-devel >= 0.8.7
11 Requires: gnustep-gui >= 0.8.7
12 Requires: %{name}-libs = %{version}
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define libcombo gnu-gnu-gnu
16 %define gsos linux-gnu
20 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
21 %define gscpu %{_target_cpu}
23 %define appdir %{_libdir}/GNUstep/System/Applications/CodeEditor.app
24 %define supportdir %{_libdir}/GNUstep/System/Library/ApplicationSupport/CodeEditorView
27 This is CodeEditor, a programmer's editor and library for GNUstep
30 Summary: CodeEditorView bundle
31 Group: Development/Tools
34 CodeEditorView bundle for embedding CodeEditor in other apps
37 Summary: CodeEditorView bundle headers
38 Group: Development/Tools
41 CodeEditorView bundle headers
44 %setup -q -n codeeditor
47 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
49 OPTFLAG="%{rpmcflags}" \
53 rm -rf $RPM_BUILD_ROOT
54 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
57 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
66 %attr(755,root,root) %{appdir}/CodeEditor
67 %dir %{appdir}/Resources
68 %{appdir}/Resources/*.desktop
69 %{appdir}/Resources/*.plist
70 %{appdir}/Resources/*.tiff
71 %{appdir}/Resources/*.gorm
72 %{appdir}/Resources/Scripts
73 %dir %{appdir}/%{gscpu}
74 %dir %{appdir}/%{gscpu}/%{gsos}
75 %dir %{appdir}/%{gscpu}/%{gsos}/%{libcombo}
76 %attr(755,root,root) %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/CodeEditor
77 %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/*.openapp
80 %defattr(644,root,root,755)
81 %dir %{supportdir}/ObjCHandler.bundle
82 %{supportdir}/ObjCHandler.bundle/Resources/*.plist
83 %{supportdir}/ObjCHandler.bundle/%{gscpu}/%{gsos}/%{libcombo}/ObjCHandler
86 %defattr(644,root,root,755)
87 %{_libdir}/GNUstep/System/Library/Headers/CodeEditorView/*.h