]> git.pld-linux.org Git - packages/darktable.git/blob - darktable.spec
ce18eb1568e7659fa21aa1546f97eff3dff5a30e
[packages/darktable.git] / darktable.spec
1 #
2 # Conditional build:
3 %bcond_without  gegl    # build without GeGL
4 %bcond_without  openmp  # OpenMP threading support
5 %bcond_without  opencl  # OpenCL support
6 %bcond_with     vte     # lighttable mode shell ("file manager" April fool)
7
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
10 Name:           darktable
11 Version:        3.8.1
12 Release:        2
13 License:        GPL v3
14 Group:          X11/Applications/Graphics
15 Source0:        https://github.com/darktable-org/darktable/releases/download/release-%{version}/%{name}-%{version}.tar.xz
16 # Source0-md5:  e2b99efd1815d2aa266c2d4719bcc188
17 Patch0:         cmake-glib.patch
18 URL:            https://www.darktable.org/
19 BuildRequires:  GraphicsMagick-devel
20 %{?with_opencl:BuildRequires:   OpenCL-devel}
21 BuildRequires:  OpenEXR-devel >= 3.0
22 BuildRequires:  OpenGL-devel
23 BuildRequires:  SDL-devel >= 1.2
24 BuildRequires:  cairo-devel
25 BuildRequires:  cmake >= 2.6
26 BuildRequires:  colord-devel
27 BuildRequires:  colord-gtk-devel
28 BuildRequires:  cups-devel
29 BuildRequires:  curl-devel >= 7.56.0
30 BuildRequires:  dbus-glib-devel >= 0.80
31 BuildRequires:  desktop-file-utils
32 BuildRequires:  exiv2-devel >= 0.24
33 BuildRequires:  flickcurl-devel
34 BuildRequires:  fop
35 %{?with_openmp:BuildRequires:   gcc-c++ >= 6:4.3}
36 BuildRequires:  gdk-pixbuf2-devel >= 2
37 %{?with_gegl:BuildRequires:     gegl-devel}
38 BuildRequires:  gettext
39 BuildRequires:  gettext-tools
40 BuildRequires:  glib2-devel >= 1:2.30
41 BuildRequires:  gnome-doc-utils
42 BuildRequires:  gtk+3-devel >= 3.22
43 BuildRequires:  intltool
44 BuildRequires:  iso-codes >= 4.4
45 BuildRequires:  json-glib-devel
46 BuildRequires:  lcms2-devel >= 2
47 BuildRequires:  lensfun-devel
48 BuildRequires:  libglade2-devel
49 BuildRequires:  libgnome-keyring-devel
50 %{?with_openmp:BuildRequires:   libgomp-devel}
51 BuildRequires:  libgphoto2-devel >= 2.4.5
52 BuildRequires:  libjpeg-devel
53 BuildRequires:  libpng-devel
54 BuildRequires:  librsvg-devel >= 1:2.26
55 BuildRequires:  libsoup-devel >= 2
56 BuildRequires:  libtiff-devel
57 BuildRequires:  libwebp-devel >= 0.3.0
58 BuildRequires:  libxml2-devel >= 1:2.6
59 BuildRequires:  libxml2-progs
60 BuildRequires:  libxslt-progs
61 BuildRequires:  llvm-devel >= 12.0
62 BuildRequires:  lua54-devel >= 5.4
63 BuildRequires:  openjpeg-devel >= 1.5.0
64 BuildRequires:  pango-devel
65 BuildRequires:  perl-tools-pod
66 BuildRequires:  pkgconfig >= 1:0.22
67 BuildRequires:  po4a
68 BuildRequires:  pugixml-devel >= 1.8
69 BuildRequires:  sqlite3-devel >= 3.24
70 BuildRequires:  squish-devel
71 %{?with_vte:BuildRequires:      vte-devel >= 0.26.0}
72 Requires(post,postun):  gtk-update-icon-cache
73 Requires(post,postun):  hicolor-icon-theme
74 Requires:       curl >= 7.18.0
75 Requires:       dbus-glib >= 0.80
76 Requires:       glib2 >= 1:2.30
77 Requires:       gtk+3 >= 3.22
78 Requires:       openjpeg >= 1.5.0
79 %{?with_vte:Requires:   vte >= 0.26.0}
80 ExclusiveArch:  %{x8664}
81 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82
83 %description
84 darktable is a virtual lighttable and darkroom for photographers.
85
86 %description -l pl.UTF-8
87 darktable to wirtualny podświetlany stół i ciemnia dla fotografów.
88
89 %prep
90 %setup -q
91 %patch0 -p1
92
93 %build
94 install -d build
95 cd build
96 export CXXFLAGS="%{rpmcxxflags}"
97 %cmake .. \
98         -DCMAKE_BUILD_TYPE=%{!?debug:RELEASE}%{?debug:DEBUG} \
99         %{?with_vte:-DAPRIL_FOOLS=ON} \
100         -DBINARY_PACKAGE_BUILD=ON \
101         -DPROJECT_VERSION:STRING="%{version}" \
102         -DUSE_AVIF=OFF \
103         -DTESTBUILD_OPENCL_PROGRAMS=OFF \
104         %{!?with_opencl:-DUSE_OPENCL=OFF} \
105         %{!?with_openmp:-DUSE_OPENMP=OFF}
106
107 %{__make}
108
109 %install
110 rm -rf $RPM_BUILD_ROOT
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
113 %{__make} -C build install \
114         DESTDIR=$RPM_BUILD_ROOT
115
116 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}
117
118 %find_lang %{name} --with-gnome --with-omf
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post
124 /sbin/ldconfig
125 %update_desktop_database_post
126 %update_icon_cache hicolor
127
128 %postun
129 /sbin/ldconfig
130 %update_desktop_database_postun
131 %update_icon_cache hicolor
132
133 %files -f %{name}.lang
134 %defattr(644,root,root,755)
135 %doc AUTHORS CONTRIBUTING.md README.md RELEASE_NOTES.md
136 %doc doc/{TRANSLATORS.md,grouping.txt,thumbnail_color_management.txt}
137 %attr(755,root,root) %{_bindir}/darktable
138 %attr(755,root,root) %{_bindir}/darktable-chart
139 %attr(755,root,root) %{_bindir}/darktable-cli
140 %attr(755,root,root) %{_bindir}/darktable-cltest
141 %attr(755,root,root) %{_bindir}/darktable-cmstest
142 %attr(755,root,root) %{_bindir}/darktable-generate-cache
143 %attr(755,root,root) %{_bindir}/darktable-rs-identify
144 /etc/ld.so.conf.d/%{name}.conf
145 %{_datadir}/metainfo/darktable.appdata.xml
146 %{_datadir}/darktable
147 %{_desktopdir}/darktable.desktop
148 %{_iconsdir}/hicolor/*/apps/darktable.png
149 %{_iconsdir}/hicolor/scalable/apps/darktable*.svg
150 %dir %{_libdir}/darktable
151 %dir %{_libdir}/darktable/plugins
152 %dir %{_libdir}/darktable/plugins/imageio
153 %dir %{_libdir}/darktable/plugins/imageio/format
154 %dir %{_libdir}/darktable/plugins/imageio/storage
155 %dir %{_libdir}/darktable/plugins/lighttable
156 %dir %{_libdir}/darktable/views
157 %attr(755,root,root) %{_libdir}/darktable/libdarktable.so
158 %attr(755,root,root) %{_libdir}/darktable/plugins/*.so
159 %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/format/*.so
160 %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/storage/*.so
161 %attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so
162 %attr(755,root,root) %{_libdir}/darktable/views/*.so
163 %lang(de) %{_mandir}/de/man1/darktable.1*
164 %lang(de) %{_mandir}/de/man1/darktable-cli.1*
165 %lang(de) %{_mandir}/de/man1/darktable-cltest.1*
166 %lang(de) %{_mandir}/de/man1/darktable-cmstest.1*
167 %lang(de) %{_mandir}/de/man1/darktable-generate-cache.1*
168 %lang(es) %{_mandir}/es/man1/darktable.1*
169 %lang(es) %{_mandir}/es/man1/darktable-cli.1*
170 %lang(es) %{_mandir}/es/man1/darktable-cltest.1*
171 %lang(es) %{_mandir}/es/man1/darktable-cmstest.1*
172 %lang(es) %{_mandir}/es/man1/darktable-generate-cache.1*
173 %lang(fr) %{_mandir}/fr/man1/darktable.1*
174 %lang(fr) %{_mandir}/fr/man1/darktable-cli.1*
175 %lang(fr) %{_mandir}/fr/man1/darktable-cltest.1*
176 %lang(fr) %{_mandir}/fr/man1/darktable-cmstest.1*
177 %lang(fr) %{_mandir}/fr/man1/darktable-generate-cache.1*
178 %{_mandir}/man1/darktable.1*
179 %{_mandir}/man1/darktable-cli.1*
180 %{_mandir}/man1/darktable-cltest.1*
181 %{_mandir}/man1/darktable-cmstest.1*
182 %{_mandir}/man1/darktable-generate-cache.1*
This page took 0.082607 seconds and 2 git commands to generate.