fix librsvg header deprecation
[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
00ec5638 8Version: 1.0.5
697e7ae4 9Release: 2
5fd336e1 10License: GPL v3
11Group: X11/Applications/Graphics
12Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.gz
00ec5638 13# Source0-md5: 9ad88a1a6b9761fce28c8073d8f47941
e41de393 14Patch0: cmake-glib.patch
697e7ae4 15Patch1: librsvg-headers.patch
5fd336e1 16URL: http://darktable.sourceforge.net/
00ec5638 17BuildRequires: GConf2
5fd336e1 18BuildRequires: GConf2-devel
00ec5638
ER
19BuildRequires: OpenEXR-devel >= 1.6
20BuildRequires: SDL-devel
21BuildRequires: cairo-devel
22BuildRequires: cmake
23BuildRequires: curl-devel >= 7.18.0
24BuildRequires: dbus-glib-devel >= 0.80
25BuildRequires: desktop-file-utils
5fd336e1 26BuildRequires: exiv2-devel
00ec5638
ER
27BuildRequires: flickcurl-devel
28BuildRequires: fop
29BuildRequires: gettext
5fd336e1 30BuildRequires: gettext-devel
8829df84 31BuildRequires: glib2-devel
00ec5638 32BuildRequires: gnome-doc-utils
5fd336e1 33BuildRequires: gtk+2-devel
1b81dcba 34BuildRequires: intltool
00ec5638 35BuildRequires: lcms2-devel
5fd336e1 36BuildRequires: lensfun-devel
37BuildRequires: libglade2-devel
38BuildRequires: libgnome-keyring-devel
39BuildRequires: libgomp-devel
00ec5638 40BuildRequires: libgphoto2-devel >= 2.4.5
5fd336e1 41BuildRequires: libjpeg-devel
00ec5638
ER
42BuildRequires: libpng-devel
43BuildRequires: librsvg-devel >= 1:2.26
5fd336e1 44BuildRequires: libtiff-devel
00ec5638
ER
45BuildRequires: pkgconfig >= 0.22
46BuildRequires: sqlite-devel
5fd336e1 47BuildRequires: sqlite3-devel
00ec5638
ER
48%if %{with gegl}
49BuildRequires: gegl-devel
50%endif
a3e07e2a
AF
51Requires(post,postun): gtk-update-icon-cache
52Requires(post,postun): hicolor-icon-theme
5fd336e1 53BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55%description
56darktable is a virtual lighttable and darkroom for photographers
57
58%description -l pl.UTF-8
59darktable to wirtualny podświetlany stół i ciemnia dla fotografów
60
61%prep
62%setup -q
71e70328 63%patch0 -p1
697e7ae4 64%patch1 -p1
5fd336e1 65
66%build
00ec5638
ER
67install -d build
68cd 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 ..
5fd336e1 76
77%{__make}
78
79%install
80rm -rf $RPM_BUILD_ROOT
00ec5638
ER
81%{__make} -C build install \
82 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \
5fd336e1 83 DESTDIR=$RPM_BUILD_ROOT
84
00ec5638
ER
85%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
86
5fd336e1 87%find_lang %{name} --with-gnome --with-omf
88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%post
93%update_desktop_database_post
94%update_icon_cache hicolor
95%gconf_schema_install:
96
97%postun
98%update_desktop_database_postun
99%update_icon_cache hicolor
100%gconf_schema_uninstall
101
102%files -f %{name}.lang
103%defattr(644,root,root,755)
00ec5638
ER
104%doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS
105%attr(755,root,root) %{_bindir}/darktable
106%attr(755,root,root) %{_bindir}/darktable-cltest
107%attr(755,root,root) %{_bindir}/darktable-viewer
5fd336e1 108%{_datadir}/darktable
109%{_desktopdir}/darktable.desktop
110%{_iconsdir}/hicolor/*/apps/darktable.png
111%{_iconsdir}/hicolor/scalable/apps/darktable.svg
112%dir %{_libdir}/darktable
113%dir %{_libdir}/darktable/plugins
114%dir %{_libdir}/darktable/plugins/imageio
115%dir %{_libdir}/darktable/plugins/imageio/format
116%dir %{_libdir}/darktable/plugins/imageio/storage
117%dir %{_libdir}/darktable/plugins/lighttable
118%dir %{_libdir}/darktable/views
119%attr(755,root,root) %{_libdir}/darktable/libdarktable.so
120%attr(755,root,root) %{_libdir}/darktable/plugins/*.so
121%attr(755,root,root) %{_libdir}/darktable/plugins/imageio/format/*.so
122%attr(755,root,root) %{_libdir}/darktable/plugins/imageio/storage/*.so
123%attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so
124%attr(755,root,root) %{_libdir}/darktable/views/*.so
125%{_mandir}/man1/darktable.*
This page took 0.092889 seconds and 4 git commands to generate.