- release 3 (by relup.sh)
[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.2
9 Release:        3
10 License:        GPL v3
11 Group:          X11/Applications/Graphics
12 Source0:        http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.xz
13 # Source0-md5:  31bfd13d4786aac4f99d5155a811602b
14 Patch0:         cmake-glib.patch
15 Patch1:         openexr2.patch
16 URL:            http://darktable.sourceforge.net/
17 BuildRequires:  GConf2
18 BuildRequires:  GConf2-devel
19 BuildRequires:  OpenEXR-devel >= 2.0
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 %{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
88
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)
106 %doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS
107 %attr(755,root,root) %{_bindir}/darktable
108 %attr(755,root,root) %{_bindir}/darktable-cli
109 %attr(755,root,root) %{_bindir}/darktable-cltest
110 %attr(755,root,root) %{_bindir}/darktable-viewer
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.*
This page took 0.08055 seconds and 4 git commands to generate.