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