]>
Commit | Line | Data |
---|---|---|
4c335c70 | 1 | Summary: Simple image viewer for GNUstep |
d17579f2 | 2 | Summary(pl.UTF-8): Prosta przeglądarka obrazków dla środowiska GNUstep |
4c335c70 | 3 | Name: ImageViewer |
e036635d | 4 | Version: 0.6.3 |
46874187 | 5 | Release: 3 |
4c335c70 | 6 | License: GPL |
aea156da | 7 | Group: X11/Applications/Graphics |
5b050fed | 8 | Source0: http://www.nice.ch/~phip/%{name}-%{version}.tar.gz |
e036635d JB |
9 | # Source0-md5: 89dc35241be2e4c60c80d51adb110c65 |
10 | Patch0: %{name}-pass-arguments.patch | |
c90ce22c | 11 | URL: http://www.nice.ch/~phip/softcorner.html#img |
4c335c70 | 12 | BuildRequires: gnustep-gui-devel >= 0.8.7 |
4c335c70 JB |
13 | Requires: gnustep-gui >= 0.8.7 |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
092c4105 | 16 | %define _prefix /usr/%{_lib}/GNUstep |
4c335c70 JB |
17 | |
18 | %define libcombo gnu-gnu-gnu | |
19 | %define gsos linux-gnu | |
20 | %ifarch %{ix86} | |
21 | %define gscpu ix86 | |
22 | %else | |
23 | # also s/alpha.*/alpha/, but we use only "alpha" arch for now | |
092c4105 | 24 | %define gscpu %(echo %{_target_cpu} | sed -e 's/amd64/x86_64/;s/ppc/powerpc/') |
4c335c70 JB |
25 | %endif |
26 | ||
27 | %description | |
28 | This is ImageViewer, a simple image viewer application for GNUstep. | |
29 | ||
1e37382f JR |
30 | %description -l pl.UTF-8 |
31 | To jest ImageViewer - prosta przeglądarka obrazków dla środowiska | |
4c335c70 JB |
32 | GNUstep. |
33 | ||
34 | %prep | |
e036635d JB |
35 | %setup -q |
36 | %patch0 -p1 | |
4c335c70 JB |
37 | |
38 | %build | |
39 | . %{_prefix}/System/Library/Makefiles/GNUstep.sh | |
40 | %{__make} \ | |
41 | OPTFLAG="%{rpmcflags}" \ | |
42 | messages=yes | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | . %{_prefix}/System/Library/Makefiles/GNUstep.sh | |
47 | ||
48 | %{__make} install \ | |
49 | GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc ChangeLog README | |
57 | %dir %{_prefix}/System/Applications/ImageViewer.app | |
58 | %attr(755,root,root) %{_prefix}/System/Applications/ImageViewer.app/ImageViewer | |
59 | %dir %{_prefix}/System/Applications/ImageViewer.app/Resources | |
60 | %{_prefix}/System/Applications/ImageViewer.app/Resources/*.desktop | |
61 | %{_prefix}/System/Applications/ImageViewer.app/Resources/*.plist | |
62 | %{_prefix}/System/Applications/ImageViewer.app/Resources/*.tiff | |
5b050fed JB |
63 | %{_prefix}/System/Applications/ImageViewer.app/Resources/English.lproj |
64 | %lang(fr) %{_prefix}/System/Applications/ImageViewer.app/Resources/French.lproj | |
65 | %lang(de) %{_prefix}/System/Applications/ImageViewer.app/Resources/German.lproj | |
e036635d | 66 | %lang(hu) %{_prefix}/System/Applications/ImageViewer.app/Resources/Hungarian.lproj |
4c335c70 JB |
67 | %dir %{_prefix}/System/Applications/ImageViewer.app/%{gscpu} |
68 | %dir %{_prefix}/System/Applications/ImageViewer.app/%{gscpu}/%{gsos} | |
69 | %dir %{_prefix}/System/Applications/ImageViewer.app/%{gscpu}/%{gsos}/%{libcombo} | |
70 | %attr(755,root,root) %{_prefix}/System/Applications/ImageViewer.app/%{gscpu}/%{gsos}/%{libcombo}/ImageViewer | |
71 | %{_prefix}/System/Applications/ImageViewer.app/%{gscpu}/%{gsos}/%{libcombo}/*.openapp |