no gconf since 1.0.5
[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 8Version: 1.4
6a697756 9Release: 4
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/
dcfc9a0f 16BuildRequires: GraphicsMagick-devel
fcbf7643 17BuildRequires: OpenEXR-devel >= 2.0
00ec5638
ER
18BuildRequires: SDL-devel
19BuildRequires: cairo-devel
20BuildRequires: cmake
dcfc9a0f 21BuildRequires: colord-devel
00ec5638
ER
22BuildRequires: curl-devel >= 7.18.0
23BuildRequires: dbus-glib-devel >= 0.80
24BuildRequires: desktop-file-utils
5fd336e1 25BuildRequires: exiv2-devel
00ec5638
ER
26BuildRequires: flickcurl-devel
27BuildRequires: fop
28BuildRequires: gettext
5fd336e1 29BuildRequires: gettext-devel
8829df84 30BuildRequires: glib2-devel
00ec5638 31BuildRequires: gnome-doc-utils
5fd336e1 32BuildRequires: gtk+2-devel
1b81dcba 33BuildRequires: intltool
00ec5638 34BuildRequires: lcms2-devel
5fd336e1 35BuildRequires: lensfun-devel
36BuildRequires: libglade2-devel
37BuildRequires: libgnome-keyring-devel
38BuildRequires: libgomp-devel
00ec5638 39BuildRequires: libgphoto2-devel >= 2.4.5
5fd336e1 40BuildRequires: libjpeg-devel
00ec5638
ER
41BuildRequires: libpng-devel
42BuildRequires: librsvg-devel >= 1:2.26
5fd336e1 43BuildRequires: libtiff-devel
dcfc9a0f 44BuildRequires: lua52-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
5fd336e1 64
65%build
00ec5638
ER
66install -d build
67cd build
68%cmake \
69 -DCMAKE_LIBRARY_PATH:PATH=%{_libdir} \
00ec5638
ER
70 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
71 -DBINARY_PACKAGE_BUILD=1 \
72 -DPROJECT_VERSION:STRING="%{name}-%{version}-%{release}" \
73 ..
5fd336e1 74
75%{__make}
76
77%install
78rm -rf $RPM_BUILD_ROOT
00ec5638 79%{__make} -C build install \
5fd336e1 80 DESTDIR=$RPM_BUILD_ROOT
81
00ec5638
ER
82%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
83
298f8009
JR
84%{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
85
5fd336e1 86%find_lang %{name} --with-gnome --with-omf
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post
92%update_desktop_database_post
93%update_icon_cache hicolor
5fd336e1 94
95%postun
96%update_desktop_database_postun
97%update_icon_cache hicolor
5fd336e1 98
99%files -f %{name}.lang
100%defattr(644,root,root,755)
00ec5638
ER
101%doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS
102%attr(755,root,root) %{_bindir}/darktable
fcbf7643 103%attr(755,root,root) %{_bindir}/darktable-cli
00ec5638
ER
104%attr(755,root,root) %{_bindir}/darktable-cltest
105%attr(755,root,root) %{_bindir}/darktable-viewer
dcfc9a0f 106%{_datadir}/appdata/darktable.appdata.xml
5fd336e1 107%{_datadir}/darktable
108%{_desktopdir}/darktable.desktop
109%{_iconsdir}/hicolor/*/apps/darktable.png
dcfc9a0f 110%{_iconsdir}/hicolor/scalable/apps/darktable*.svg
5fd336e1 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
dcfc9a0f
JR
124%{_mandir}/man1/darktable.1*
125%{_mandir}/man1/darktable-cli.1*
This page took 0.100346 seconds and 4 git commands to generate.