mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 06:10:50 +00:00
Fix config for enable-system-root. Add spec files
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/branches/freeze-0_6_5@6032 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1c058842d5
commit
b330c720a1
3 changed files with 153 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2000-02-16 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* GNUmakefile.in: Standardize prefix/GNUSTEP_INSTALLATION_DIR
|
||||
settings.
|
||||
* gnustep-make.spec: Newfile
|
||||
|
||||
2000-02-08 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* config.guess: New version
|
||||
|
|
|
@ -28,10 +28,10 @@
|
|||
|
||||
include config.make
|
||||
|
||||
prefix = @prefix@
|
||||
GNUSTEP_INSTALLATION_DIR=$(prefix)
|
||||
GNUSTEP_PREFIX = @GNUSTEP_PREFIX@
|
||||
GNUSTEP_INSTALLATION_DIR = @prefix@
|
||||
srcdir = @srcdir@
|
||||
prefix = $(GNUSTEP_INSTALLATION_DIR)
|
||||
exec_prefix = @exec_prefix@
|
||||
bindir = @bindir@
|
||||
libdir = @libdir@
|
||||
|
|
145
gnustep-make.spec
Normal file
145
gnustep-make.spec
Normal file
|
@ -0,0 +1,145 @@
|
|||
# This package is not relocatable
|
||||
%define ver 0.6.5
|
||||
%define date 20000217
|
||||
%define prefix /usr
|
||||
%define gsr %{prefix}/GNUstep
|
||||
%define libcombo gnu-gnu-gnu-xgps
|
||||
Name: gnustep-make
|
||||
Version: %{ver}
|
||||
Release: 1
|
||||
Source: ftp://ftp.gnustep.org/pub/gnustep/core/gstep-make-%{ver}.tar.gz
|
||||
Copyright: GPL
|
||||
Group: System Environment/Base
|
||||
Summary: GNUstep Makefile package
|
||||
Packager: Christopher Seawood <cls@seawood.org>
|
||||
Distribution: Seawood's Random RPMS (%{_buildsym})
|
||||
Vendor: The Seawood Project
|
||||
URL: http://www.gnustep.org/
|
||||
BuildRoot: /var/tmp/build-%{name}
|
||||
Conflicts: gnustep-core
|
||||
|
||||
%description
|
||||
This package contains the basic tools needed to run GNUstep applications.
|
||||
Library combo is %{libcombo}.
|
||||
%{_buildblurb}
|
||||
|
||||
%package devel
|
||||
Summary: Files needed to develop applications with gnustep-make
|
||||
Group: Development/Tools
|
||||
Requires: %{name} = %{ver}
|
||||
|
||||
%description devel
|
||||
The makefile package is a simplistic, powerful and extensible way to
|
||||
write makefiles for a GNUstep-based project. It allows the user to
|
||||
write a GNUstep-based project without having to deal with the complex
|
||||
issues associated with the configuration and installation of the core
|
||||
GNUstep libraries. It also allows the user to easily create
|
||||
cross-compiled binaries.
|
||||
Library combo is %{libcombo}.
|
||||
%{_buildblurb}
|
||||
|
||||
%prep
|
||||
%setup -q -n gstep-%{ver}/make
|
||||
%patch -p2 -b .nodupsh
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gsr} --with-library-combo=%{libcombo}
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install GNUSTEP_INSTALLATION_DIR=${RPM_BUILD_ROOT}%{gsr}
|
||||
|
||||
tmp1=`./config.guess`
|
||||
tmp2=`./cpu.sh $tmp1`
|
||||
tmp3=`./vendor.sh $tmp1`
|
||||
tmp4=`./os.sh $tmp1`
|
||||
tmp5=`./clean_cpu.sh $tmp2`
|
||||
tmp6=`./clean_vendor.sh $tmp3`
|
||||
tmp7=`./clean_os.sh $tmp4`
|
||||
|
||||
%ifos Linux
|
||||
mkdir -p ${RPM_BUILD_ROOT}/etc/profile.d
|
||||
# Create profile files
|
||||
cat > mygnustep.sh << EOF
|
||||
#!/bin/sh
|
||||
. %{gsr}/Makefiles/GNUstep.sh
|
||||
EOF
|
||||
|
||||
cat > mygnustep.csh << EOF
|
||||
#!/bin/csh
|
||||
source %{gsr}/Makefiles/GNUstep.csh
|
||||
EOF
|
||||
|
||||
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
|
||||
|
||||
cat > filelist.rpm.in << EOF
|
||||
%defattr (-, bin, bin)
|
||||
%doc COPYING DESIGN README
|
||||
%ifos Linux
|
||||
%config /etc/profile.d/GNUstep.csh
|
||||
%config /etc/profile.d/GNUstep.sh
|
||||
%endif
|
||||
|
||||
%dir %{gsr}
|
||||
%dir %{gsr}/share
|
||||
%dir %{gsr}/Apps
|
||||
%dir %{gsr}/Makefiles
|
||||
%dir %{gsr}/Makefiles/GSARCH
|
||||
%dir %{gsr}/Makefiles/GSARCH/GSOS
|
||||
%dir %{gsr}/Library
|
||||
%dir %{gsr}/Library/info
|
||||
%dir %{gsr}/Library/PostScript
|
||||
%dir %{gsr}/Library/Services
|
||||
%dir %{gsr}/Library/man
|
||||
%dir %{gsr}/Tools
|
||||
|
||||
%{gsr}/Makefiles/config*
|
||||
%{gsr}/Makefiles/*.csh
|
||||
%{gsr}/Makefiles/*.sh
|
||||
%{gsr}/Makefiles/GSARCH/GSOS/which_lib
|
||||
|
||||
%{gsr}/Tools/debugapp
|
||||
%{gsr}/Tools/openapp
|
||||
%{gsr}/Tools/opentool
|
||||
|
||||
EOF
|
||||
|
||||
cat > filelist-devel.rpm.in << EOF
|
||||
%defattr (-, bin, bin)
|
||||
%config %{gsr}/share/config.site
|
||||
%config %{gsr}/Makefiles/GSARCH/GSOS/config.make
|
||||
|
||||
%{gsr}/Makefiles/*.func
|
||||
%{gsr}/Makefiles/*.make
|
||||
%{gsr}/Makefiles/*.template
|
||||
%{gsr}/Makefiles/install-sh
|
||||
%{gsr}/Makefiles/mkinstalldirs
|
||||
|
||||
EOF
|
||||
|
||||
sed -e "s|GSARCH|${tmp5}|" -e "s|GSOS|${tmp7}|" < filelist.rpm.in > filelist.rpm
|
||||
sed -e "s|GSARCH|${tmp5}|" -e "s|GSOS|${tmp7}|" < filelist-devel.rpm.in > filelist-devel.rpm
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f filelist.rpm
|
||||
%files -f filelist-devel.rpm devel
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
Loading…
Reference in a new issue