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