tools-make/gnustep-make.spec.in
Adam Fedor cf21a09334 Add GCC_SO_DIR for shared libs. Update docs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@10578 72102866-910b-0410-8b05-ffd578937521
2001-07-26 18:34:42 +00:00

122 lines
3.2 KiB
RPMSpec

#
# 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: Adam Fedor <fedor@gnu.org>
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/GNUstep.sh" >> mygnustep.sh
#echo "#!/bin/csh" > mygnustep.csh
#echo "source %{gs_prefix}/System/Makefiles/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 <FIXME gdomap etc>
%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/GNUstep.sh
# fi
# grep -q '%{gs_prefix}/System/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}' /etc/ld.so.conf || echo "%{gs_prefix}/System/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/GNUstep.sh
# fi
# mv -f /etc/ld.so.conf /etc/ld.so.conf.orig
# grep -v "^%{gs_prefix}/System/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 <fedor@gnu.org>
- Remove csh script
* Thu Apr 12 2001 Adam Fedor <fedor@gnu.org>
- Changed default combo to gnu-gnu-gnu
* Mon Feb 19 2001 Nicola Pero <nicola@brainstorm.co.uk>
- Updated for new special_prefix option
* Wed Jan 17 2001 Nicola Pero <nicola@brainstorm.co.uk>
- Updated; heavily simplified and mostly rewritten
* Sat Sep 18 1999 Christopher Seawood <cls@seawood.org>
- Version 0.6.0
- Added nodupsh patch
* Sat Aug 07 1999 Christopher Seawood <cls@seawood.org>
- Updated to cvs dawn_6 branch
* Fri Jun 25 1999 Christopher Seawood <cls@seawood.org>
- Split into separate rpm from gnustep-core
- Build from cvs snapshot
- Added services patch