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