1# 2# This file is to be manually edited. The current version is very 3# old. You probably want to install into the Linux FHS, which 4# this doesn't do. 5# 6# This package is not relocatable 7# 8%define gs_version @GNUSTEP_MAKE_VERSION@ 9%define gs_name gnustep-make 10%define gs_prefix /usr/GNUstep 11%define gs_libcombo gnu-gnu-gnu 12# 13Name: %{gs_name} 14Version: %{gs_version} 15Release: 1 16Source: ftp://ftp.gnustep.org/pub/gnustep/core/%{gs_name}-%{gs_version}.tar.gz 17License: GPL 18Group: System Environment/Base 19Summary: GNUstep Makefile package 20Packager: GNUstep Development <bug-gnustep@gnu.org> 21Vendor: The GNUstep Project 22URL: http://www.gnustep.org/ 23BuildRoot: /var/tmp/build-%{gs_name} 24# 25 26%description 27This package contains the basic scripts, makefiles and directory 28layout needed to run and compile any GNUstep software. This package 29was configured for library combo %{gs_libcombo} using the standard 30GNUstep filesystem layout based on %{gs_prefix}. 31 32%prep 33%setup -n %{gs_name}-%{gs_version} 34 35%build 36CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_prefix} --with-library-combo=%{gs_libcombo} --with-layout=gnustep 37make 38 39%install 40make install DESTDIR=${RPM_BUILD_ROOT} 41 42%ifos Linux 43mkdir -p ${RPM_BUILD_ROOT}/etc/profile.d 44 45# Create profile files 46 47echo "#!/bin/sh" > mygnustep.sh 48echo ". %{gs_prefix}/System/Library/Makefiles/GNUstep.sh" >> mygnustep.sh 49 50#echo "#!/bin/csh" > mygnustep.csh 51#echo "source %{gs_prefix}/System/Library/Makefiles/GNUstep.csh" >> mygnustep.csh 52 53chmod 755 mygnustep.* 54mv mygnustep.sh $RPM_BUILD_ROOT/etc/profile.d/GNUstep.sh 55#mv mygnustep.csh $RPM_BUILD_ROOT/etc/profile.d/GNUstep.csh 56%endif # Linux 57 58%clean 59rm -rf $RPM_BUILD_ROOT 60 61%files 62%defattr (-, root, root) 63 64# Well - this is the simplest trick you could think of. We include in 65# the package everything which was installed inside /usr/GNUstep/ 66%{gs_prefix} 67 68# Also include the GNUstep config file 69/etc/GNUstep/GNUstep.conf 70 71# Add the profiles for linux as configuration files <FIXME gdomap etc> 72%ifos Linux 73%config /etc/profile.d/GNUstep.sh 74#%config /etc/profile.d/GNUstep.csh 75%endif # Linux 76 77%changelog 78* Thu Jul 19 2001 Adam Fedor <fedor@gnu.org> 79- Remove csh script 80 81* Thu Apr 12 2001 Adam Fedor <fedor@gnu.org> 82- Changed default combo to gnu-gnu-gnu 83 84* Mon Feb 19 2001 Nicola Pero <nicola@brainstorm.co.uk> 85- Updated for new special_prefix option 86 87* Wed Jan 17 2001 Nicola Pero <nicola@brainstorm.co.uk> 88- Updated; heavily simplified and mostly rewritten 89 90* Sat Sep 18 1999 Christopher Seawood <cls@seawood.org> 91- Version 0.6.0 92- Added nodupsh patch 93 94* Sat Aug 07 1999 Christopher Seawood <cls@seawood.org> 95- Updated to cvs dawn_6 branch 96 97* Fri Jun 25 1999 Christopher Seawood <cls@seawood.org> 98- Split into separate rpm from gnustep-core 99- Build from cvs snapshot 100- Added services patch 101 102