Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-mag
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: dermot
      9 #
     10 Name:         gnome-mag
     11 License:      LGPL
     12 Group:        System/Libraries
     13 Version:      0.13.1
     14 Release:      201
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      GNOME magnifier
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.13/%{name}-%{version}.tar.bz2
     19 Source1:      magnifier.1.gz
     20 Patch1:       gnome-mag-01-uninstalled.pc.diff
     21 URL:          http://developer.gnome.org/projects/gap/
     22 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     23 Docdir:       %{_defaultdocdir}/%{name}
     24 Autoreqprov:  on
     25 Prereq:	      /sbin/ldconfig
     26 
     27 %define gtk2_version 2.2.4
     28 %define libbonobo_version 2.4.0
     29 %define popt_version 1.6.4
     30 %define at_spi_version 1.5.4
     31 
     32 # Requirements
     33 BuildRequires: gtk2-devel >= %{gtk2_version}
     34 BuildRequires: libbonobo-devel >= %{libbonobo_version}
     35 BuildRequires: popt-devel >= %{popt_version}
     36 Requires:      gtk2 >= %{gtk2_version}
     37 Requires:      libbonobo >= %{libbonobo_version}
     38 Requires:      at-spi >= %at_spi_version
     39 
     40 %description
     41 gnome-mag is a screen magnification service using Bonobo.
     42 
     43 %prep
     44 %setup -q
     45 %patch1 -p1
     46 
     47 %build
     48 %ifos linux
     49 if [ -x /usr/bin/getconf ]; then
     50   CPUS=`getconf _NPROCESSORS_ONLN`
     51 fi
     52 %else
     53   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     54 %endif
     55 if test "x$CPUS" = "x" -o $CPUS = 0; then
     56   CPUS=1
     57 fi
     58 
     59 autoconf
     60 CFLAGS="$RPM_OPT_FLAGS"			\
     61 ./configure --prefix=%{_prefix}			\
     62             --sysconfdir=%{_sysconfdir}		\
     63 	    --libdir=%{_libdir}			\
     64 	    --bindir=%{_bindir}			\
     65 	    --includedir=%{_includedir}		\
     66             --mandir=%{_mandir}
     67 make -j $CPUS
     68 
     69 %install
     70 make DESTDIR=$RPM_BUILD_ROOT install
     71 install -d $RPM_BUILD_ROOT%{_mandir}/man1
     72 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
     73 #clean up unpackaged files
     74 rm $RPM_BUILD_ROOT%{_libdir}/*.la
     75 
     76 
     77 %clean
     78 rm -rf $RPM_BUILD_ROOT
     79 
     80 %post
     81 /sbin/ldconfig
     82 
     83 %postun
     84 /sbin/ldconfig
     85 
     86 %files
     87 %defattr(-,root,root)
     88 %{_bindir}/*
     89 %{_includedir}/gnome-mag-1.0/*/*
     90 %{_libdir}/*.so*
     91 %{_libdir}/bonobo/servers/GNOME_Magnifier.server
     92 %{_libdir}/pkgconfig/*.pc
     93 %{_datadir}/gnome-mag/*
     94 %{_datadir}/idl/gnome-mag-1.0/GNOME_Magnifier.idl
     95 %{_datadir}/locale/*/*/*
     96 %{_mandir}/man1/*
     97 
     98 %changelog
     99 * Wed Jul 26 2006 - damien.carbery@sun.com
    100 - Bump to 0.13.1.
    101 * Tue Jul 25 2006 - damien.carbery@sun.com
    102 - Bump to 0.13.0.
    103 * Mon Mar 13 2006 - damien.carbery@sun.com
    104 - Bump to 0.12.4.
    105 * Tue Oct 11 2005 - damien.carbery@sun.com
    106 - Bump to 0.12.2
    107 * Thu May 12 2005 - bill.haneman@sun.com
    108 - Revved to 0.12.1, fixes #6199929.  Removed obsolete g11n patch.
    109 * Fri Feb 04 2005 - bill.haneman@sun.com
    110 - Revved to 0.11.14, fixes bugzilla bug #166282 which should be a P2
    111   bugster bug.
    112 * Fri Jan 21 2005 - bill.haneman@sun.com
    113   Corrected dependencies - removed gnome-speech and gail dependencies,
    114   added at-spi dependency (for LoginHelper API) and popt dependency.
    115 * Wed Jan 19 2005 - bill.haneman@sun.com
    116   Revved to 0.11.13, fixes for 618662, 6217152, 6205225, 6199929.
    117 * Tue Dec 07 2004 - bill.haneman@sun.com
    118   Revved to 0.11.11, fixes for bugs 6192805, 6182499, 6182502.
    119 * Fri Nov 19 2004 - damien.carbery@sun.com
    120 - add --bindir=%{_bindir}, --libdir=%{_libdir} and --includedir=%{_includedir}
    121   to configure opts.
    122 * Fri Nov 05 2004 - bill.haneman@sun.com
    123 - Revved to 0.11.10.  Should improve bugtraq 5099413 further.
    124 * Thu Oct 28 2004 - matt.keenan@sun.com
    125 - Add magnifier.1 man page
    126 * Wed Oct 06 2004 - bill.haneman@sun.com
    127 - Removed patch, revved to 0.11.8.  Partial fix for bugtraq 5099413.
    128 * Mon Sep 20 2004 - bill.haneman@sun.com
    129 - Added patch gnome-mag-02-damage-fix.diff for bugtraq 5099413.
    130 * Tue Aug 31 2004 - bill.haneman@sun.com
    131 - Revved to 0.11.7, gives readable SourceDisplay and TargetDisplay
    132   params, and better debugging support for XDAMAGE.
    133 * Tue Aug 31 2004 - bill.haneman@sun.com
    134 - Revved to 0.11.5, to include LoginHelper support.
    135 * Wed Aug 18 2004 - brian.cameron@sun.com
    136 - removed --disable-gtk-doc since this isn't an option this module's
    137   configure takes.
    138 * Tue Aug 17 2004 - bill.haneman@sun.com
    139 - Updated to version 0.11.4, to fix bug #5083109.
    140 * Fri Jul 30 2004 - bill.haneman@sun.com
    141 - Updated to version 0.11.3, which includes a fix for
    142   the configure path to Damage and XFixes client libs,
    143   which are in /usr/openwin/sfw/lib for some reason.
    144 * Tue Jul 12 2004 - niall.power@sun.com
    145 - fixed packaging up for rpm4
    146 * Thu Jul 08 2004 - damien.donlon@sun.com
    147 - Updated l10n content to gnome-mag-l10n-po-1.2.tar.bz2
    148 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    149 - added "-j $CPUS" to make to speed up builds
    150 * Tue May 18 2004 - <laca@sun.com>
    151 - add patch 01 (uninstalled.pc)
    152 * Fri May 14 2004 - <padraig.obriain@sun.com>
    153 - Bump to 0.11.2
    154 * Wed May 12 2004 - damien.donlon@sun.com
    155 - Updated l10n content to gnome-mag-l10n-po-1.1.tar.bz2
    156 * Thu Apr 22 2004 - <padraig.obriain@sun.com>
    157 - Bump to 0.11.1
    158 * Wed Mar 31 2004 - brian.cameron@sun.com
    159 - replace tar jxf with the more solaris friendly
    160   bzcat piped through tar
    161 * Mon Mar 29 2004 - damien.donlon@sun.com
    162 - Adding gnome-mag-l10n-po-1.0.tar.bz2 l10n content
    163 * Tue Mar 23 2004 - <padraig.obriain@sun.com>
    164 - Bump to 0.10.10
    165 * Wed Feb 25 2004 - damien.carbery@sun.com
    166 - Created new spec file for gnome-mag
    167