X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdarktable.git;a=blobdiff_plain;f=darktable.spec;h=5e715f8af3c7bfd1169c15eebaaca05d086a523c;hp=ab0013f95a842d9b328aa071d756af73825d8c3f;hb=8f829353987d94c5f52eb446b6ea7cdae1ddaaed;hpb=a3e07e2accd513e8db79374371b0c5068182e524 diff --git a/darktable.spec b/darktable.spec index ab0013f..5e715f8 100644 --- a/darktable.spec +++ b/darktable.spec @@ -1,31 +1,53 @@ +# +# Conditional build: +%bcond_without gegl # build without GeGL + Summary: darktable is a virtual lighttable and darkroom for photographers Summary(pl.UTF-8): darktable to wirtualny podświetlany stół i ciemnia dla fotografów Name: darktable -Version: 0.6 -Release: 2 +Version: 1.2 +Release: 3 License: GPL v3 Group: X11/Applications/Graphics -Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.gz -# Source0-md5: 64a0c4ba2000605137ba2e57434ee3fe +Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.xz +# Source0-md5: 31bfd13d4786aac4f99d5155a811602b +Patch0: cmake-glib.patch +Patch1: openexr2.patch URL: http://darktable.sourceforge.net/ +BuildRequires: GConf2 BuildRequires: GConf2-devel -BuildRequires: OpenEXR-devel -BuildRequires: curl-devel -BuildRequires: dbus-glib-devel +BuildRequires: OpenEXR-devel >= 2.0 +BuildRequires: SDL-devel +BuildRequires: cairo-devel +BuildRequires: cmake +BuildRequires: curl-devel >= 7.18.0 +BuildRequires: dbus-glib-devel >= 0.80 +BuildRequires: desktop-file-utils BuildRequires: exiv2-devel +BuildRequires: flickcurl-devel +BuildRequires: fop +BuildRequires: gettext BuildRequires: gettext-devel +BuildRequires: glib2-devel +BuildRequires: gnome-doc-utils BuildRequires: gtk+2-devel BuildRequires: intltool -BuildRequires: lcms-devel +BuildRequires: lcms2-devel BuildRequires: lensfun-devel BuildRequires: libglade2-devel BuildRequires: libgnome-keyring-devel BuildRequires: libgomp-devel -BuildRequires: libgphoto2-devel +BuildRequires: libgphoto2-devel >= 2.4.5 BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: librsvg-devel >= 1:2.26 BuildRequires: libtiff-devel -BuildRequires: pkgconfig +BuildRequires: pkgconfig >= 0.22 +BuildRequires: sqlite-devel BuildRequires: sqlite3-devel +%if %{with gegl} +BuildRequires: gegl-devel +%endif Requires(post,postun): gtk-update-icon-cache Requires(post,postun): hicolor-icon-theme BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -38,19 +60,32 @@ darktable to wirtualny podświetlany stół i ciemnia dla fotografów %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build - -%configure \ - --disable-static +install -d build +cd build +%cmake \ + -DCMAKE_LIBRARY_PATH:PATH=%{_libdir} \ + -DDONT_INSTALL_GCONF_SCHEMAS:BOOLEAN=ON \ + -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ + -DBINARY_PACKAGE_BUILD=1 \ + -DPROJECT_VERSION:STRING="%{name}-%{version}-%{release}" \ + .. %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ +%{__make} -C build install \ + GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \ DESTDIR=$RPM_BUILD_ROOT +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} + +%{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,} + %find_lang %{name} --with-gnome --with-omf %clean @@ -68,8 +103,11 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) -%doc AUTHORS README -%attr(755,root,root) %{_bindir}/darktable +%doc doc/README doc/AUTHORS doc/LICENSE doc/TRANSLATORS +%attr(755,root,root) %{_bindir}/darktable +%attr(755,root,root) %{_bindir}/darktable-cli +%attr(755,root,root) %{_bindir}/darktable-cltest +%attr(755,root,root) %{_bindir}/darktable-viewer %{_datadir}/darktable %{_desktopdir}/darktable.desktop %{_iconsdir}/hicolor/*/apps/darktable.png @@ -88,4 +126,3 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/darktable/plugins/lighttable/*.so %attr(755,root,root) %{_libdir}/darktable/views/*.so %{_mandir}/man1/darktable.* -%{_sysconfdir}/gconf/schemas/darktable.schemas