]> git.pld-linux.org Git - packages/f-spot.git/blobdiff - f-spot.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/f-spot.git] / f-spot.spec
index a53f6cbe8aecaaa66ddb714b2330d9c7d651b5d8..29f96a2d54e1933d1226ad3eaf9436f6bf81332d 100644 (file)
@@ -1,60 +1,57 @@
 #
-# TODO:
-#      - use system libgphoto2-sharp.dll, NDesk.Glitz.dll, gnome-keyring-sharp.dll
-#        Tao (http://www.taoframework.com/), semweb (http://taubz.for.net/code/semweb)
-#
-%include       /usr/lib/rpm/macros.mono
-%define                _noautoreq 'mono(Mono.*)' 'mono(FlickrNet)' 'mono(gnome-keyring-sharp)'
+%bcond_without gnome2
 #
 Summary:       Personal photo manager
 Summary(pl.UTF-8):     Menedżer prywatnych galerii fotograficznych
 Name:          f-spot
-Version:       0.6.1.3
-Release:       1
+Version:       0.8.2
+Release:       7
 License:       GPL
 Group:         X11/Applications/Graphics
-Source0:       http://ftp.gnome.org/Public/GNOME/sources/f-spot/0.6/%{name}-%{version}.tar.bz2
-# Source0-md5: fbfef5c37c201f54b590f03d5b0000d5
+Source0:       http://ftp.gnome.org/Public/GNOME/sources/f-spot/0.8/%{name}-%{version}.tar.bz2
+# Source0-md5: 3f2286835c9cdf44e50bc564d8e6b892
+Patch0:                %{name}-build.patch
+Patch1:                %{name}-PixbufLoader.patch
 URL:           http://www.gnome.org/projects/f-spot/
 BuildRequires: GConf2-devel >= 2.14.0
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: beagle-devel >= 0.3.0
-BuildRequires: dotnet-gnome-desktop-sharp-devel >= 2.16.0
+BuildRequires: dotnet-flickrnet
+BuildRequires: dotnet-gnome-keyring-sharp-devel
 BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
 BuildRequires: dotnet-gtk-sharp2-devel >= 2.12.1
-BuildRequires: dotnet-libgphoto2-sharp-devel >= 2.1.4
 BuildRequires: dotnet-ndesk-dbus-glib-sharp-devel
-BuildRequires: gettext-devel
-BuildRequires: gnome-common
+BuildRequires: gettext-tools
 BuildRequires: gnome-doc-utils
 BuildRequires: gnome-icon-theme
-BuildRequires: gtk+2-devel >= 2:2.12.0
 BuildRequires: intltool >= 0.40.0
 BuildRequires: lcms-devel >= 1.12
-BuildRequires: libexif-devel >= 1:0.6.13
+BuildRequires: libgnome-keyring-devel
 BuildRequires: libgnomeui-devel >= 2.16.0
-BuildRequires: libgphoto2-devel >= 2.2.1
-BuildRequires: libjpeg-devel
-BuildRequires: libstdc++-devel
 BuildRequires: libtool
+BuildRequires: libunique-devel
 BuildRequires: mono-addins-devel
 BuildRequires: mono-csharp >= 1.1.17
 BuildRequires: pkgconfig
 BuildRequires: rpmbuild(find_lang) >= 1.23
 BuildRequires: rpmbuild(macros) >= 1.311
-BuildRequires: sqlite-devel >= 2.8.6
+BuildRequires: sqlite3-devel
 Requires(post,postun): desktop-file-utils
-Requires(post,postun): gtk+2
+Requires(post,postun): gtk-update-icon-cache
 Requires(post,postun): hicolor-icon-theme
 Requires(post,postun): scrollkeeper
-Requires:      dotnet-libgphoto2-sharp
+Requires:      mono-addins
+Suggests:      dcraw
+Suggests:      udev-libgphoto2
+Suggests:      dbus-x11
 # sr@Latn vs. sr@latin
 Conflicts:     glibc-misc < 6:2.7
 ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9
 ExcludeArch:   i386
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _noautoreq mono(Mono.*) mono(FlickrNet) mono(gnome-keyring-sharp)
+
 %description
 F-Spot is an application designed to provide personal photo management
 to the GNOME desktop.
@@ -78,14 +75,17 @@ Moduł F-Spot dla gnome-screensavera.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__intltoolize}
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I build/m4/f-spot -I build/m4/shamrock -I build/m4/shave
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+CFLAGS="-pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14"
 %configure \
        --disable-static \
        --disable-scrollkeeper \
@@ -114,11 +114,13 @@ rm -rf $RPM_BUILD_ROOT
 %scrollkeeper_update_post
 %update_desktop_database_post
 %update_icon_cache hicolor
+%gconf_schema_install:
 
 %postun
 %scrollkeeper_update_postun
 %update_desktop_database_postun
 %update_icon_cache hicolor
+%gconf_schema_uninstall
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -129,8 +131,8 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}/*.exe
 %{_libdir}/%{name}/*.addins
-%dir %{_libdir}/%{name}/extensions
-%{_libdir}/%{name}/extensions/*
+%dir %{_libdir}/%{name}/Extensions
+%{_libdir}/%{name}/Extensions/*
 %attr(755,root,root) %{_libdir}/%{name}/lib*.so*
 %{_libdir}/%{name}/*.dll
 %{_libdir}/%{name}/*.mdb
@@ -138,8 +140,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/%{name}/*.exe.config
 %{_desktopdir}/*.desktop
 %{_pkgconfigdir}/f-spot.pc
+%{_sysconfdir}/gconf/schemas/f-spot.schemas
 
+%if %{with gnome2}
 %files screensaver
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/gnome-screensaver/f-spot-screensaver
 %{_desktopdir}/screensavers/f-spot-screensaver.desktop
+%endif
This page took 0.084698 seconds and 4 git commands to generate.