%define _prefix /opt/freeware %define _defaultdocdir %{_prefix}/doc %define libbonobo_version 2.4.0 %define gtk2_version 2.2.4 %define orbit2_version 2.8.1 %define glib_version 2.2.3 Summary: Gnome-magnifier Name: gnome-mag Version: 0.10.3 Release: 1 URL: http://www.gnome.org Source: %{name}-%{version}.tar.bz2 Patch0: gnome-mag-0.10.3-aix.patch Patch1: gnome-mag-0.10.3-autotools.patch License: GPL Group: User Interface/Desktops BuildRoot: %{_tmppath}/%{name}-%{version}-root %description gnome magnifier %package devel Summary: Development tools. Group: Development/Libraries Requires: gnome-mag = %{version} Requires: libbonobo-devel %description devel Lib for development %prep %setup -q if test x$PATCH = x ; then PATCH=patch ; fi $PATCH -p2 -s < %{_sourcedir}/gnome-mag-0.10.3-aix.patch $PATCH -p2 -s < %{_sourcedir}/gnome-mag-0.10.3-autotools.patch %build LDFLAGS=-L%{_libdir} CPPFLAGS=-I%{_includedir} PATH=%{_bindir}:$PATH ./configure --prefix=%{_prefix} make %install if test "%{buildroot}" != "/"; then rm -rf %{buildroot} fi mkdir -p %{buildroot} make DESTDIR=%{buildroot} install-strip # Make the links cd %{buildroot} for dir in bin lib include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done %clean %files %defattr(-,root,system) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/* %{_libdir}/lib*.a %{_datadir}/gnome-mag /usr/bin/* /usr/lib/lib*.a %files devel %defattr(-, root, system) %{_libdir}/lib*.la %{_libdir}/pkgconfig/*.pc %{_includedir}/* %{_datadir}/idl/gnome-mag-1.0 /usr/include/*