- updated to 1.4
[packages/darktable.git] / darktable.spec
CommitLineData
00ec5638
ER
1#
2# Conditional build:
3%bcond_without gegl # build without GeGL
4
5fd336e1 5Summary: darktable is a virtual lighttable and darkroom for photographers
6Summary(pl.UTF-8): darktable to wirtualny podświetlany stół i ciemnia dla fotografów
7Name: darktable
dcfc9a0f
JR
8Version: 1.4
9Release: 1
5fd336e1 10License: GPL v3
11Group: X11/Applications/Graphics
fcbf7643 12Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.xz
dcfc9a0f 13# Source0-md5: 896416931ded4579f528cd11edad470c
e41de393 14Patch0: cmake-glib.patch
5fd336e1 15URL: http://darktable.sourceforge.net/
00ec5638 16BuildRequires: GConf2
5fd336e1 17BuildRequires: GConf2-devel
dcfc9a0f 18BuildRequires: GraphicsMagick-devel
fcbf7643 19BuildRequires: OpenEXR-devel >= 2.0
00ec5638
ER
20BuildRequires: SDL-devel
21BuildRequires: cairo-devel
22BuildRequires: cmake
dcfc9a0f 23BuildRequires: colord-devel
00ec5638
ER
24BuildRequires: curl-devel >= 7.18.0
25BuildRequires: dbus-glib-devel >= 0.80
26BuildRequires: desktop-file-utils
5fd336e1 27BuildRequires: exiv2-devel
00ec5638
ER
28BuildRequires: flickcurl-devel
29BuildRequires: fop
30BuildRequires: gettext
5fd336e1 31BuildRequires: gettext-devel
8829df84 32BuildRequires: glib2-devel
00ec5638 33BuildRequires: gnome-doc-utils
5fd336e1 34BuildRequires: gtk+2-devel
1b81dcba 35BuildRequires: intltool
00ec5638 36BuildRequires: lcms2-devel
5fd336e1 37BuildRequires: lensfun-devel
38BuildRequires: libglade2-devel
39BuildRequires: libgnome-keyring-devel
40BuildRequires: libgomp-devel
00ec5638 41BuildRequires: libgphoto2-devel >= 2.4.5
5fd336e1 42BuildRequires: libjpeg-devel
00ec5638
ER
43BuildRequires: libpng-devel
44BuildRequires: librsvg-devel >= 1:2.26
5fd336e1 45BuildRequires: libtiff-devel
dcfc9a0f 46BuildRequires: lua52-devel
00ec5638
ER
47BuildRequires: pkgconfig >= 0.22
48BuildRequires: sqlite-devel
5fd336e1 49BuildRequires: sqlite3-devel
00ec5638
ER
50%if %{with gegl}
51BuildRequires: gegl-devel
52%endif
a3e07e2a
AF
53Requires(post,postun): gtk-update-icon-cache
54Requires(post,postun): hicolor-icon-theme
5fd336e1 55BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57%description
58darktable is a virtual lighttable and darkroom for photographers
59
60%description -l pl.UTF-8
61darktable to wirtualny podświetlany stół i ciemnia dla fotografów
62
63%prep
64%setup -q
71e70328 65%patch0 -p1
5fd336e1 66
67%build
00ec5638
ER
68install -d build
69cd 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 ..
5fd336e1 77
78%{__make}
79
80%install
81rm -rf $RPM_BUILD_ROOT
00ec5638
ER
82%{__make} -C build install \
83 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \
5fd336e1 84 DESTDIR=$RPM_BUILD_ROOT
85
00ec5638
ER
86%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
87
298f8009
JR
88%{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
89
5fd336e1 90%find_lang %{name} --with-gnome --with-omf
91
92%clean
93rm -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)
00ec5638
ER
107%doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS
108%attr(755,root,root) %{_bindir}/darktable
fcbf7643 109%attr(755,root,root) %{_bindir}/darktable-cli
00ec5638
ER
110%attr(755,root,root) %{_bindir}/darktable-cltest
111%attr(755,root,root) %{_bindir}/darktable-viewer
dcfc9a0f 112%{_datadir}/appdata/darktable.appdata.xml
5fd336e1 113%{_datadir}/darktable
114%{_desktopdir}/darktable.desktop
115%{_iconsdir}/hicolor/*/apps/darktable.png
dcfc9a0f 116%{_iconsdir}/hicolor/scalable/apps/darktable*.svg
5fd336e1 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
dcfc9a0f
JR
130%{_mandir}/man1/darktable.1*
131%{_mandir}/man1/darktable-cli.1*
This page took 0.055497 seconds and 4 git commands to generate.