gnome-mag.spec
author dermotm
Mon, 18 Oct 2004 09:30:38 +0000
changeset 4276 2a2c7f354601
parent 4265 9c26d9ef4f72
child 4357 2474a25f2946
permissions -rw-r--r--
Incremented release numbers for build 21

Name:         gnome-mag
License:      LGPL
Group:        System/Libraries
Version:      0.11.8
Release:      22
Distribution: Cinnabar 
Vendor:       Sun Microsystems, Inc.
Summary:      GNOME magnifier
Source:       http://ftp.gnome.org/pub/GNOME/sources/gnome-mag/0.11/%{name}-%{version}.tar.bz2
Source1: gnome-mag-l10n-po-1.6.tar.bz2
Patch1:       gnome-mag-01-uninstalled.pc.diff
Patch2:       gnome-mag-03-g11n-alllinguas.diff
URL:          http://developer.gnome.org/projects/gap/
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Docdir:       %{_defaultdocdir}/%{name}
Autoreqprov:  on
Prereq:	      /sbin/ldconfig

%define gtk2_version 2.2.4
%define libbonobo_version 2.4.0
%define atk_version 1.4.0
%define gail_version 1.4.0
%define gnome_speech_version 0.3.0

# Requirements: libgnome-2.0 >= 1.102.0 gconf-2.0 >= 1.1.5 glib-2.0 >= 1.3.12 libxml-2.0 >= 2.4.6 gnome-speech-1.0 >= 0.3.0
BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: libbonobo-devel >= %{libbonobo_version}
BuildRequires: gnome-speech >= %{gnome_speech_version}
Requires:      gtk2 >= %{gtk2_version}
Requires:      libbonobo >= %{libbonobo_version}
Requires:      gail >= %{gail_version}

%description
gnome-mag is a screen magnifier.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
/usr/bin/bzcat -dc %SOURCE1|tar xf -

%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
  CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

autoconf
CFLAGS="$RPM_OPT_FLAGS"			\
./configure --prefix=%{_prefix}			\
            --sysconfdir=%{_sysconfdir}		\
            --mandir=%{_mandir}
make -j $CPUS

%install
make DESTDIR=$RPM_BUILD_ROOT install
#clean up unpackaged files
rm $RPM_BUILD_ROOT%{_libdir}/*.la


%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/*
%{_includedir}/gnome-mag-1.0/*/*
%{_libdir}/*.so*
%{_libdir}/bonobo/servers/GNOME_Magnifier.server
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gnome-mag/*
%{_datadir}/idl/gnome-mag-1.0/GNOME_Magnifier.idl
%{_datadir}/locale/*/*/*

%changelog
* Wed Oct 06 2004 - [email protected]
- Removed patch, revved to 0.11.8.  Partial fix for bugtraq 5099413.

* Mon Sep 20 2004 - [email protected]
- Added patch gnome-mag-02-damage-fix.diff for bugtraq 5099413.

* Tue Aug 31 2004 - [email protected]
- Revved to 0.11.7, gives readable SourceDisplay and TargetDisplay
  params, and better debugging support for XDAMAGE.

* Tue Aug 31 2004 - [email protected]
- Revved to 0.11.5, to include LoginHelper support.

* Wed Aug 18 2004 - [email protected]
- removed --disable-gtk-doc since this isn't an option this module's
  configure takes.

* Tue Aug 17 2004 - [email protected]
- Updated to version 0.11.4, to fix bug #5083109.

* Fri Jul 30 2004 - [email protected]
- Updated to version 0.11.3, which includes a fix for
  the configure path to Damage and XFixes client libs,
  which are in /usr/openwin/sfw/lib for some reason.

* Tue Jul 12 2004 - [email protected]
- fixed packaging up for rpm4

* Thu Jul 08 2004 - [email protected]
- Updated l10n content to gnome-mag-l10n-po-1.2.tar.bz2

* Wed Jul 07 2004 - [email protected]
- added "-j $CPUS" to make to speed up builds

* Tue May 18 2004 - <[email protected]>
- add patch 01 (uninstalled.pc)

* Fri May 14 2004 - <[email protected]>
- Bump to 0.11.2

* Wed May 12 2004 - [email protected]
- Updated l10n content to gnome-mag-l10n-po-1.1.tar.bz2

* Thu Apr 22 2004 - <[email protected]>
- Bump to 0.11.1

* Wed Mar 31 2004 - [email protected]
- replace tar jxf with the more solaris friendly
  bzcat piped through tar

* Mon Mar 29 2004 - [email protected]
- Adding gnome-mag-l10n-po-1.0.tar.bz2 l10n content

* Tue Mar 23 2004 - <[email protected]>
- Bump to 0.10.10

* Wed Feb 25 2004 - [email protected]
- Created new spec file for gnome-mag