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