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