]> err.no Git - sope/blob - gnustep-make.spec.in
36ac39e753a09f1eae1c062dca2eead69a0b20b6
[sope] / gnustep-make.spec.in
1 #
2 # This file is to be manually edited
3 #
4 # This package is not relocatable
5 #
6 %define gs_version      @GNUSTEP_MAKE_VERSION@
7 %define gs_name         gnustep-make
8 %define gs_prefix       /usr/GNUstep
9 %define gs_libcombo     gnu-gnu-gnu
10 #
11 Name:           %{gs_name}
12 Version:        %{gs_version}
13 Release:        1
14 Source:         ftp://ftp.gnustep.org/pub/gnustep/core/%{gs_name}-%{gs_version}.tar.gz
15 Copyright:      GPL
16 Group:          System Environment/Base
17 Summary:        GNUstep Makefile package
18 Packager:       GNUstep Development <bug-gnustep@gnu.org>
19 Vendor:         The GNUstep Project
20 URL:            http://www.gnustep.org/
21 BuildRoot:      /var/tmp/build-%{gs_name}
22 #
23
24 %description
25 This package contains the basic scripts, makefiles and directory layout
26 needed to run and compile any GNUstep software.  This package was configured
27 for library combo %{gs_libcombo}.
28
29 %prep
30 %setup -n %{gs_name}-%{gs_version}
31
32 %build
33 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_prefix} --with-library-combo=%{gs_libcombo}
34 make
35
36 %install
37 make install special_prefix=${RPM_BUILD_ROOT}
38
39 %ifos Linux
40 mkdir -p ${RPM_BUILD_ROOT}/etc/profile.d
41
42 # Create profile files
43
44 echo "#!/bin/sh" > mygnustep.sh
45 echo ". %{gs_prefix}/System/@MAKEFILES_SUFFIX@/GNUstep.sh" >> mygnustep.sh
46
47 #echo "#!/bin/csh" > mygnustep.csh
48 #echo "source %{gs_prefix}/System/@MAKEFILES_SUFFIX@/GNUstep.csh" >> mygnustep.csh
49
50 chmod 755 mygnustep.*
51 mv mygnustep.sh $RPM_BUILD_ROOT/etc/profile.d/GNUstep.sh
52 #mv mygnustep.csh $RPM_BUILD_ROOT/etc/profile.d/GNUstep.csh
53 %endif # Linux
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr (-, root, root)
60
61 # Well - this is the simplest trick you could think of.  We include in
62 # the package everything which was installed inside /usr/GNUstep/
63 %{gs_prefix}
64
65 # Add the profiles for linux as configuration files <FIXME gdomap etc>
66 %ifos Linux
67 %config /etc/profile.d/GNUstep.sh
68 #%config /etc/profile.d/GNUstep.csh
69 %endif # Linux
70
71 #
72 # FIXME - do we want to add dirs to the library path or not
73 #
74
75 #%post
76 #if [ $1 = 1]; then
77 #%ifos Linux
78 # if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
79 #    . %{gs_root}/@MAKEFILES_SUFFIX@/GNUstep.sh 
80 # fi
81 # 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
82 #%endif
83 #fi
84
85 #%postun
86 #if [ $1 = 0 ]; then
87 #%ifos Linux
88 # if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
89 #    . %{gs_root}/@MAKEFILES_SUFFIX@/GNUstep.sh 
90 # fi
91 # mv -f /etc/ld.so.conf /etc/ld.so.conf.orig
92 # grep -v "^%{gs_prefix}/System/Library/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}" /etc/ld.so.conf.orig > /etc/ld.so.conf
93 # rm -f /etc/ld.so.conf.orig
94 #%endif
95 #fi
96
97
98 %changelog
99 * Thu Jul 19 2001 Adam Fedor <fedor@gnu.org>
100 - Remove csh script
101
102 * Thu Apr 12 2001 Adam Fedor <fedor@gnu.org>
103 - Changed default combo to gnu-gnu-gnu
104
105 * Mon Feb 19 2001  Nicola Pero  <nicola@brainstorm.co.uk>
106 - Updated for new special_prefix option
107         
108 * Wed Jan 17 2001  Nicola Pero  <nicola@brainstorm.co.uk>
109 - Updated; heavily simplified and mostly rewritten
110
111 * Sat Sep 18 1999 Christopher Seawood <cls@seawood.org>
112 - Version 0.6.0
113 - Added nodupsh patch
114
115 * Sat Aug 07 1999 Christopher Seawood <cls@seawood.org>
116 - Updated to cvs dawn_6 branch
117
118 * Fri Jun 25 1999 Christopher Seawood <cls@seawood.org>
119 - Split into separate rpm from gnustep-core
120 - Build from cvs snapshot
121 - Added services patch
122