]> git.pld-linux.org Git - packages/gthumb.git/blob - gthumb.spec
- added libraw patch (fix for libraw 0.21.x); release 4
[packages/gthumb.git] / gthumb.spec
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:        3.12.2
5 Release:        4
6 License:        GPL v2+
7 Group:          X11/Applications/Graphics
8 Source0:        https://download.gnome.org/sources/gthumb/3.12/%{name}-%{version}.tar.xz
9 # Source0-md5:  6bb8246244cdd87c8f041a1e86e144b1
10 Patch0:         %{name}-libraw.patch
11 URL:            https://wiki.gnome.org/Apps/Gthumb
12 BuildRequires:  bison
13 BuildRequires:  brasero-devel >= 3.2.0
14 BuildRequires:  clutter-devel >= 1.12.0
15 BuildRequires:  clutter-gtk-devel >= 1.0.0
16 BuildRequires:  colord-devel >= 1.3
17 BuildRequires:  docbook-dtd412-xml
18 BuildRequires:  exiv2-devel >= 0.21
19 BuildRequires:  flex
20 BuildRequires:  gettext-tools
21 BuildRequires:  glib2-devel >= 1:2.54.0
22 BuildRequires:  gsettings-desktop-schemas-devel
23 BuildRequires:  gstreamer-devel >= 1.0.0
24 BuildRequires:  gstreamer-plugins-base-devel >= 1.0.0
25 BuildRequires:  gtk+3-devel >= 3.16
26 # webkit2gtk-4.0 or webkit2-3.0; libsoup3 is not supported yet
27 BuildRequires:  gtk-webkit4-devel >= 1.10.0
28 BuildRequires:  json-glib-devel >= 0.16
29 BuildRequires:  lcms2-devel >= 2.6
30 BuildRequires:  libchamplain-devel >= 0.12
31 BuildRequires:  libheif-devel >= 1.11
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  libjxl-devel >= 0.3.0
34 BuildRequires:  libpng-devel
35 BuildRequires:  libraw-devel >= 0.14
36 BuildRequires:  librsvg-devel >= 2.34.0
37 BuildRequires:  libsecret-devel >= 0.11
38 BuildRequires:  libsoup-devel >= 2.42
39 BuildRequires:  libstdc++-devel >= 6:4.7
40 BuildRequires:  libtiff-devel
41 BuildRequires:  libtool >= 2:2
42 BuildRequires:  libwebp-devel >= 0.2.0
43 BuildRequires:  meson >= 0.43
44 BuildRequires:  ninja >= 1.5
45 BuildRequires:  pkgconfig
46 BuildRequires:  rpmbuild(find_lang) >= 1.23
47 BuildRequires:  rpmbuild(macros) >= 1.736
48 BuildRequires:  tar >= 1:1.22
49 BuildRequires:  xz >= 1:4.999.7
50 BuildRequires:  yelp-tools
51 BuildRequires:  zlib-devel
52 Requires(post,postun):  desktop-file-utils
53 Requires(post,postun):  glib2 >= 1:2.54.0
54 Requires(post,postun):  gtk-update-icon-cache
55 Requires(post,postun):  hicolor-icon-theme
56 Requires:       brasero-libs >= 3.2.0
57 Requires:       clutter >= 1.12.0
58 Requires:       colord >= 1.3
59 Requires:       exiv2-libs >= 0.21
60 Requires:       glib2 >= 1:2.54.0
61 Requires:       gsettings-desktop-schemas
62 Requires:       gtk+3 >= 3.16
63 Requires:       gtk-webkit4 >= 1.10.0
64 Requires:       hicolor-icon-theme
65 Requires:       json-glib >= 0.16
66 Requires:       lcms2 >= 2.6
67 Requires:       libchamplain >= 0.12
68 Requires:       libjxl >= 0.3.0
69 Requires:       librsvg >= 2.34.0
70 Requires:       libsecret >= 0.11
71 Requires:       libsoup >= 2.42
72 Requires:       libwebp >= 0.2.0
73 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
74
75 %description
76 gThumb lets you browse your hard disk, showing you thumbnails of image
77 files. It also lets you view single files (including GIF animations),
78 add comments to images, organize images in catalogs, print images,
79 view slideshows, set your desktop background, and more.
80
81 %description -l pl.UTF-8
82 gThumb pozwala na przeglądanie twardego dysku z pokazywaniem
83 miniaturek plików z obrazkami. Pozwala także oglądać pojedyncze pliki
84 (w tym animacje GIF), dodawać komentarze do obrazków, układać obrazki
85 w katalogi, drukować obrazki, oglądać slajdy, ustawiać tło biurka itd.
86
87 %package devel
88 Summary:        gThumb development files
89 Summary(pl.UTF-8):      Pliki programistyczne gThumb
90 Group:          X11/Development/Libraries
91 Requires:       gtk+3-devel >= 3.16
92
93 %description devel
94 This package provides header files for developing gThumb extensions.
95
96 %description devel -l pl.UTF-8
97 Ten pakiet dostarcza pliki nagłówkowe potrzebne do rozwijania
98 rozszerzeń gThumb.
99
100 %prep
101 %setup -q
102 %patch0 -p1
103
104 %build
105 %meson build \
106         -Dlibchamplain=true
107
108 %ninja_build -C build
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112
113 %ninja_install -C build
114
115 %find_lang %{name} --with-gnome
116
117 %clean
118 rm -rf $RPM_BUILD_ROOT
119
120 %post
121 %glib_compile_schemas
122 %update_desktop_database_post
123 %update_icon_cache hicolor
124
125 %postun
126 %glib_compile_schemas
127 %update_desktop_database_postun
128 %update_icon_cache hicolor
129
130 %files -f %{name}.lang
131 %defattr(644,root,root,755)
132 %doc AUTHORS MAINTAINERS NEWS README.md
133 %attr(755,root,root) %{_bindir}/gthumb
134 %dir %{_libdir}/%{name}
135 %dir %{_libdir}/%{name}/extensions
136 %attr(755,root,root) %{_libdir}/%{name}/extensions/*.so
137 %{_libdir}/%{name}/extensions/*.extension
138 %{_datadir}/%{name}
139 %{_datadir}/glib-2.0/schemas/org.gnome.gthumb.enums.xml
140 %{_datadir}/glib-2.0/schemas/org.gnome.gthumb.gschema.xml
141 %{_datadir}/glib-2.0/schemas/org.gnome.gthumb.*.gschema.xml
142 %{_datadir}/metainfo/org.gnome.gThumb.appdata.xml
143 %{_desktopdir}/org.gnome.gThumb.desktop
144 %{_desktopdir}/org.gnome.gThumb.Import.desktop
145 %{_iconsdir}/hicolor/*x*/apps/org.gnome.gThumb.png
146 # XXX: wrong dir
147 %{_iconsdir}/hicolor/16x16/apps/org.gnome.gThumb-symbolic.svg
148 %{_iconsdir}/hicolor/scalable/apps/org.gnome.gThumb.svg
149 %{_mandir}/man1/gthumb.1*
150
151 %files devel
152 %defattr(644,root,root,755)
153 %{_includedir}/gthumb
154 %{_pkgconfigdir}/gthumb.pc
155 %{_aclocaldir}/gthumb.m4
This page took 0.061898 seconds and 3 git commands to generate.