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