]> git.pld-linux.org Git - packages/darktable.git/blame - darktable.spec
- fix building on x32
[packages/darktable.git] / darktable.spec
CommitLineData
00ec5638
ER
1#
2# Conditional build:
3%bcond_without gegl # build without GeGL
61e3dd9c
JB
4%bcond_without gomp # OpenMP threading support
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
61e3dd9c
JB
11Version: 1.4.2
12Release: 1
5fd336e1 13License: GPL v3
14Group: X11/Applications/Graphics
fcbf7643 15Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.xz
61e3dd9c 16# Source0-md5: f86554329c2c809ffb009244a6f1d643
e41de393 17Patch0: cmake-glib.patch
23260203 18Patch1: x32.patch
5fd336e1 19URL: http://darktable.sourceforge.net/
dcfc9a0f 20BuildRequires: GraphicsMagick-devel
61e3dd9c 21%{?with_opencl:BuildRequires: OpenCL-devel}
fcbf7643 22BuildRequires: OpenEXR-devel >= 2.0
61e3dd9c
JB
23BuildRequires: OpenGL-devel
24BuildRequires: SDL-devel >= 1.2
00ec5638 25BuildRequires: cairo-devel
61e3dd9c 26BuildRequires: cmake >= 2.6
dcfc9a0f 27BuildRequires: colord-devel
00ec5638
ER
28BuildRequires: curl-devel >= 7.18.0
29BuildRequires: dbus-glib-devel >= 0.80
30BuildRequires: desktop-file-utils
5fd336e1 31BuildRequires: exiv2-devel
00ec5638
ER
32BuildRequires: flickcurl-devel
33BuildRequires: fop
61e3dd9c
JB
34%{?with_gomp:BuildRequires: gcc-c++ >= 6:4.3}
35BuildRequires: gdk-pixbuf2-devel >= 2
36%{?with_gegl:BuildRequires: gegl-devel}
00ec5638 37BuildRequires: gettext
07bc9e86 38BuildRequires: gettext-tools
61e3dd9c 39BuildRequires: glib2-devel >= 1:2.30
00ec5638 40BuildRequires: gnome-doc-utils
61e3dd9c 41BuildRequires: gtk+2-devel >= 2:2.24
1b81dcba 42BuildRequires: intltool
61e3dd9c
JB
43BuildRequires: json-glib-devel
44BuildRequires: lcms2-devel >= 2
5fd336e1 45BuildRequires: lensfun-devel
46BuildRequires: libglade2-devel
47BuildRequires: libgnome-keyring-devel
61e3dd9c 48%{?with_gomp:BuildRequires: libgomp-devel}
00ec5638 49BuildRequires: libgphoto2-devel >= 2.4.5
5fd336e1 50BuildRequires: libjpeg-devel
00ec5638
ER
51BuildRequires: libpng-devel
52BuildRequires: librsvg-devel >= 1:2.26
61e3dd9c 53BuildRequires: libsoup-devel >= 2
5fd336e1 54BuildRequires: libtiff-devel
61e3dd9c
JB
55BuildRequires: libwebp-devel >= 0.3.0
56BuildRequires: libxml2-devel >= 1:2.6
57BuildRequires: libxml2-progs
58BuildRequires: libxslt-progs
59BuildRequires: lua52-devel >= 5.2
60BuildRequires: openjpeg-devel >= 1.5.0
61BuildRequires: perl-tools-pod
62BuildRequires: pango-devel
63BuildRequires: pkgconfig >= 1:0.22
64BuildRequires: sqlite3-devel >= 3
65BuildRequires: squish-devel
66%{?with_vte:BuildRequires: vte-devel >= 0.26.0}
a3e07e2a
AF
67Requires(post,postun): gtk-update-icon-cache
68Requires(post,postun): hicolor-icon-theme
61e3dd9c
JB
69Requires: curl >= 7.18.0
70Requires: dbus-glib >= 0.80
71Requires: glib2 >= 1:2.30
72Requires: gtk+2 >= 2:2.24
73Requires: openjpeg >= 1.5.0
74%{?with_vte:Requires: vte >= 0.26.0}
5fd336e1 75BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
77%description
61e3dd9c 78darktable is a virtual lighttable and darkroom for photographers.
5fd336e1 79
80%description -l pl.UTF-8
61e3dd9c 81darktable to wirtualny podświetlany stół i ciemnia dla fotografów.
5fd336e1 82
83%prep
84%setup -q
71e70328 85%patch0 -p1
23260203 86%patch1 -p1
5fd336e1 87
88%build
00ec5638
ER
89install -d build
90cd build
61e3dd9c
JB
91%cmake .. \
92 %{?with_vte:-DAPRIL_FOOLS=ON} \
93 -DBINARY_PACKAGE_BUILD=ON \
00ec5638 94 -DPROJECT_VERSION:STRING="%{name}-%{version}-%{release}" \
61e3dd9c
JB
95 %{!?with_opencl:-DUSE_OPENCL=OFF} \
96 %{!?with_gomp:-DUSE_OPENMP=OFF}
5fd336e1 97
98%{__make}
99
100%install
101rm -rf $RPM_BUILD_ROOT
00ec5638 102%{__make} -C build install \
5fd336e1 103 DESTDIR=$RPM_BUILD_ROOT
104
00ec5638
ER
105%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
106
298f8009
JR
107%{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
108
5fd336e1 109%find_lang %{name} --with-gnome --with-omf
110
111%clean
112rm -rf $RPM_BUILD_ROOT
113
114%post
115%update_desktop_database_post
116%update_icon_cache hicolor
5fd336e1 117
118%postun
119%update_desktop_database_postun
120%update_icon_cache hicolor
5fd336e1 121
122%files -f %{name}.lang
123%defattr(644,root,root,755)
61e3dd9c 124%doc README.md RELEASE_NOTES doc/{AUTHORS,NEWS,README,TODO,TRANSLATORS,grouping.txt}
00ec5638 125%attr(755,root,root) %{_bindir}/darktable
fcbf7643 126%attr(755,root,root) %{_bindir}/darktable-cli
00ec5638
ER
127%attr(755,root,root) %{_bindir}/darktable-cltest
128%attr(755,root,root) %{_bindir}/darktable-viewer
dcfc9a0f 129%{_datadir}/appdata/darktable.appdata.xml
5fd336e1 130%{_datadir}/darktable
131%{_desktopdir}/darktable.desktop
132%{_iconsdir}/hicolor/*/apps/darktable.png
dcfc9a0f 133%{_iconsdir}/hicolor/scalable/apps/darktable*.svg
5fd336e1 134%dir %{_libdir}/darktable
135%dir %{_libdir}/darktable/plugins
136%dir %{_libdir}/darktable/plugins/imageio
137%dir %{_libdir}/darktable/plugins/imageio/format
138%dir %{_libdir}/darktable/plugins/imageio/storage
139%dir %{_libdir}/darktable/plugins/lighttable
140%dir %{_libdir}/darktable/views
141%attr(755,root,root) %{_libdir}/darktable/libdarktable.so
142%attr(755,root,root) %{_libdir}/darktable/plugins/*.so
143%attr(755,root,root) %{_libdir}/darktable/plugins/imageio/format/*.so
144%attr(755,root,root) %{_libdir}/darktable/plugins/imageio/storage/*.so
145%attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so
146%attr(755,root,root) %{_libdir}/darktable/views/*.so
dcfc9a0f
JR
147%{_mandir}/man1/darktable.1*
148%{_mandir}/man1/darktable-cli.1*
This page took 0.071804 seconds and 4 git commands to generate.