Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release-src > by-pkgid > e2e8650a811d37fbf3f81fa121329b1d > files > 6

gnome-utils-2.26.0-1mdv2009.1.src.rpm

%define schemas baobab gnome-dictionary gfloppy gnome-screenshot gnome-search-tool gnome-system-log
%define major 6
%define libname %mklibname gdict1.0_ %{major}
%define libnamedev %mklibname -d gdict1.0
Summary: GNOME utility programs such as file search and calculator
Name: gnome-utils
Version: 2.26.0
Epoch: 1
Release: %mkrel 1
License: GPLv2+ and GFDL
Group:  Graphical desktop/GNOME
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2

Patch2: gnome-utils-gfloppy-device.patch
Patch3: gnome-utils-2.25.0-format-strings.patch
# (fc) 2.19.92-2mdv unmount floppy before trying for format them (Mdv bug #24590)
Patch4: gnome-utils-2.19.92-unmount-floppy.patch
Patch6: gnome-utils-2.25.90-linking.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
URL: http://www.gnome.org/softwaremap/projects/gnome-utils/

BuildRequires:  libpanel-applet-2-devel >= 2.9.4
BuildRequires:  gnome-desktop-devel >= 2.2.0
BuildRequires:  libglade2.0-devel >= 2.3.0
BuildRequires:  gnome-vfs2-devel >= 2.8.4
BuildRequires:  avahi-glib-devel avahi-client-devel
BuildRequires:  libxmu-devel
BuildRequires:  libgtop2.0-devel
BuildRequires:	ncurses-devel
BuildRequires:  scrollkeeper
BuildRequires:	gnome-doc-utils
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  desktop-file-utils
#needed for gfloppy
BuildRequires:  e2fsprogs-devel
BuildRequires:  hal-devel

Requires: gnome-mount
Requires(post): scrollkeeper
Requires(postun): scrollkeeper

Obsoletes:	gfloppy
Obsoletes:	gnome-admin
Obsoletes:	baobab
Provides: gfloppy
Provides: gnome-admin
Provides: baobab

Conflicts: gnome-panel < 2.10.1

%description
GNOME is the GNU Network Object Model Environment. This powerful
environment is both easy to use and easy to configure.

GNOME Utilities is a collection of small applications all there to make
your day just that little bit brighter - System Log Viewer, 
Search Tool, Dictionary, Floppy Format.

%package -n %libname
Group: System/Libraries
Summary: GNOME dictionary shared library

%description -n %libname
This is the shared library required by the GNOME Dictionary.

%package -n %libnamedev
Group: Development/C
Summary: GNOME dictionary library development files
Requires: %libname = %epoch:%version
Provides: libgdict1.0-devel = %epoch:%version-%release
Obsoletes: %mklibname -d gdict1.0_ 5

%description -n %libnamedev
This is the shared library required by the GNOME Dictionary.

%prep
%setup -q
%patch2 -p1 -b .device
%patch3 -p1
%patch4 -p1 -b .unmount-floppy
%patch6 -p1 -b .linking
autoreconf -fi

%build

%configure2_5x  --enable-gfloppy --enable-hal

%make

%install
rm -rf $RPM_BUILD_ROOT

GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std
rm -rf %buildroot/var

