]>
Commit | Line | Data |
---|---|---|
bd566ca4 | 1 | Summary: Previewer for GNUstep |
2 | Name: ViewIt | |
3 | Version: 0.5 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: X11/Applications/Graphics | |
7 | Source0: http://mac.wms-network.de/gnustep/viewit/%{name}-%{version}.tar.gz | |
8 | URL: http://mac.wms-network.de/gnustep/viewit/viewit.html | |
9 | BuildRequires: gnustep-gui-devel >= 0.8.7 | |
10 | Requires: gnustep-gui >= 0.8.7 | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %define libcombo gnu-gnu-gnu | |
14 | %define gsos linux-gnu | |
15 | %ifarch %{ix86} | |
16 | %define gscpu ix86 | |
17 | %else | |
18 | # also s/alpha.*/alpha/, but we use only "alpha" arch for now | |
19 | %define gscpu %{_target_cpu} | |
20 | %endif | |
21 | %define appdir %{_libdir}/GNUstep/System/Applications/CodeEditor.app | |
22 | %define supportdir %{_libdir}/GNUstep/System/Library/ApplicationSupport/CodeEditorView | |
23 | ||
24 | %description | |
25 | ViewIt, is a simple file previewer application for GNUstep. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{name} | |
29 | ||
30 | %build | |
31 | . %{_libdir}/GNUstep/System/Library/Makefiles/GNUstep.sh | |
32 | %{__make} \ | |
33 | OPTFLAG="%{rpmcflags}" \ | |
34 | messages=yes | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | . %{_prefix}/System/Library/Makefiles/GNUstep.sh | |
39 | ||
40 | %{__make} install \ | |
41 | GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_libdir}/GNUstep/System | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc ChangeLog README | |
49 | %dir %{appdir} | |
50 | %attr(755,root,root) %{appdir}/%{name} | |
51 | %dir %{_prefix}/System/Applications/ImageViewer.app/Resources | |
52 | %dir %{appdir}/Resources | |
53 | %{appdir}/Resources/*.desktop | |
54 | %{appdir}/Resources/*.plist | |
55 | %{appdir}/Resources/*.tiff | |
56 | %{appdir}/Resources/*.gorm | |
57 | %{appdir}/Resources/Scripts | |
58 | %dir %{appdir}/%{gscpu} | |
59 | %dir %{appdir}/%{gscpu}/%{gsos} | |
60 | %dir %{appdir}/%{gscpu}/%{gsos}/%{libcombo} | |
61 | %attr(755,root,root) %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/%{name} | |
62 | %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/*.openapp |