]> git.pld-linux.org Git - packages/ViewIt.git/blob - ViewIt.spec
- fixes to %files
[packages/ViewIt.git] / ViewIt.spec
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 # Source0-md5:  217309a8f51a804b18200da03a0f892d
9 URL:            http://mac.wms-network.de/gnustep/viewit/viewit.html
10 BuildRequires:  gnustep-gui-devel >= 0.8.7
11 Requires:       gnustep-gui >= 0.8.7
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %define         libcombo        gnu-gnu-gnu
15 %define         gsos            linux-gnu
16 %ifarch %{ix86}
17 %define         gscpu           ix86
18 %else
19 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
20 %define         gscpu           %{_target_cpu}
21 %endif
22 %define appdir     %{_libdir}/GNUstep/System/Applications/%{name}.app
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 . %{_libdir}/GNUstep/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 %{appdir}/Resources
52 %{appdir}/Resources/*.desktop
53 %{appdir}/Resources/*.plist
54 %{appdir}/Resources/*.tiff
55 %{appdir}/Resources/*.gorm
56 #%{appdir}/Resources/Scripts
57 %dir %{appdir}/%{gscpu}
58 %dir %{appdir}/%{gscpu}/%{gsos}
59 %dir %{appdir}/%{gscpu}/%{gsos}/%{libcombo}
60 %attr(755,root,root) %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/%{name}
61 %{appdir}/%{gscpu}/%{gsos}/%{libcombo}/*.openapp
62 %attr(755,root,root) %{_libdir}/GNUstep/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/*
This page took 0.758027 seconds and 3 git commands to generate.