-
Notifications
You must be signed in to change notification settings - Fork 44
/
gnustep-make.spec.in
101 lines (79 loc) · 2.74 KB
/
gnustep-make.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# This file is to be manually edited. The current version is very
# old. You probably want to install into the Linux FHS, which
# this doesn't do.
#
# 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
License: GPL
Group: System Environment/Base
Summary: GNUstep Makefile package
Packager: GNUstep Development <[email protected]>
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} using the standard
GNUstep filesystem layout based on %{gs_prefix}.
%prep
%setup -n %{gs_name}-%{gs_version}
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_prefix} --with-library-combo=%{gs_libcombo} --with-layout=gnustep
make
%install
make install DESTDIR=${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/Library/Makefiles/GNUstep.sh" >> mygnustep.sh
#echo "#!/bin/csh" > mygnustep.csh
#echo "source %{gs_prefix}/System/Library/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}
# Also include the GNUstep config file
/etc/GNUstep/GNUstep.conf
# 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
%changelog
* Thu Jul 19 2001 Adam Fedor <[email protected]>
- Remove csh script
* Thu Apr 12 2001 Adam Fedor <[email protected]>
- Changed default combo to gnu-gnu-gnu
* Mon Feb 19 2001 Nicola Pero <[email protected]>
- Updated for new special_prefix option
* Wed Jan 17 2001 Nicola Pero <[email protected]>
- Updated; heavily simplified and mostly rewritten
* Sat Sep 18 1999 Christopher Seawood <[email protected]>
- Version 0.6.0
- Added nodupsh patch
* Sat Aug 07 1999 Christopher Seawood <[email protected]>
- Updated to cvs dawn_6 branch
* Fri Jun 25 1999 Christopher Seawood <[email protected]>
- Split into separate rpm from gnustep-core
- Build from cvs snapshot
- Added services patch