]> git.pld-linux.org Git - packages/darktable.git/blame - darktable.spec
- up to 4.0.0
[packages/darktable.git] / darktable.spec
CommitLineData
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
8Summary: darktable - a virtual lighttable and darkroom for photographers
9Summary(pl.UTF-8): darktable - wirtualny podświetlany stół i ciemnia dla fotografów
5fd336e1 10Name: darktable
bfca7052
KM
11Version: 4.0.0
12Release: 1
5fd336e1 13License: GPL v3
14Group: X11/Applications/Graphics
ecf9bd41 15Source0: https://github.com/darktable-org/darktable/releases/download/release-%{version}/%{name}-%{version}.tar.xz
bfca7052 16# Source0-md5: 9648d5c2a25703c1906288d192af5dcb
e41de393 17Patch0: cmake-glib.patch
e1693723 18URL: https://www.darktable.org/
dcfc9a0f 19BuildRequires: GraphicsMagick-devel
61e3dd9c 20%{?with_opencl:BuildRequires: OpenCL-devel}
fccdb72a 21BuildRequires: OpenEXR-devel >= 3.0
61e3dd9c
JB
22BuildRequires: OpenGL-devel
23BuildRequires: SDL-devel >= 1.2
00ec5638 24BuildRequires: cairo-devel
bfca7052 25BuildRequires: cmake >= 3.10
dcfc9a0f 26BuildRequires: colord-devel
e1693723
KM
27BuildRequires: colord-gtk-devel
28BuildRequires: cups-devel
fccdb72a 29BuildRequires: curl-devel >= 7.56.0
00ec5638
ER
30BuildRequires: dbus-glib-devel >= 0.80
31BuildRequires: desktop-file-utils
bfca7052 32BuildRequires: exiv2-devel >= 0.27.4
00ec5638
ER
33BuildRequires: flickcurl-devel
34BuildRequires: fop
ebd2a559 35%{?with_openmp:BuildRequires: gcc-c++ >= 6:4.3}
61e3dd9c
JB
36BuildRequires: gdk-pixbuf2-devel >= 2
37%{?with_gegl:BuildRequires: gegl-devel}
00ec5638 38BuildRequires: gettext
07bc9e86 39BuildRequires: gettext-tools
bfca7052 40BuildRequires: glib2-devel >= 1:2.40
00ec5638 41BuildRequires: gnome-doc-utils
e1693723 42BuildRequires: gtk+3-devel >= 3.22
1b81dcba 43BuildRequires: intltool
e1693723 44BuildRequires: iso-codes >= 4.4
61e3dd9c
JB
45BuildRequires: json-glib-devel
46BuildRequires: lcms2-devel >= 2
5fd336e1 47BuildRequires: lensfun-devel
bfca7052 48BuildRequires: libavif-devel >= 0.7.2
5fd336e1 49BuildRequires: libglade2-devel
50BuildRequires: libgnome-keyring-devel
ebd2a559 51%{?with_openmp:BuildRequires: libgomp-devel}
00ec5638 52BuildRequires: libgphoto2-devel >= 2.4.5
5fd336e1 53BuildRequires: libjpeg-devel
00ec5638
ER
54BuildRequires: libpng-devel
55BuildRequires: librsvg-devel >= 1:2.26
61e3dd9c 56BuildRequires: libsoup-devel >= 2
5fd336e1 57BuildRequires: libtiff-devel
61e3dd9c
JB
58BuildRequires: libwebp-devel >= 0.3.0
59BuildRequires: libxml2-devel >= 1:2.6
60BuildRequires: libxml2-progs
61BuildRequires: libxslt-progs
e1693723 62BuildRequires: llvm-devel >= 12.0
da1a81de 63BuildRequires: lua54-devel >= 5.4
61e3dd9c 64BuildRequires: openjpeg-devel >= 1.5.0
61e3dd9c 65BuildRequires: pango-devel
ecf9bd41 66BuildRequires: perl-tools-pod
61e3dd9c 67BuildRequires: pkgconfig >= 1:0.22
e1693723
KM
68BuildRequires: po4a
69BuildRequires: pugixml-devel >= 1.8
bfca7052 70BuildRequires: python3-jsonschema
e1693723 71BuildRequires: sqlite3-devel >= 3.24
61e3dd9c
JB
72BuildRequires: squish-devel
73%{?with_vte:BuildRequires: vte-devel >= 0.26.0}
a3e07e2a
AF
74Requires(post,postun): gtk-update-icon-cache
75Requires(post,postun): hicolor-icon-theme
61e3dd9c
JB
76Requires: curl >= 7.18.0
77Requires: dbus-glib >= 0.80
78Requires: glib2 >= 1:2.30
e1693723 79Requires: gtk+3 >= 3.22
61e3dd9c
JB
80Requires: openjpeg >= 1.5.0
81%{?with_vte:Requires: vte >= 0.26.0}
9cadc924 82ExclusiveArch: %{x8664}
5fd336e1 83BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84
85%description
61e3dd9c 86darktable is a virtual lighttable and darkroom for photographers.
5fd336e1 87
88%description -l pl.UTF-8
61e3dd9c 89darktable 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
96install -d build
97cd build
ecf9bd41 98export 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
112rm -rf $RPM_BUILD_ROOT
e1693723
KM
113install -d $RPM_BUILD_ROOT/etc/ld.so.conf.d
114echo "%{_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
123rm -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
131When updating from the stable 3.8.x series, please bear in mind that
132your edits will be preserved during this process, but the new library
133and configuration will no longer be usable with 3.8.x.
134
135You are strongly advised to take a backup first.
136
137EOF
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*
This page took 0.136111 seconds and 4 git commands to generate.