%{find_lang} %{name}-2.0 --with-gnome --all-name
for omf in %buildroot%_datadir/omf/*/{*-??,*-??_??}.omf ;do
echo "%lang($(basename $omf|sed -e s/.*-// -e s/.omf//)) $(echo $omf|sed s!%buildroot!!)" >> %name-2.0.lang
done

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-System-Configuration-Hardware" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/gfloppy.desktop
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-System-FileTools" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/{gnome-search-tool.desktop,baobab.desktop}
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-System-Monitoring" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/gnome-system-log.desktop
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-Office-Accessories" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/gnome-dictionary.desktop

for i in $RPM_BUILD_ROOT%{_datadir}/applications/* ; do
 desktop-file-validate $i
done

rm -fv %buildroot%_bindir/test-reader

%if %mdkversion < 200900
%post
%update_scrollkeeper
%post_install_gconf_schemas %schemas
%{update_menus}
%update_icon_cache hicolor
%endif

%preun
%preun_uninstall_gconf_schemas %schemas

%if %mdkversion < 200900
%postun
%clean_scrollkeeper
%{clean_menus}
%clean_icon_cache hicolor
%endif

%if %mdkversion < 200900
%post -n %libname -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %libname -p /sbin/ldconfig
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}-2.0.lang
%defattr(-, root, root)

%doc AUTHORS COPYING ChangeLog NEWS README
%{_sysconfdir}/gconf/schemas/baobab.schemas
%{_sysconfdir}/gconf/schemas/gfloppy.schemas
%{_sysconfdir}/gconf/schemas/gnome-dictionary.schemas
%{_sysconfdir}/gconf/schemas/gnome-screenshot.schemas
%{_sysconfdir}/gconf/schemas/gnome-search-tool.schemas
%{_sysconfdir}/gconf/schemas/gnome-system-log.schemas
%_bindir/baobab
%_bindir/gfloppy
%_bindir/gnome-dictionary
%_bindir/gnome-panel-screenshot
%_bindir/gnome-screenshot
%_bindir/gnome-search-tool
%_bindir/gnome-system-log
%{_libdir}/bonobo/servers/*
%{_datadir}/applications/*
%{_datadir}/baobab/
%{_datadir}/gnome-screenshot
%{_datadir}/gnome-utils
%{_datadir}/gnome-2.0/ui/*
%_libexecdir/gnome-dictionary-applet
%_datadir/gdict*
%{_datadir}/gnome-dictionary/
%dir %{_datadir}/omf/*
%{_datadir}/omf/*/*-C.omf
%_datadir/icons/hicolor/*/apps/*
%{_mandir}/*/*
%{_datadir}/pixmaps/*

%files -n %libname
%defattr(-, root, root)
%_libdir/libgdict-1.0.so.%{major}*

%files -n %libnamedev
%defattr(-, root, root)
%_libdir/libgdict*.so
%attr(644,root,root) %_libdir/libgdict*a
%_libdir/pkgconfig/gdict*.pc
%{_datadir}/gtk-doc/html/gdict
%_includedir/gdict*


%changelog
* Tue Mar 17 2009 Götz Waschk <waschk@mandriva.org> 1:2.26.0-1mdv2009.1
+ Revision: 356307
- update to new version 2.26.0

* Mon Mar 02 2009 Götz Waschk <waschk@mandriva.org> 1:2.25.92-1mdv2009.1
+ Revision: 347293
- update to new version 2.25.92

* Mon Feb 02 2009 Götz Waschk <waschk@mandriva.org> 1:2.25.90-1mdv2009.1
+ Revision: 336719
- new version
- rediff patch 6

* Fri Jan 09 2009 Götz Waschk <waschk@mandriva.org> 1:2.25.2-1mdv2009.1
+ Revision: 327529
- new version
- add log viewer schema file

* Fri Jan 09 2009 Götz Waschk <waschk@mandriva.org> 1:2.25.1-1mdv2009.1
+ Revision: 327385
- new version
- drop patches 0,1
- update patch 6
- remove old icons
- update file list
- drop old deps

* Sat Dec 20 2008 Götz Waschk <waschk@mandriva.org> 1:2.25.0-1mdv2009.1
+ Revision: 316426
- new version
- update patch 3
- drop patch 5
- fix build

* Sun Nov 09 2008 Oden Eriksson <oeriksson@mandriva.com> 1:2.24.1-4mdv2009.1
+ Revision: 301532
- rebuilt against new libxcb

* Thu Nov 06 2008 Götz Waschk <waschk@mandriva.org> 1:2.24.1-3mdv2009.1
+ Revision: 300183
- rebuild for new  gnome-desktop

* Sun Nov 02 2008 Olivier Blin <oblin@mandriva.com> 1:2.24.1-2mdv2009.1
+ Revision: 299302
- do not hardcode icon extension in gnome-dictionary.desktop
  (not allowed by XDG desktop entry spec, reported as Gnome #558980)

* Tue Oct 21 2008 Götz Waschk <waschk@mandriva.org> 1:2.24.1-1mdv2009.1
+ Revision: 295928
- update to new version 2.24.1

* Mon Sep 22 2008 Götz Waschk <waschk@mandriva.org> 1:2.24.0-1mdv2009.0
+ Revision: 286813
- new version

* Mon Sep 08 2008 Götz Waschk <waschk@mandriva.org> 1:2.23.92-1mdv2009.0
+ Revision: 282595
- new version

* Mon Aug 25 2008 Götz Waschk <waschk@mandriva.org> 1:2.23.90-1mdv2009.0
+ Revision: 276012
- new version
- drop patch 3
- new major
- update build deps

* Wed Jul 23 2008 Götz Waschk <waschk@mandriva.org> 1:2.20.0.1-4mdv2009.0
+ Revision: 242273
- update license
- update build deps

* Thu Jun 12 2008 Pixel <pixel@mandriva.com> 1:2.20.0.1-3mdv2009.0
+ Revision: 218423
- rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
- do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Tue Mar 04 2008 Oden Eriksson <oeriksson@mandriva.com> 1:2.20.0.1-3mdv2008.1
+ Revision: 178729
- rebuild

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Tue Sep 18 2007 Götz Waschk <waschk@mandriva.org> 1:2.20.0.1-1mdv2008.0
+ Revision: 89519
- new version

* Mon Sep 17 2007 Götz Waschk <waschk@mandriva.org> 1:2.20.0-1mdv2008.0
+ Revision: 88994
- new version

* Thu Sep 13 2007 Frederic Crozat <fcrozat@mandriva.com> 1:2.19.92-2mdv2008.0
+ Revision: 85137
- Patch4: unmount floppy before trying to format it (Mdv bug #24590)

* Thu Sep 06 2007 Götz Waschk <waschk@mandriva.org> 1:2.19.92-1mdv2008.0
+ Revision: 81012
- new version
- fix desktop entries

* Mon Aug 27 2007 Götz Waschk <waschk@mandriva.org> 1:2.19.91-1mdv2008.0
+ Revision: 71766
- new version
- drop patch 3

  + Frederic Crozat <fcrozat@mandriva.com>
    - Patch3: fix Desktop location when using XDG dir (Mdv bug #32776)
    - Remove old menu file
    - Hide most tools in KDE menu

* Tue Aug 14 2007 Götz Waschk <waschk@mandriva.org> 1:2.19.90-1mdv2008.0
+ Revision: 62995
- new version
- new devel name

* Wed Apr 18 2007 Götz Waschk <waschk@mandriva.org> 1:2.18.1-1mdv2008.0
+ Revision: 14420
- new version


* Sun Mar 11 2007 Götz Waschk <waschk@mandriva.org> 2.18.0-1mdv2007.1
+ Revision: 141417
- new version

* Mon Feb 12 2007 Götz Waschk <waschk@mandriva.org> 1:2.17.92-1mdv2007.1
+ Revision: 120225
- new version
- fix file list

* Wed Jan 24 2007 Götz Waschk <waschk@mandriva.org> 1:2.17.91-1mdv2007.1
+ Revision: 112848
- new version

* Tue Jan 23 2007 Götz Waschk <waschk@mandriva.org> 1:2.17.90-3mdv2007.1
+ Revision: 112517
- useless release bump
- bot rebuild
- new version

* Tue Jan 09 2007 Götz Waschk <waschk@mandriva.org> 1:2.17.1-1mdv2007.1
+ Revision: 106309
- new version
- readd gdict documentation

* Tue Nov 28 2006 Götz Waschk <waschk@mandriva.org> 1:2.17.0-4mdv2007.1
+ Revision: 87906
- bot rebuild
- rebuild
- fix buildrequires
- new version
- new version

* Fri Oct 13 2006 Götz Waschk <waschk@mandriva.org> 1:2.16.1-3mdv2007.1
+ Revision: 63839
- rebuild
- unpack patches
- Import gnome-utils

* Fri Oct 06 2006 Götz Waschk <waschk@mandriva.org> 1:2.16.1-1mdv2007.0
- New version 2.16.1

* Thu Sep 14 2006 Emmanuel Andry <eandry@mandriva.org> 1:2.16.0-2mdv2007.0
- diff patch 2 to fix bug #24587

* Tue Sep 05 2006 Götz Waschk <waschk@mandriva.org> 1:2.16.0-1mdv2007.0
- New release 2.16.0

* Sun Aug 27 2006 Götz Waschk <waschk@mandriva.org> 2.15.94-1mdv2007.0
- update file list
- New release 2.15.94

* Tue Aug 22 2006 Frederic Crozat <fcrozat@mandriva.com> 1:2.15.93-1mdv2007.0
- Release 2.15.93

* Wed Aug 09 2006 Götz Waschk <waschk@mandriva.org> 1:2.15.92-1mdv2007.0
- New release 2.15.92

* Wed Aug 09 2006 Götz Waschk <waschk@mandriva.org> 1:2.15.91-1mdv2007.0
- New release 2.15.91

* Fri Aug 04 2006 Frederic Crozat <fcrozat@mandriva.com> 1:2.15.90-2mdv2007.0
- Rebuild with latest dbus

* Wed Jul 26 2006 Götz Waschk <waschk@mandriva.org> 2.15.90-1mdv2007.0
- xdg menu
- new major
- drop patch 2
- New release 2.15.90

* Thu Jun 15 2006 Götz Waschk <waschk@mandriva.org> 2.15.4-2mdv2007.0
- fix buildrequires

* Thu Jun 15 2006 Götz Waschk <waschk@mandriva.org> 1:2.15.4-1mdv2007.0
- New release 2.15.4

* Wed Jun 14 2006 Götz Waschk <waschk@mandriva.org> 2.15.3-1mdv2007.0
- add icons
- bump major
- patch to add missing files
- New release 2.15.3

* Sun Jun 04 2006 Götz Waschk <waschk@mandriva.org> 2.15.0-2mdv2007.0
- fix buildrequires

* Sat Jun 03 2006 Frederic Crozat <fcrozat@mandriva.com> 1:2.15.0-1mdv2007.0
- Release 2.15.0

* Thu Apr 20 2006 Götz Waschk <waschk@mandriva.org> 2.14.0-2mdk
- fix buildrequires

* Wed Apr 19 2006 Frederic Crozat <fcrozat@mandriva.com> 1:2.14.0-1mdk
- Release 2.14.0
- Remove patch 2 (merged upstream)

* Fri Feb 24 2006 Frederic Crozat <fcrozat@mandriva.com> 1:2.12.2-4mdk
- Patch2: fix gsearchtool crash when nautilus isn't installed
- Disable HAL on old distributions

* Mon Jan 30 2006 Olivier Blin <oblin@mandriva.com> 2.12.2-3mdk
- use pam_unix instead of obsolete pam_pwdb

* Thu Jan 26 2006 Frederic Crozat <fcrozat@mandriva.com> 1:2.12.2-2mdk
- Rebuild with latest dbus
- use mkrel

* Mon Nov 28 2005 Götz Waschk <waschk@mandriva.org> 2.12.2-1mdk
- drop merged patch 1
- New release 2.12.2

* Thu Oct 13 2005 Frederic Crozat <fcrozat@mandriva.com> 1:2.12.1-2mdk
- Patch1: don't freeze logview when /dev/tty* is in syslog.conf

* Sat Oct 08 2005 Frederic Crozat <fcrozat@mandriva.com> 2.12.1-1mdk
- Release 2.12.1

* Tue Jul 26 2005 Frederic Crozat <fcrozat@mandriva.com> 2.10.1-4mdk 
- Fix typo in preun (Mdk bug #16767)

* Tue Apr 26 2005 Frederic Crozat <fcrozat@mandriva.com> 2.10.1-3mdk 
- Add conflicts to ease upgrade (John Campbell)

* Sun Apr 24 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.10.1-2mdk
- add BuildRequires: libgnomeprintui-devel

* Sat Apr 23 2005 Frederic Crozat <fcrozat@mandriva.com> 2.10.1-1mdk 
- Release 2.10.1 (based on Götz Waschk package)
- Remove patches 1 (use hal instead), 2 (merged upstream)

* Sat Apr 02 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 2.8.1-2mdk 
- Patch2: fix i18n init for windows name

* Wed Oct 20 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.8.1-1mdk
- New release 2.8.1
- Replace patch1 with fedora version (use glibc header to get major)

* Fri Aug 27 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.2-4mdk
- Fix menu

* Fri Jul 09 2004 Götz Waschk <waschk@linux-mandrake.com> 2.6.2-3mdk
- patch for using the right kernel headers

* Wed May 26 2004 Götz Waschk <waschk@linux-mandrake.com> 2.6.2-2mdk
- fix buildrequires

* Sat May 01 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.2-1mdk
- New release 2.6.2

* Fri Apr 23 2004 Götz Waschk <waschk@linux-mandrake.com> 2.6.1-2mdk
- fix buildrequires

* Wed Apr 21 2004 Goetz Waschk <waschk@linux-mandrake.com> 2.6.1-1mdk
- New release 2.6.1

* Wed Apr 07 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 2.6.0-1mdk
- Release 2.6.0 (with Götz help)
- Remove patch1 (merged upstream)