]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without gegl # build without GeGL | |
4 | ||
5 | Summary: darktable is a virtual lighttable and darkroom for photographers | |
6 | Summary(pl.UTF-8): darktable to wirtualny podświetlany stół i ciemnia dla fotografów | |
7 | Name: darktable | |
8 | Version: 1.0.5 | |
9 | Release: 3 | |
10 | License: GPL v3 | |
11 | Group: X11/Applications/Graphics | |
12 | Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 9ad88a1a6b9761fce28c8073d8f47941 | |
14 | Patch0: cmake-glib.patch | |
15 | Patch1: librsvg-headers.patch | |
16 | URL: http://darktable.sourceforge.net/ | |
17 | BuildRequires: GConf2 | |
18 | BuildRequires: GConf2-devel | |
19 | BuildRequires: OpenEXR-devel >= 1.6 | |
20 | BuildRequires: SDL-devel | |
21 | BuildRequires: cairo-devel | |
22 | BuildRequires: cmake | |
23 | BuildRequires: curl-devel >= 7.18.0 | |
24 | BuildRequires: dbus-glib-devel >= 0.80 | |
25 | BuildRequires: desktop-file-utils | |
26 | BuildRequires: exiv2-devel | |
27 | BuildRequires: flickcurl-devel | |
28 | BuildRequires: fop | |
29 | BuildRequires: gettext | |
30 | BuildRequires: gettext-devel | |
31 | BuildRequires: glib2-devel | |
32 | BuildRequires: gnome-doc-utils | |
33 | BuildRequires: gtk+2-devel | |
34 | BuildRequires: intltool | |
35 | BuildRequires: lcms2-devel | |
36 | BuildRequires: lensfun-devel | |
37 | BuildRequires: libglade2-devel | |
38 | BuildRequires: libgnome-keyring-devel | |
39 | BuildRequires: libgomp-devel | |
40 | BuildRequires: libgphoto2-devel >= 2.4.5 | |
41 | BuildRequires: libjpeg-devel | |
42 | BuildRequires: libpng-devel | |
43 | BuildRequires: librsvg-devel >= 1:2.26 | |
44 | BuildRequires: libtiff-devel | |
45 | BuildRequires: pkgconfig >= 0.22 | |
46 | BuildRequires: sqlite-devel | |
47 | BuildRequires: sqlite3-devel | |
48 | %if %{with gegl} | |
49 | BuildRequires: gegl-devel | |
50 | %endif | |
51 | Requires(post,postun): gtk-update-icon-cache | |
52 | Requires(post,postun): hicolor-icon-theme | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | darktable is a virtual lighttable and darkroom for photographers | |
57 | ||
58 | %description -l pl.UTF-8 | |
59 | darktable to wirtualny podświetlany stół i ciemnia dla fotografów | |
60 | ||
61 | %prep | |
62 | %setup -q | |
63 | %patch0 -p1 | |
64 | %patch1 -p1 | |
65 | ||
66 | %build | |
67 | install -d build | |
68 | cd build | |
69 | %cmake \ | |
70 | -DCMAKE_LIBRARY_PATH:PATH=%{_libdir} \ | |
71 | -DDONT_INSTALL_GCONF_SCHEMAS:BOOLEAN=ON \ | |
72 | -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | |
73 | -DBINARY_PACKAGE_BUILD=1 \ | |
74 | -DPROJECT_VERSION:STRING="%{name}-%{version}-%{release}" \ | |
75 | .. | |
76 | ||
77 | %{__make} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | %{__make} -C build install \ | |
82 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
86 | ||
87 | %find_lang %{name} --with-gnome --with-omf | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post | |
93 | %update_desktop_database_post | |
94 | %update_icon_cache hicolor | |
95 | %gconf_schema_install: | |
96 | ||
97 | %postun | |
98 | %update_desktop_database_postun | |
99 | %update_icon_cache hicolor | |
100 | %gconf_schema_uninstall | |
101 | ||
102 | %files -f %{name}.lang | |
103 | %defattr(644,root,root,755) | |
104 | %doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS | |
105 | %attr(755,root,root) %{_bindir}/darktable | |
106 | %attr(755,root,root) %{_bindir}/darktable-cltest | |
107 | %attr(755,root,root) %{_bindir}/darktable-viewer | |
108 | %{_datadir}/darktable | |
109 | %{_desktopdir}/darktable.desktop | |
110 | %{_iconsdir}/hicolor/*/apps/darktable.png | |
111 | %{_iconsdir}/hicolor/scalable/apps/darktable.svg | |
112 | %dir %{_libdir}/darktable | |
113 | %dir %{_libdir}/darktable/plugins | |
114 | %dir %{_libdir}/darktable/plugins/imageio | |
115 | %dir %{_libdir}/darktable/plugins/imageio/format | |
116 | %dir %{_libdir}/darktable/plugins/imageio/storage | |
117 | %dir %{_libdir}/darktable/plugins/lighttable | |
118 | %dir %{_libdir}/darktable/views | |
119 | %attr(755,root,root) %{_libdir}/darktable/libdarktable.so | |
120 | %attr(755,root,root) %{_libdir}/darktable/plugins/*.so | |
121 | %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/format/*.so | |
122 | %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/storage/*.so | |
123 | %attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so | |
124 | %attr(755,root,root) %{_libdir}/darktable/views/*.so | |
125 | %{_mandir}/man1/darktable.* |