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