]>
Commit | Line | Data |
---|---|---|
07ee3ab6 | 1 | Summary: Code Editor for Objective C |
e840b2db | 2 | Summary(pl.UTF-8): Edytor kodu dla języka Objective C |
07ee3ab6 | 3 | Name: CodeEditor |
e0812ce9 | 4 | Version: 0.4.4 |
66e125f5 | 5 | Release: 5 |
07ee3ab6 | 6 | License: GPL |
7 | Group: X11/Applications | |
e0812ce9 | 8 | Source0: http://savannah.nongnu.org/download/codeeditor/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 396cc3b9a51a7f045fe53800c98723e0 | |
66e125f5 | 10 | Patch0: %{name}-pass-arguments.patch |
07ee3ab6 | 11 | URL: http://www.nongnu.org/codeeditor/ |
12 | BuildRequires: gnustep-gui-devel >= 0.8.7 | |
13 | Requires: gnustep-gui >= 0.8.7 | |
7b70b749 | 14 | Requires: %{name}-libs = %{version}-%{release} |
07ee3ab6 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
c9bc4a0c | 17 | %define _prefix /usr/%{_lib}/GNUstep |
e0812ce9 | 18 | |
07ee3ab6 | 19 | %define libcombo gnu-gnu-gnu |
20 | %define gsos linux-gnu | |
21 | %ifarch %{ix86} | |
22 | %define gscpu ix86 | |
23 | %else | |
24 | # also s/alpha.*/alpha/, but we use only "alpha" arch for now | |
a6e5f98b | 25 | %define gscpu %(echo %{_target_cpu} | sed -e 's/amd64/x86_64/;s/ppc/powerpc/') |
07ee3ab6 | 26 | %endif |
c9bc4a0c | 27 | %define appdir %{_prefix}/System/Applications/CodeEditor.app |
28 | %define supportdir %{_prefix}/System/Library/ApplicationSupport/CodeEditorView | |
07ee3ab6 | 29 | |
30 | %description | |
99237adb | 31 | CodeEditor is a programmer's editor and library for GNUstep. |
9359d325 | 32 | |
ced446a3 JR |
33 | %description -l pl.UTF-8 |
34 | CodeEditor jest edytorem programisty i biblioteką dla GNUstepa. | |
07ee3ab6 | 35 | |
36 | %package libs | |
a9abc1b0 | 37 | Summary: CodeEditorView bundle |
e840b2db | 38 | Summary(pl.UTF-8): Paczka CodeEditorView |
a9abc1b0 | 39 | Group: Development/Tools |
07ee3ab6 | 40 | |
41 | %description libs | |
9359d325 JB |
42 | CodeEditorView bundle for embedding CodeEditor in other apps. |
43 | ||
ced446a3 | 44 | %description libs -l pl.UTF-8 |
9359d325 | 45 | Paczka CodeEditorView do osadzania CodeEditora w innych aplikacjach. |
07ee3ab6 | 46 | |
47 | %package devel | |
a9abc1b0 | 48 | Summary: CodeEditorView bundle headers |
e840b2db | 49 | Summary(pl.UTF-8): Pliki nagłówkowe paczki CodeEditorView |
a9abc1b0 | 50 | Group: Development/Tools |
7b70b749 | 51 | Requires: %{name}-libs = %{version}-%{release} |
07ee3ab6 | 52 | |
53 | %description devel | |
9359d325 JB |
54 | CodeEditorView bundle headers. |
55 | ||
ced446a3 JR |
56 | %description devel -l pl.UTF-8 |
57 | Pliki nagłówkowe paczki CodeEditorView. | |
07ee3ab6 | 58 | |
59 | %prep | |
e0812ce9 | 60 | %setup -q -n CodeEditor |
66e125f5 | 61 | %patch0 -p1 |
07ee3ab6 | 62 | |
63 | %build | |
e0812ce9 | 64 | . %{_prefix}/System/Library/Makefiles/GNUstep.sh |
07ee3ab6 | 65 | %{__make} \ |
66 | OPTFLAG="%{rpmcflags}" \ | |
67 | messages=yes | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
e0812ce9 | 71 | . %{_prefix}/System/Library/Makefiles/GNUstep.sh |
07ee3ab6 | 72 | |
73 | %{__make} install \ | |
e0812ce9 | 74 | GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System |
07ee3ab6 | 75 | |
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc README TODO | |
99bd5486 | 82 | %dir %{appdir} |
a1de5727 | 83 | %attr(755,root,root) %{appdir}/%{name} |
99bd5486 | 84 | %dir %{appdir}/Resources |
85 | %{appdir}/Resources/*.desktop | |
86 | %{appdir}/Resources/*.plist | |
87 | %{appdir}/Resources/*.tiff | |
88 | %{appdir}/Resources/*.gorm | |
89 | %{appdir}/Resources/Scripts | |
90 | %dir %{appdir}/%{gscpu} | |
91 | %dir %{appdir}/%{gscpu}/%{gsos} | |
92 | %dir %{appdir}/%{gscpu}/%{gsos}/%{libcombo} | |
a1de5727 | 93 | %attr(755,root,root) %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/%{name} |
99bd5486 | 94 | %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/*.openapp |
07ee3ab6 | 95 | |
96 | %files libs | |
a9abc1b0 | 97 | %defattr(644,root,root,755) |
e0812ce9 | 98 | %dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle |
99 | %dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu} | |
100 | %dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu}/%{gsos} | |
101 | %dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu}/%{gsos}/%{libcombo} | |
102 | %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/%{gscpu}/%{gsos}/%{libcombo}/CodeEditorView | |
103 | %dir %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/Resources | |
104 | %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/Resources/OpenInWorkspace.tiff | |
105 | %{_prefix}/System/Library/Bundles/CodeEditorView.bundle/Resources/Info-gnustep.plist | |
9359d325 | 106 | %dir %{supportdir} |
99bd5486 | 107 | %dir %{supportdir}/ObjCHandler.bundle |
9359d325 | 108 | %dir %{supportdir}/ObjCHandler.bundle/Resources |
99bd5486 | 109 | %{supportdir}/ObjCHandler.bundle/Resources/*.plist |
9359d325 JB |
110 | %dir %{supportdir}/ObjCHandler.bundle/%{gscpu} |
111 | %dir %{supportdir}/ObjCHandler.bundle/%{gscpu}/%{gsos} | |
112 | %dir %{supportdir}/ObjCHandler.bundle/%{gscpu}/%{gsos}/%{libcombo} | |
99bd5486 | 113 | %{supportdir}/ObjCHandler.bundle/%{gscpu}/%{gsos}/%{libcombo}/ObjCHandler |
07ee3ab6 | 114 | |
e0812ce9 | 115 | #%files devel |
116 | #%defattr(644,root,root,755) | |
117 | #%{_prefix}/System/Library/Headers/CodeEditorView |