]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable API documentation | |
4 | ||
5 | Summary: The Eye of GNOME image viewer | |
6 | Summary(pl.UTF-8): Oko GNOME - przeglądarka obrazków | |
7 | Summary(pt_BR.UTF-8): Visualizador de imagem Eye of GNOME | |
8 | Name: eog | |
9 | Version: 3.28.0 | |
10 | Release: 1 | |
11 | License: GPL v2+ | |
12 | Group: X11/Applications/Graphics | |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/eog/3.28/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: 0ba26c69809aa01717bc17709b75ee52 | |
15 | Patch0: %{name}-gtk-doc.patch | |
16 | URL: http://www.gnome.org/projects/eog/ | |
17 | BuildRequires: docbook-dtd412-xml | |
18 | BuildRequires: exempi-devel >= 1.99.5 | |
19 | BuildRequires: gdk-pixbuf2-devel >= 2.36.5 | |
20 | BuildRequires: gettext-tools >= 0.19.7 | |
21 | BuildRequires: glib2-devel >= 1:2.54.0 | |
22 | BuildRequires: gnome-common | |
23 | BuildRequires: gnome-desktop-devel >= 3.2.0 | |
24 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
25 | BuildRequires: gsettings-desktop-schemas-devel >= 3.4.0 | |
26 | BuildRequires: gtk+3-devel >= 3.22.0 | |
27 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.16} | |
28 | BuildRequires: lcms2-devel >= 2 | |
29 | BuildRequires: libexif-devel >= 1:0.6.14 | |
30 | BuildRequires: libjpeg-turbo-devel | |
31 | BuildRequires: libpeas-gtk-devel >= 1.0.0 | |
32 | BuildRequires: librsvg-devel >= 2.36.2 | |
33 | BuildRequires: meson >= 0.44.0 | |
34 | BuildRequires: pkgconfig >= 1:0.9.0 | |
35 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
36 | BuildRequires: rpmbuild(macros) >= 1.311 | |
37 | BuildRequires: shared-mime-info >= 0.50 | |
38 | BuildRequires: tar >= 1:1.22 | |
39 | BuildRequires: xorg-lib-libX11-devel | |
40 | BuildRequires: xz | |
41 | BuildRequires: yelp-tools | |
42 | BuildRequires: zlib-devel | |
43 | Requires(post,postun): glib2 >= 1:2.42.0 | |
44 | Requires(post,postun): desktop-file-utils | |
45 | Requires(post,postun): gtk-update-icon-cache | |
46 | Requires: exempi >= 1.99.5 | |
47 | Requires: gdk-pixbuf2 >= 2.36.5 | |
48 | Requires: glib2 >= 1:2.54.0 | |
49 | Requires: gsettings-desktop-schemas >= 3.4.0 | |
50 | Requires: gtk+3 >= 3.22.0 | |
51 | Requires: hicolor-icon-theme | |
52 | Requires: libexif >= 1:0.6.14 | |
53 | Requires: librsvg >= 2.36.2 | |
54 | Requires: shared-mime-info >= 0.50 | |
55 | # sr@Latn vs. sr@latin | |
56 | Conflicts: glibc-misc < 6:2.7 | |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
58 | ||
59 | %description | |
60 | Eye of GNOME is a tool for viewing/cataloging images. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Eye of GNOME (Oko GNOME) jest narzędziem do oglądania i katalogowania | |
64 | obrazków. | |
65 | ||
66 | %description -l pt_BR.UTF-8 | |
67 | Aplicativo para visualizar imagens chamado Eye of GNOME. | |
68 | ||
69 | %package devel | |
70 | Summary: Header files for eog | |
71 | Summary(pl.UTF-8): Pliki nagłówkowe eog | |
72 | Group: X11/Development/Libraries | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | Requires: gtk+3-devel >= 3.22.0 | |
75 | ||
76 | %description devel | |
77 | Header files for eog. | |
78 | ||
79 | %description devel -l pl.UTF-8 | |
80 | Pliki nagłówkowe eog. | |
81 | ||
82 | %package apidocs | |
83 | Summary: Eye of GNOME API documentation | |
84 | Summary(pl.UTF-8): Dokumentacja API Eye of GNOME | |
85 | Group: Documentation | |
86 | Requires: gtk-doc-common | |
87 | %if "%{_rpmversion}" >= "5" | |
88 | BuildArch: noarch | |
89 | %endif | |
90 | ||
91 | %description apidocs | |
92 | Eye of GNOME API documentation. | |
93 | ||
94 | %description apidocs -l pl.UTF-8 | |
95 | Dokumentacja API Eye of GNOME. | |
96 | ||
97 | %prep | |
98 | %setup -q | |
99 | %patch0 -p1 | |
100 | ||
101 | %build | |
102 | %meson build \ | |
103 | -Dgtk_doc=%{?with_apidocs:true}%{!?with_apidocs:false} | |
104 | ||
105 | %meson_build -C build | |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | install -d $RPM_BUILD_ROOT%{_datadir}/eog/plugins | |
110 | ||
111 | %meson_install -C build | |
112 | ||
113 | %find_lang %{name} --with-gnome | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post | |
119 | %update_desktop_database_post | |
120 | %update_icon_cache hicolor | |
121 | %glib_compile_schemas | |
122 | ||
123 | %postun | |
124 | %update_desktop_database_postun | |
125 | %update_icon_cache hicolor | |
126 | %glib_compile_schemas | |
127 | ||
128 | %files -f %{name}.lang | |
129 | %defattr(644,root,root,755) | |
130 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
131 | %attr(755,root,root) %{_bindir}/eog | |
132 | %dir %{_libdir}/eog | |
133 | %dir %{_libdir}/eog/girepository-1.0 | |
134 | %{_libdir}/eog/girepository-1.0/Eog-3.0.typelib | |
135 | %dir %{_libdir}/eog/plugins | |
136 | # buggy soname generation, uses .so.0.0.0 | |
137 | %attr(755,root,root) %{_libdir}/eog/libeog.so* | |
138 | %{_libdir}/eog/plugins/fullscreen.plugin | |
139 | %attr(755,root,root) %{_libdir}/eog/plugins/libfullscreen.so* | |
140 | %{_libdir}/eog/plugins/reload.plugin | |
141 | %attr(755,root,root) %{_libdir}/eog/plugins/libreload.so* | |
142 | %{_libdir}/eog/plugins/statusbar-date.plugin | |
143 | %attr(755,root,root) %{_libdir}/eog/plugins/libstatusbar-date.so* | |
144 | %{_iconsdir}/hicolor/*x*/apps/eog.png | |
145 | %{_iconsdir}/hicolor/scalable/apps/eog-symbolic.svg | |
146 | %{_datadir}/%{name} | |
147 | %{_datadir}/GConf/gsettings/eog.convert | |
148 | %{_datadir}/metainfo/eog.appdata.xml | |
149 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml | |
150 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.gschema.xml | |
151 | %{_desktopdir}/eog.desktop | |
152 | ||
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
155 | %{_includedir}/eog-3.0 | |
156 | %{_pkgconfigdir}/eog.pc | |
157 | ||
158 | %if %{with apidocs} | |
159 | %files apidocs | |
160 | %defattr(644,root,root,755) | |
161 | %{_gtkdocdir}/eog | |
162 | %endif |