From: Elan Ruusamäe Date: Sun, 26 Aug 2012 11:12:52 +0000 (+0300) Subject: - up to 1.0.5 X-Git-Tag: auto/th/darktable-1.0.5-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdarktable.git;a=commitdiff_plain;h=00ec5638576f078a5c629b5b1fcb6a56b3866930 - up to 1.0.5 --- diff --git a/darktable.spec b/darktable.spec index ab0013f..93bba12 100644 --- a/darktable.spec +++ b/darktable.spec @@ -1,31 +1,50 @@ +# +# 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.0.5 +Release: 1 License: GPL v3 Group: X11/Applications/Graphics Source0: http://downloads.sourceforge.net/darktable/%{name}-%{version}.tar.gz -# Source0-md5: 64a0c4ba2000605137ba2e57434ee3fe +# Source0-md5: 9ad88a1a6b9761fce28c8073d8f47941 URL: http://darktable.sourceforge.net/ +BuildRequires: GConf2 BuildRequires: GConf2-devel -BuildRequires: OpenEXR-devel -BuildRequires: curl-devel -BuildRequires: dbus-glib-devel +BuildRequires: OpenEXR-devel >= 1.6 +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: 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) @@ -40,17 +59,26 @@ darktable to wirtualny podświetlany stół i ciemnia dla fotografów %setup -q %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} + %find_lang %{name} --with-gnome --with-omf %clean @@ -68,8 +96,10 @@ 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-cltest +%attr(755,root,root) %{_bindir}/darktable-viewer %{_datadir}/darktable %{_desktopdir}/darktable.desktop %{_iconsdir}/hicolor/*/apps/darktable.png @@ -88,4 +118,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