]>
Commit | Line | Data |
---|---|---|
1 | Summary: FSViewer is a NeXT FileViewer lookalike for Window Maker | |
2 | Summary(pl.UTF-8): FSViewer jest przeglądarką plików dla Window Makera | |
3 | Name: FSViewer | |
4 | Version: 0.2.6 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: X11/Window Managers/Tools | |
8 | Source0: http://www.bayernline.de/~gscholz/linux/fsviewer/fsviewer-app-%{version}.tar.gz | |
9 | # Source0-md5: d3f163768ef6c1631a14779a76bbb9ee | |
10 | Source2: %{name}.desktop | |
11 | Patch0: %{name}-no_libnsl.patch | |
12 | URL: http://www.bayernline.de/~gscholz/linux/fsviewer/ | |
13 | BuildRequires: WindowMaker-devel >= 0.81.0-0.20040321.4 | |
14 | BuildRequires: XFree86-devel | |
15 | BuildRequires: autoconf >= 2.50 | |
16 | BuildRequires: automake | |
17 | BuildRequires: gettext-tools | |
18 | # the rest is required for libwraster (but not all libs from WindowMaker-devel): | |
19 | BuildRequires: Hermes-devel | |
20 | BuildRequires: giflib-devel | |
21 | BuildRequires: libjpeg-devel | |
22 | BuildRequires: libpng >= 1.0.8 | |
23 | BuildRequires: libtiff-devel | |
24 | # the end of libwraster deps | |
25 | Requires: WindowMaker >= 0.70.0 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | # well, WindowMaker-like, not gnustep*-like - because: | |
29 | # - it requires WindowMaker, not gnustep-* | |
30 | # - it doesn't follow gnustep-* hierarchy inside *.app | |
31 | %define gsappsdir %{_libdir}/GNUstep/Apps | |
32 | ||
33 | %description | |
34 | FSViewer is a NeXT FileViewer lookalike for Window Maker. Viewing is | |
35 | currently supported via browser mode. It has been written in C using | |
36 | the WINGs library. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | FSViewer jest przeglądarką plików dla Window Makera wyglądającą jak | |
40 | NeXT FileViewer. | |
41 | ||
42 | %prep | |
43 | %setup -q -n fsviewer-app-%{version} | |
44 | %patch0 -p1 | |
45 | ||
46 | %build | |
47 | %{__gettextize} | |
48 | %{__aclocal} | |
49 | %{__autoconf} | |
50 | %{__autoheader} | |
51 | %{__automake} | |
52 | %configure \ | |
53 | --with-appspath=%{gsappsdir} | |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | install defs/chdef $RPM_BUILD_ROOT%{gsappsdir}/FSViewer.app | |
64 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
65 | ||
66 | %find_lang %{name} | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files -f %{name}.lang | |
72 | %defattr(644,root,root,755) | |
73 | %doc AUTHORS ChangeLog README | |
74 | %dir %{gsappsdir}/FSViewer.app | |
75 | %attr(755,root,root) %{gsappsdir}/FSViewer.app/FSViewer | |
76 | %attr(755,root,root) %{gsappsdir}/FSViewer.app/chdef | |
77 | %{gsappsdir}/FSViewer.app/MagicFiles | |
78 | %{gsappsdir}/FSViewer.app/xpm | |
79 | %{gsappsdir}/FSViewer.app/tiff | |
80 | %{_desktopdir}/FSViewer.desktop | |
81 | %{_mandir}/man1/chdef.1x.* | |
82 | %{_mandir}/man1/fsviewer.1x.* |