]>
Commit | Line | Data |
---|---|---|
00ec5638 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gegl # build without GeGL | |
4 | ||
5fd336e1 | 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 | |
fcbf7643 | 8 | Version: 1.1.4 |
298f8009 | 9 | Release: 2 |
5fd336e1 | 10 | License: GPL v3 |
11 | Group: X11/Applications/Graphics | |
fcbf7643 JR |
12 | Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 49e376ca4b88f5351acacef177285c45 | |
e41de393 | 14 | Patch0: cmake-glib.patch |
fcbf7643 | 15 | Patch1: openexr2.patch |
5fd336e1 | 16 | URL: http://darktable.sourceforge.net/ |
00ec5638 | 17 | BuildRequires: GConf2 |
5fd336e1 | 18 | BuildRequires: GConf2-devel |
fcbf7643 | 19 | BuildRequires: OpenEXR-devel >= 2.0 |
00ec5638 ER |
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 | |
5fd336e1 | 26 | BuildRequires: exiv2-devel |
00ec5638 ER |
27 | BuildRequires: flickcurl-devel |
28 | BuildRequires: fop | |
29 | BuildRequires: gettext | |
5fd336e1 | 30 | BuildRequires: gettext-devel |
8829df84 | 31 | BuildRequires: glib2-devel |
00ec5638 | 32 | BuildRequires: gnome-doc-utils |
5fd336e1 | 33 | BuildRequires: gtk+2-devel |
1b81dcba | 34 | BuildRequires: intltool |
00ec5638 | 35 | BuildRequires: lcms2-devel |
5fd336e1 | 36 | BuildRequires: lensfun-devel |
37 | BuildRequires: libglade2-devel | |
38 | BuildRequires: libgnome-keyring-devel | |
39 | BuildRequires: libgomp-devel | |
00ec5638 | 40 | BuildRequires: libgphoto2-devel >= 2.4.5 |
5fd336e1 | 41 | BuildRequires: libjpeg-devel |
00ec5638 ER |
42 | BuildRequires: libpng-devel |
43 | BuildRequires: librsvg-devel >= 1:2.26 | |
5fd336e1 | 44 | BuildRequires: libtiff-devel |
00ec5638 ER |
45 | BuildRequires: pkgconfig >= 0.22 |
46 | BuildRequires: sqlite-devel | |
5fd336e1 | 47 | BuildRequires: sqlite3-devel |
00ec5638 ER |
48 | %if %{with gegl} |
49 | BuildRequires: gegl-devel | |
50 | %endif | |
a3e07e2a AF |
51 | Requires(post,postun): gtk-update-icon-cache |
52 | Requires(post,postun): hicolor-icon-theme | |
5fd336e1 | 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 | |
71e70328 | 63 | %patch0 -p1 |
697e7ae4 | 64 | %patch1 -p1 |
5fd336e1 | 65 | |
66 | %build | |
00ec5638 ER |
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 | .. | |
5fd336e1 | 76 | |
77 | %{__make} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
00ec5638 ER |
81 | %{__make} -C build install \ |
82 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \ | |
5fd336e1 | 83 | DESTDIR=$RPM_BUILD_ROOT |
84 | ||
00ec5638 ER |
85 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
86 | ||
298f8009 JR |
87 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,} |
88 | ||
5fd336e1 | 89 | %find_lang %{name} --with-gnome --with-omf |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post | |
95 | %update_desktop_database_post | |
96 | %update_icon_cache hicolor | |
97 | %gconf_schema_install: | |
98 | ||
99 | %postun | |
100 | %update_desktop_database_postun | |
101 | %update_icon_cache hicolor | |
102 | %gconf_schema_uninstall | |
103 | ||
104 | %files -f %{name}.lang | |
105 | %defattr(644,root,root,755) | |
00ec5638 ER |
106 | %doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS |
107 | %attr(755,root,root) %{_bindir}/darktable | |
fcbf7643 | 108 | %attr(755,root,root) %{_bindir}/darktable-cli |
00ec5638 ER |
109 | %attr(755,root,root) %{_bindir}/darktable-cltest |
110 | %attr(755,root,root) %{_bindir}/darktable-viewer | |
5fd336e1 | 111 | %{_datadir}/darktable |
112 | %{_desktopdir}/darktable.desktop | |
113 | %{_iconsdir}/hicolor/*/apps/darktable.png | |
114 | %{_iconsdir}/hicolor/scalable/apps/darktable.svg | |
115 | %dir %{_libdir}/darktable | |
116 | %dir %{_libdir}/darktable/plugins | |
117 | %dir %{_libdir}/darktable/plugins/imageio | |
118 | %dir %{_libdir}/darktable/plugins/imageio/format | |
119 | %dir %{_libdir}/darktable/plugins/imageio/storage | |
120 | %dir %{_libdir}/darktable/plugins/lighttable | |
121 | %dir %{_libdir}/darktable/views | |
122 | %attr(755,root,root) %{_libdir}/darktable/libdarktable.so | |
123 | %attr(755,root,root) %{_libdir}/darktable/plugins/*.so | |
124 | %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/format/*.so | |
125 | %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/storage/*.so | |
126 | %attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so | |
127 | %attr(755,root,root) %{_libdir}/darktable/views/*.so | |
128 | %{_mandir}/man1/darktable.* |