]> git.pld-linux.org Git - packages/CodeEditor.git/blobdiff - CodeEditor.spec
- added pass-arguments patch, release 5
[packages/CodeEditor.git] / CodeEditor.spec
index 3ad3ae9f0085abb8e96e9bd75241eeae42eadfbf..f23e7f9e6cbc16513c75e874ef6d014757d15912 100644 (file)
@@ -1,28 +1,31 @@
 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:       5
 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
+Patch0:                %{name}-pass-arguments.patch
 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
 CodeEditor is a programmer's editor and library for GNUstep.
@@ -45,7 +48,7 @@ Paczka CodeEditorView do osadzania CodeEditora w innych aplikacjach.
 Summary:       CodeEditorView bundle headers
 Summary(pl):   Pliki nag³ówkowe paczki CodeEditorView
 Group:         Development/Tools
-Requires:      %{name}-libs = %{version}
+Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
 CodeEditorView bundle headers.
@@ -54,20 +57,21 @@ CodeEditorView bundle headers.
 Pliki nag³ówkowe paczki CodeEditorView.
 
 %prep
-%setup -q -n codeeditor
+%setup -q -n CodeEditor
+%patch0 -p1
 
 %build
-. %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
+. %{_prefix}/System/Library/Makefiles/GNUstep.sh
 %{__make} \
        OPTFLAG="%{rpmcflags}" \
        messages=yes
 
 %install
 rm -rf $RPM_BUILD_ROOT
-. %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh
+. %{_prefix}/System/Library/Makefiles/GNUstep.sh
 
 %{__make} install \
-       GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_libdir}/GNUstep/System
+       GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -91,6 +95,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
@@ -100,6 +112,6 @@ rm -rf $RPM_BUILD_ROOT
 %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
+#%files devel
+#%defattr(644,root,root,755)
+#%{_prefix}/System/Library/Headers/CodeEditorView
This page took 0.057966 seconds and 4 git commands to generate.