]> git.pld-linux.org Git - SPECS.git/blob - gimageview.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / gimageview.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk1    # use GTK+ 1.2.x instead of 2.x.x
4 #
5 Summary:        Graphic Viewer
6 Summary(pl.UTF-8):      Przeglądarka plików graficznych
7 Name:           gimageview
8 Version:        0.2.27
9 Release:        1
10 License:        GPL
11 Group:          X11/Applications/Multimedia
12 Source0:        http://dl.sourceforge.net/gtkmmviewer/%{name}-%{version}.tar.gz
13 # Source0-md5:  878a272bae2d79c899a597f9d1dd8078
14 Patch0:         %{name}-DESTDIR.patch
15 Patch1:         %{name}-gtk.patch
16 Patch2:         %{name}-desktop.patch
17 URL:            http://www.homa.ne.jp/~ashie/gimageview/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  bzip2-devel
21 BuildRequires:  gettext-devel
22 BuildRequires:  gnome-vfs2-devel
23 BuildRequires:  libjpeg-devel
24 BuildRequires:  libmng-devel
25 BuildRequires:  libpng-devel
26 BuildRequires:  libtool
27 BuildRequires:  libwmf-devel >= 2:0.2.8
28 BuildRequires:  popt-devel
29 BuildRequires:  xine-lib-devel >= 1:1.0
30 BuildRequires:  zlib-devel
31 %if %{with gtk1}
32 BuildRequires:  glib-devel >= 1.2.6
33 BuildRequires:  gnome-libs-devel >= 1.2.8
34 BuildRequires:  gtk+-devel >= 1.2.6
35 BuildRequires:  gdk-pixbuf-devel >= 0.8.0
36 BuildRequires:  librsvg-devel >= 1.0.0
37 BuildRequires:  libxml-devel
38 Requires:       gdk-pixbuf >= 0.8.0
39 Requires:       glib >= 1.2.6
40 Requires:       gtk+ >= 1.2.6
41 %else
42 BuildRequires:  gtk+2-devel >= 1:2.0.0
43 BuildRequires:  librsvg-devel >= 2.0
44 BuildRequires:  pkgconfig
45 %endif
46 Requires:       libwmf >= 2:0.2.8
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %description
50 GImageView is a GTK+ based image viewer. It support tabbed browsing,
51 thumbnail table views, directory tree views, drag and drop, reading
52 thumbnail cache of other famous image viewers, and flexible user
53 interface.
54
55 %description -l pl.UTF-8
56 GImageView to oparta na GTK+ przeglądarka obrazków. Pozwala na
57 przeglądanie z zakładkami, przeglądanie miniaturek i drzew katalogów,
58 obsługuje drag-n-drop, potrafi odczytywać miniaturki z cache innych
59 przeglądarek obrazków i ma elastyczny interfejs użytkownika.
60
61 %prep
62 %setup -q
63 %patch0 -p1 
64 #%patch1 -p1
65 %patch2 -p1
66
67 rm -f m4/{gettext.m4,libtool.m4}
68
69 %build
70 %{__gettextize}
71 %{__libtoolize}
72 %{__aclocal} -I m4
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure \
77         %{!?with_gtk1:--with-gtk2}
78
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT \
86         desktopdir=%{_desktopdir}
87
88 rm -f $RPM_BUILD_ROOT%{_libdir}/gimageview/*/*.la
89
90 %find_lang %{name}
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %files -f %{name}.lang
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog HACKING NEWS README TODO
98 %doc %lang(ja) doc/ja/{ChangeLog,NEWS,README,TODO}.ja
99 %attr(755,root,root) %{_bindir}/gimv
100 %dir %{_datadir}/gimageview
101 %dir %{_datadir}/gimageview/pixmaps
102 %dir %{_datadir}/gimageview/pixmaps/default
103 %{_datadir}/gimageview/pixmaps/default/*.xpm
104 %dir %{_libdir}/gimageview
105 %dir %{_libdir}/gimageview/*
106 %attr(755,root,root) %{_libdir}/gimageview/*/*.so
107 %{_desktopdir}/gimageview.desktop
108 %{_pixmapsdir}/gimv.png
This page took 0.058546 seconds and 3 git commands to generate.