]>
Commit | Line | Data |
---|---|---|
00ec5638 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gegl # build without GeGL | |
ebd2a559 | 4 | %bcond_without openmp # OpenMP threading support |
61e3dd9c JB |
5 | %bcond_without opencl # OpenCL support |
6 | %bcond_with vte # lighttable mode shell ("file manager" April fool) | |
00ec5638 | 7 | |
61e3dd9c JB |
8 | Summary: darktable - a virtual lighttable and darkroom for photographers |
9 | Summary(pl.UTF-8): darktable - wirtualny podświetlany stół i ciemnia dla fotografów | |
5fd336e1 | 10 | Name: darktable |
1765801c | 11 | Version: 4.4.2 |
afca997c | 12 | Release: 1 |
5fd336e1 | 13 | License: GPL v3 |
14 | Group: X11/Applications/Graphics | |
ecf9bd41 | 15 | Source0: https://github.com/darktable-org/darktable/releases/download/release-%{version}/%{name}-%{version}.tar.xz |
1765801c | 16 | # Source0-md5: bd26c23a2890728966dbf66ed443fee6 |
e1693723 | 17 | URL: https://www.darktable.org/ |
dcfc9a0f | 18 | BuildRequires: GraphicsMagick-devel |
61e3dd9c | 19 | %{?with_opencl:BuildRequires: OpenCL-devel} |
fccdb72a | 20 | BuildRequires: OpenEXR-devel >= 3.0 |
61e3dd9c | 21 | BuildRequires: OpenGL-devel |
afca997c | 22 | BuildRequires: SDL2-devel >= 2.0 |
00ec5638 | 23 | BuildRequires: cairo-devel |
bfca7052 | 24 | BuildRequires: cmake >= 3.10 |
dcfc9a0f | 25 | BuildRequires: colord-devel |
e1693723 KM |
26 | BuildRequires: colord-gtk-devel |
27 | BuildRequires: cups-devel | |
fccdb72a | 28 | BuildRequires: curl-devel >= 7.56.0 |
00ec5638 ER |
29 | BuildRequires: dbus-glib-devel >= 0.80 |
30 | BuildRequires: desktop-file-utils | |
afca997c | 31 | BuildRequires: exiftool |
bfca7052 | 32 | BuildRequires: exiv2-devel >= 0.27.4 |
00ec5638 ER |
33 | BuildRequires: flickcurl-devel |
34 | BuildRequires: fop | |
ebd2a559 | 35 | %{?with_openmp:BuildRequires: gcc-c++ >= 6:4.3} |
61e3dd9c JB |
36 | BuildRequires: gdk-pixbuf2-devel >= 2 |
37 | %{?with_gegl:BuildRequires: gegl-devel} | |
00ec5638 | 38 | BuildRequires: gettext |
07bc9e86 | 39 | BuildRequires: gettext-tools |
bfca7052 | 40 | BuildRequires: glib2-devel >= 1:2.40 |
00ec5638 | 41 | BuildRequires: gnome-doc-utils |
afca997c | 42 | BuildRequires: gtk+3-devel >= 3.24.15 |
1b81dcba | 43 | BuildRequires: intltool |
e1693723 | 44 | BuildRequires: iso-codes >= 4.4 |
61e3dd9c JB |
45 | BuildRequires: json-glib-devel |
46 | BuildRequires: lcms2-devel >= 2 | |
5fd336e1 | 47 | BuildRequires: lensfun-devel |
bfca7052 | 48 | BuildRequires: libavif-devel >= 0.7.2 |
5fd336e1 | 49 | BuildRequires: libglade2-devel |
50 | BuildRequires: libgnome-keyring-devel | |
ebd2a559 | 51 | %{?with_openmp:BuildRequires: libgomp-devel} |
afca997c KM |
52 | BuildRequires: libgphoto2-devel >= 2.5 |
53 | BuildRequires: libicu-devel | |
5fd336e1 | 54 | BuildRequires: libjpeg-devel |
afca997c | 55 | BuildRequires: libjxl-devel >= 0.7.0 |
00ec5638 ER |
56 | BuildRequires: libpng-devel |
57 | BuildRequires: librsvg-devel >= 1:2.26 | |
afca997c | 58 | BuildRequires: libsecret-devel |
61e3dd9c | 59 | BuildRequires: libsoup-devel >= 2 |
5fd336e1 | 60 | BuildRequires: libtiff-devel |
61e3dd9c | 61 | BuildRequires: libwebp-devel >= 0.3.0 |
afca997c | 62 | BuildRequires: libwebp-devel >= 0.3.0 |
61e3dd9c JB |
63 | BuildRequires: libxml2-devel >= 1:2.6 |
64 | BuildRequires: libxml2-progs | |
65 | BuildRequires: libxslt-progs | |
e1693723 | 66 | BuildRequires: llvm-devel >= 12.0 |
da1a81de | 67 | BuildRequires: lua54-devel >= 5.4 |
61e3dd9c | 68 | BuildRequires: openjpeg-devel >= 1.5.0 |
61e3dd9c | 69 | BuildRequires: pango-devel |
ecf9bd41 | 70 | BuildRequires: perl-tools-pod |
61e3dd9c | 71 | BuildRequires: pkgconfig >= 1:0.22 |
e1693723 KM |
72 | BuildRequires: po4a |
73 | BuildRequires: pugixml-devel >= 1.8 | |
bfca7052 | 74 | BuildRequires: python3-jsonschema |
e1693723 | 75 | BuildRequires: sqlite3-devel >= 3.24 |
61e3dd9c JB |
76 | BuildRequires: squish-devel |
77 | %{?with_vte:BuildRequires: vte-devel >= 0.26.0} | |
a3e07e2a AF |
78 | Requires(post,postun): gtk-update-icon-cache |
79 | Requires(post,postun): hicolor-icon-theme | |
afca997c | 80 | Requires: curl >= 7.56 |
61e3dd9c | 81 | Requires: dbus-glib >= 0.80 |
afca997c | 82 | Requires: exiftool |
61e3dd9c | 83 | Requires: glib2 >= 1:2.30 |
afca997c | 84 | Requires: gtk+3 >= 3.24.15 |
61e3dd9c JB |
85 | Requires: openjpeg >= 1.5.0 |
86 | %{?with_vte:Requires: vte >= 0.26.0} | |
9cadc924 | 87 | ExclusiveArch: %{x8664} |
5fd336e1 | 88 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
89 | ||
90 | %description | |
61e3dd9c | 91 | darktable is a virtual lighttable and darkroom for photographers. |
5fd336e1 | 92 | |
93 | %description -l pl.UTF-8 | |
61e3dd9c | 94 | darktable to wirtualny podświetlany stół i ciemnia dla fotografów. |
5fd336e1 | 95 | |
96 | %prep | |
97 | %setup -q | |
98 | ||
99 | %build | |
00ec5638 ER |
100 | install -d build |
101 | cd build | |
ecf9bd41 | 102 | export CXXFLAGS="%{rpmcxxflags}" |
61e3dd9c | 103 | %cmake .. \ |
ecf9bd41 | 104 | -DCMAKE_BUILD_TYPE=%{!?debug:RELEASE}%{?debug:DEBUG} \ |
61e3dd9c JB |
105 | %{?with_vte:-DAPRIL_FOOLS=ON} \ |
106 | -DBINARY_PACKAGE_BUILD=ON \ | |
e1693723 | 107 | -DPROJECT_VERSION:STRING="%{version}" \ |
5f04b396 | 108 | -DUSE_AVIF=OFF \ |
2b66b8ce | 109 | -DTESTBUILD_OPENCL_PROGRAMS=OFF \ |
61e3dd9c | 110 | %{!?with_opencl:-DUSE_OPENCL=OFF} \ |
ebd2a559 | 111 | %{!?with_openmp:-DUSE_OPENMP=OFF} |
5fd336e1 | 112 | |
113 | %{__make} | |
114 | ||
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
e1693723 KM |
117 | install -d $RPM_BUILD_ROOT/etc/ld.so.conf.d |
118 | echo "%{_libdir}/%{name}" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}.conf | |
00ec5638 | 119 | %{__make} -C build install \ |
5fd336e1 | 120 | DESTDIR=$RPM_BUILD_ROOT |
121 | ||
ecf9bd41 | 122 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
298f8009 | 123 | |
afca997c KM |
124 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{en@truecase,en} |
125 | ||
5fd336e1 | 126 | %find_lang %{name} --with-gnome --with-omf |
127 | ||
128 | %clean | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %post | |
e1693723 | 132 | /sbin/ldconfig |
5fd336e1 | 133 | %update_desktop_database_post |
134 | %update_icon_cache hicolor | |
5fd336e1 | 135 | |
bfca7052 | 136 | %banner %{name} -e << EOF |
0df89444 KM |
137 | ===================================================================== |
138 | ||
afca997c | 139 | When updating from the stable 4.2.x series, please bear in mind that |
bfca7052 | 140 | your edits will be preserved during this process, but the new library |
afca997c | 141 | and configuration will no longer be usable with 4.2.x. |
bfca7052 KM |
142 | |
143 | You are strongly advised to take a backup first. | |
144 | ||
0df89444 | 145 | ===================================================================== |
bfca7052 KM |
146 | EOF |
147 | ||
5fd336e1 | 148 | %postun |
e1693723 | 149 | /sbin/ldconfig |
5fd336e1 | 150 | %update_desktop_database_postun |
151 | %update_icon_cache hicolor | |
5fd336e1 | 152 | |
153 | %files -f %{name}.lang | |
154 | %defattr(644,root,root,755) | |
ecf9bd41 JR |
155 | %doc AUTHORS CONTRIBUTING.md README.md RELEASE_NOTES.md |
156 | %doc doc/{TRANSLATORS.md,grouping.txt,thumbnail_color_management.txt} | |
00ec5638 | 157 | %attr(755,root,root) %{_bindir}/darktable |
ecf9bd41 | 158 | %attr(755,root,root) %{_bindir}/darktable-chart |
fcbf7643 | 159 | %attr(755,root,root) %{_bindir}/darktable-cli |
00ec5638 | 160 | %attr(755,root,root) %{_bindir}/darktable-cltest |
ecf9bd41 JR |
161 | %attr(755,root,root) %{_bindir}/darktable-cmstest |
162 | %attr(755,root,root) %{_bindir}/darktable-generate-cache | |
163 | %attr(755,root,root) %{_bindir}/darktable-rs-identify | |
e1693723 | 164 | /etc/ld.so.conf.d/%{name}.conf |
0df89444 | 165 | %{_datadir}/metainfo/org.darktable.darktable.appdata.xml |
5fd336e1 | 166 | %{_datadir}/darktable |
0df89444 | 167 | %{_desktopdir}/org.darktable.darktable.desktop |
5fd336e1 | 168 | %{_iconsdir}/hicolor/*/apps/darktable.png |
dcfc9a0f | 169 | %{_iconsdir}/hicolor/scalable/apps/darktable*.svg |
5fd336e1 | 170 | %dir %{_libdir}/darktable |
171 | %dir %{_libdir}/darktable/plugins | |
172 | %dir %{_libdir}/darktable/plugins/imageio | |
173 | %dir %{_libdir}/darktable/plugins/imageio/format | |
174 | %dir %{_libdir}/darktable/plugins/imageio/storage | |
175 | %dir %{_libdir}/darktable/plugins/lighttable | |
176 | %dir %{_libdir}/darktable/views | |
177 | %attr(755,root,root) %{_libdir}/darktable/libdarktable.so | |
178 | %attr(755,root,root) %{_libdir}/darktable/plugins/*.so | |
179 | %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/format/*.so | |
180 | %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/storage/*.so | |
181 | %attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so | |
182 | %attr(755,root,root) %{_libdir}/darktable/views/*.so | |
ecf9bd41 JR |
183 | %lang(de) %{_mandir}/de/man1/darktable.1* |
184 | %lang(de) %{_mandir}/de/man1/darktable-cli.1* | |
185 | %lang(de) %{_mandir}/de/man1/darktable-cltest.1* | |
186 | %lang(de) %{_mandir}/de/man1/darktable-cmstest.1* | |
187 | %lang(de) %{_mandir}/de/man1/darktable-generate-cache.1* | |
188 | %lang(es) %{_mandir}/es/man1/darktable.1* | |
189 | %lang(es) %{_mandir}/es/man1/darktable-cli.1* | |
190 | %lang(es) %{_mandir}/es/man1/darktable-cltest.1* | |
191 | %lang(es) %{_mandir}/es/man1/darktable-cmstest.1* | |
192 | %lang(es) %{_mandir}/es/man1/darktable-generate-cache.1* | |
193 | %lang(fr) %{_mandir}/fr/man1/darktable.1* | |
194 | %lang(fr) %{_mandir}/fr/man1/darktable-cli.1* | |
195 | %lang(fr) %{_mandir}/fr/man1/darktable-cltest.1* | |
196 | %lang(fr) %{_mandir}/fr/man1/darktable-cmstest.1* | |
197 | %lang(fr) %{_mandir}/fr/man1/darktable-generate-cache.1* | |
dcfc9a0f JR |
198 | %{_mandir}/man1/darktable.1* |
199 | %{_mandir}/man1/darktable-cli.1* | |
ecf9bd41 JR |
200 | %{_mandir}/man1/darktable-cltest.1* |
201 | %{_mandir}/man1/darktable-cmstest.1* | |
202 | %{_mandir}/man1/darktable-generate-cache.1* |