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