# # This file is to be manually edited # # This package is not relocatable # %define gs_version @GNUSTEP_MAKE_VERSION@ %define gs_name gnustep-make %define gs_prefix /usr/GNUstep %define gs_libcombo gnu-gnu-gnu # Name: %{gs_name} Version: %{gs_version} Release: 1 Source: ftp://ftp.gnustep.org/pub/gnustep/core/%{gs_name}-%{gs_version}.tar.gz Copyright: GPL Group: System Environment/Base Summary: GNUstep Makefile package Packager: GNUstep Development Vendor: The GNUstep Project URL: http://www.gnustep.org/ BuildRoot: /var/tmp/build-%{gs_name} # %description This package contains the basic scripts, makefiles and directory layout needed to run and compile any GNUstep software. This package was configured for library combo %{gs_libcombo}. %prep %setup -n %{gs_name}-%{gs_version} %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_prefix} --with-library-combo=%{gs_libcombo} make %install make install special_prefix=${RPM_BUILD_ROOT} %ifos Linux mkdir -p ${RPM_BUILD_ROOT}/etc/profile.d # Create profile files echo "#!/bin/sh" > mygnustep.sh echo ". %{gs_prefix}/System/@MAKEFILES_SUFFIX@/GNUstep.sh" >> mygnustep.sh #echo "#!/bin/csh" > mygnustep.csh #echo "source %{gs_prefix}/System/@MAKEFILES_SUFFIX@/GNUstep.csh" >> mygnustep.csh chmod 755 mygnustep.* mv mygnustep.sh $RPM_BUILD_ROOT/etc/profile.d/GNUstep.sh #mv mygnustep.csh $RPM_BUILD_ROOT/etc/profile.d/GNUstep.csh %endif # Linux %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) # Well - this is the simplest trick you could think of. We include in # the package everything which was installed inside /usr/GNUstep/ %{gs_prefix} # Add the profiles for linux as configuration files %ifos Linux %config /etc/profile.d/GNUstep.sh #%config /etc/profile.d/GNUstep.csh %endif # Linux # # FIXME - do we want to add dirs to the library path or not # #%post #if [ $1 = 1]; then #%ifos Linux # if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then # . %{gs_root}/@MAKEFILES_SUFFIX@/GNUstep.sh # fi # grep -q '%{gs_prefix}/System/Library/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}' /etc/ld.so.conf || echo "%{gs_prefix}/System/Library/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}" >> /etc/ld.so.conf #%endif #fi #%postun #if [ $1 = 0 ]; then #%ifos Linux # if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then # . %{gs_root}/@MAKEFILES_SUFFIX@/GNUstep.sh # fi # mv -f /etc/ld.so.conf /etc/ld.so.conf.orig # grep -v "^%{gs_prefix}/System/Library/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}" /etc/ld.so.conf.orig > /etc/ld.so.conf # rm -f /etc/ld.so.conf.orig #%endif #fi %changelog * Thu Jul 19 2001 Adam Fedor - Remove csh script * Thu Apr 12 2001 Adam Fedor - Changed default combo to gnu-gnu-gnu * Mon Feb 19 2001 Nicola Pero - Updated for new special_prefix option * Wed Jan 17 2001 Nicola Pero - Updated; heavily simplified and mostly rewritten * Sat Sep 18 1999 Christopher Seawood - Version 0.6.0 - Added nodupsh patch * Sat Aug 07 1999 Christopher Seawood - Updated to cvs dawn_6 branch * Fri Jun 25 1999 Christopher Seawood - Split into separate rpm from gnustep-core - Build from cvs snapshot - Added services patch