345b6847a1e313df2f47c23bd7b3c31923c66ed8
[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:        7
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:  GraphicsMagick-devel
17 BuildRequires:  OpenEXR-devel >= 2.0
18 BuildRequires:  SDL-devel
19 BuildRequires:  cairo-devel
20 BuildRequires:  cmake
21 BuildRequires:  colord-devel
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:  lua52-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
65 %build
66 install -d build
67 cd build
68 %cmake \
69         -DCMAKE_LIBRARY_PATH:PATH=%{_libdir} \
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         DESTDIR=$RPM_BUILD_ROOT
81
82 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
83
84 %{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
85
86 %find_lang %{name} --with-gnome --with-omf
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 %update_desktop_database_post
93 %update_icon_cache hicolor
94
95 %postun
96 %update_desktop_database_postun
97 %update_icon_cache hicolor
98
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS
102 %attr(755,root,root) %{_bindir}/darktable
103 %attr(755,root,root) %{_bindir}/darktable-cli
104 %attr(755,root,root) %{_bindir}/darktable-cltest
105 %attr(755,root,root) %{_bindir}/darktable-viewer
106 %{_datadir}/appdata/darktable.appdata.xml
107 %{_datadir}/darktable
108 %{_desktopdir}/darktable.desktop
109 %{_iconsdir}/hicolor/*/apps/darktable.png
110 %{_iconsdir}/hicolor/scalable/apps/darktable*.svg
111 %dir %{_libdir}/darktable
112 %dir %{_libdir}/darktable/plugins
113 %dir %{_libdir}/darktable/plugins/imageio
114 %dir %{_libdir}/darktable/plugins/imageio/format
115 %dir %{_libdir}/darktable/plugins/imageio/storage
116 %dir %{_libdir}/darktable/plugins/lighttable
117 %dir %{_libdir}/darktable/views
118 %attr(755,root,root) %{_libdir}/darktable/libdarktable.so
119 %attr(755,root,root) %{_libdir}/darktable/plugins/*.so
120 %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/format/*.so
121 %attr(755,root,root) %{_libdir}/darktable/plugins/imageio/storage/*.so
122 %attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so
123 %attr(755,root,root) %{_libdir}/darktable/views/*.so
124 %{_mandir}/man1/darktable.1*
125 %{_mandir}/man1/darktable-cli.1*
This page took 0.117021 seconds and 2 git commands to generate.