]>
Commit | Line | Data |
---|---|---|
1 | Summary: An image viewer and browser for GNOME | |
2 | Summary(pl.UTF-8): Przeglądarka obrazków dla GNOME | |
3 | Name: gthumb | |
4 | Version: 2.10.12 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: X11/Applications/Graphics | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gthumb/2.10/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: a9037ce99e62069e2977243a364074b3 | |
10 | Patch0: %{name}-desktop.patch | |
11 | URL: http://gthumb.sourceforge.net/ | |
12 | BuildRequires: GConf2-devel >= 2.20.0 | |
13 | BuildRequires: ORBit2-devel >= 1:2.14.9 | |
14 | BuildRequires: autoconf >= 2.52 | |
15 | BuildRequires: automake | |
16 | BuildRequires: docbook-dtd412-xml | |
17 | BuildRequires: gettext-devel | |
18 | BuildRequires: gnome-common >= 2.20.0 | |
19 | BuildRequires: gnome-doc-utils >= 0.12.0 | |
20 | BuildRequires: gnome-vfs2-devel >= 2.20.0 | |
21 | BuildRequires: gtk+2-devel >= 2:2.12.3 | |
22 | BuildRequires: intltool >= 0.35.5 | |
23 | BuildRequires: libexif-devel >= 1:0.6.13 | |
24 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
25 | BuildRequires: libgnomeui-devel >= 2.20.1 | |
26 | BuildRequires: libgphoto2-devel >= 2.2.1 | |
27 | BuildRequires: libiptcdata-devel >= 0.2.1 | |
28 | BuildRequires: libjpeg-devel | |
29 | BuildRequires: libopenraw-gnome-devel >= 0.0.2 | |
30 | BuildRequires: libpng-devel | |
31 | BuildRequires: libtiff-devel | |
32 | BuildRequires: libtool | |
33 | BuildRequires: libxml2-devel >= 1:2.6.30 | |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
36 | BuildRequires: rpmbuild(macros) >= 1.311 | |
37 | BuildRequires: scrollkeeper | |
38 | BuildRequires: sed >= 4.0 | |
39 | BuildRequires: xorg-lib-libXxf86vm-devel | |
40 | Requires(post,postun): desktop-file-utils | |
41 | Requires(post,postun): gtk+2 | |
42 | Requires(post,postun): scrollkeeper | |
43 | Requires(post,preun): GConf2 | |
44 | Requires: gtk+2 >= 2:2.12.0 | |
45 | Requires: hicolor-icon-theme | |
46 | # sr@Latn vs. sr@latin | |
47 | Conflicts: glibc-misc < 6:2.7 | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | gThumb lets you browse your hard disk, showing you thumbnails of image | |
52 | files. It also lets you view single files (including GIF animations), | |
53 | add comments to images, organize images in catalogs, print images, | |
54 | view slideshows, set your desktop background, and more. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | gThumb pozwala na przeglądanie twardego dysku z pokazywaniem | |
58 | miniaturek plików z obrazkami. Pozwala także oglądać pojedyncze pliki | |
59 | (w tym animacje GIF), dodawać komentarze do obrazków, układać obrazki | |
60 | w katalogi, drukować obrazki, oglądać slajdy, ustawiać tło biurka itd. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | %patch0 -p1 | |
65 | ||
66 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS | |
67 | mv -f po/sr@{Latn,latin}.po | |
68 | ||
69 | %build | |
70 | %{__gnome_doc_common} | |
71 | %{__intltoolize} | |
72 | %{__libtoolize} | |
73 | %{__aclocal} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
76 | %{__autoconf} | |
77 | %configure \ | |
78 | --disable-scrollkeeper \ | |
79 | --disable-schemas-install | |
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
88 | rm -f $RPM_BUILD_ROOT%{_libdir}/libgthumb.{a,la} | |
89 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/*.{a,la} | |
90 | rm -rf $RPM_BUILD_ROOT%{_datadir}/application-registry | |
91 | ||
92 | %find_lang %{name} --with-gnome --with-omf --all-name | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post | |
98 | %gconf_schema_install gthumb.schemas | |
99 | %scrollkeeper_update_post | |
100 | %update_desktop_database_post | |
101 | %update_icon_cache hicolor | |
102 | ||
103 | %preun | |
104 | %gconf_schema_uninstall gthumb.schemas | |
105 | ||
106 | %postun | |
107 | %scrollkeeper_update_postun | |
108 | %update_desktop_database_postun | |
109 | %update_icon_cache hicolor | |
110 | ||
111 | %files -f %{name}.lang | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS ChangeLog NEWS README | |
114 | %attr(755,root,root) %{_bindir}/* | |
115 | %attr(755,root,root) %{_libdir}/libgthumb.so | |
116 | %{_libdir}/bonobo/servers/*.server | |
117 | %dir %{_libdir}/%{name} | |
118 | %dir %{_libdir}/%{name}/modules | |
119 | %attr(755,root,root) %{_libdir}/%{name}/modules/*.so | |
120 | %{_datadir}/%{name} | |
121 | %{_mandir}/man1/%{name}.1* | |
122 | %{_sysconfdir}/gconf/schemas/gthumb.schemas | |
123 | %{_iconsdir}/hicolor/*/apps/*.png | |
124 | %{_desktopdir}/%{name}.desktop |