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