-
Notifications
You must be signed in to change notification settings - Fork 3
/
cflib.spec.in
161 lines (127 loc) · 5.15 KB
/
cflib.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# cflib specfile
# Please note this file is maintained in the freemint CVS repository as
# "lib/cflib/cflib.spec.in". Most current version is avaible there and
# any modification should be stored there.
Summary : Christian Felsch's GEM utility library
Name : cflib
Version : @VERSION@
Release : 1
Copyright : LGPL
Group : Development/Libraries
Packager : Frank Naumann <[email protected]>
Vendor : Sparemint
URL : http://sparemint.atariforge.net/
Prefix : %{_prefix}
Docdir : %{_prefix}/doc
BuildRoot : %{_tmppath}/%{name}-root
Source: %{name}-%{version}.tar.gz
%description
This is a utility library/toolkit that provide a lot of helper functions
for developping GEM applications. Sorry, the documentation is all
German.
NOTE: This package has experimental support for installing ST-Guide
hypertexts with rpm. They will get installed in /usr/GEM/stguide.
Please make sure that this directory is located on a file system that
supports long filenames. You should then edit your stguide.inf to
make sure that ST-Guide will search that directory for hypertexts.
Also make sure that stool (or stool.tos or stool.ttp) is found either
in /usr/GEM/stguide or in your $PATH.
You should install cflib if you would like to write GEM applications
that support recent GEM extensions without having to care about
compatibility issues.
%description -l de
Dies ist eine Hilfsbibliothek bzw. ein Toolkit, das eine Menge nützlicher
Funktionen für die Entwicklung von GEM-Applikationen enthält. Hurra,
die Dokumentation ist komplett auf Deutsch!
BEMERKUNG: Dieses Paket hat experimentellen Support für die Installation
von ST-Guide-Hypertexten. Sie werden in /usr/GEM/stguide installiert.
Dieses Verzeichnis muss auf einem Dateisystem liegen, dass lange
Dateinamen unterstützt. Die Konfigurationsdatei stguide.inf sollte
entsprechend geändert werden, damit der ST-Guide in diesem Verzeichnis
nach Hypertexten sucht. Es ist ferner sicherzustellen, dass stool
(oder stool.tos oder stool.ttp) entweder in /usr/GEM/stguide oder
in $PATH gefunden werden kann.
Sie sollten die Cflib installieren, wenn Sie GEM-Applikationen schreiben
wollen, die alle neueren GEM-Erweiterungen unterstützen, ohne sich um
den ganzen Kompatibilitäts-Kram kümmern zu müssen.
%prep
%setup -q -n %{name}-%{version}
%build
cd cflib
make
%install
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
cd cflib
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/include
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/lib
install -m 644 libcflib.a ${RPM_BUILD_ROOT}%{_prefix}/lib
install -m 644 libcflib16.a ${RPM_BUILD_ROOT}%{_prefix}/lib
install -m 644 cflib.h ${RPM_BUILD_ROOT}%{_prefix}/include
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/GEM/include
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/GEM/lib
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/GEM/stguide
ln -s %{_prefix}/lib/libcflib.a ${RPM_BUILD_ROOT}%{_prefix}/GEM/lib/
ln -s %{_prefix}/lib/libcflib16.a ${RPM_BUILD_ROOT}%{_prefix}/GEM/lib/
ln -s %{_prefix}/include/cflib.h ${RPM_BUILD_ROOT}%{_prefix}/GEM/include/
install -m 644 cflib.hyp ${RPM_BUILD_ROOT}%{_prefix}/GEM/stguide
install -m 644 cflib.ref ${RPM_BUILD_ROOT}%{_prefix}/GEM/stguide
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
%post
# Try to run ST-Guide's stool.
found_stool=yes
PATH=%{_prefix}/GEM/stguide:/usr/local/GEM/stguide:/usr/GEM/stguide:"$PATH"
export PATH
stool >/dev/null 2>&1 || \
stool.tos >/dev/null 2>&1 || \
stool.ttp >/dev/null 2>&1 || \
found_stool=no
if test $found_stool = "no"; then
exec 1>&2
echo "WARNING: Could not run stool to update ST-Guide"
echo "catalog file. If you have stool you should "
echo "install it in "%{_prefix}/GEM/stguide" or"
echo "in your PATH as stool, stool.tos or stool.ttp."
fi
%postun
# Try to run ST-Guide's stool.
found_stool=yes
PATH=%{_prefix}/GEM/stguide:/usr/local/GEM/stguide:/usr/GEM/stguide:"$PATH"
export PATH
stool >/dev/null 2>&1 || \
stool.tos >/dev/null 2>&1 || \
stool.ttp >/dev/null 2>&1 \
found_stool=no
if test $found_stool = "no"; then
exec 1>&2
echo "WARNING: Could not run stool to update ST-Guide"
echo "catalog file. If you have stool you should "
echo "install it in "%{_prefix}/GEM/stguide" or"
echo "in your PATH as stool, stool.tos or stool.ttp."
fi
%files
%defattr(-,root,root)
%doc cflib/COPYING.LIB cflib/LiesMich
%doc cflib/demo cflib/intrface
%doc cflib/ChangeLog*
%{_prefix}/lib/lib*.a
%{_prefix}/include/*.h
%{_prefix}/GEM/lib/lib*.a
%{_prefix}/GEM/include/*.h
%{_prefix}/GEM/stguide/cflib.hyp
%{_prefix}/GEM/stguide/cflib.ref
%changelog
* Sun Jul 18 2004 Frank Naumann <[email protected]>
- updated to version 0.21.0, using the new gemlib 0.43.2
* Tue Jan 6 2004 Standa Opichal <[email protected]>
- updated to version 0.20.1, using the new gemlib 0.43.1
* Thu Feb 15 2001 Frank Naumann <[email protected]>
- updated to version 0.20.0
* Mon May 26 2000 Frank Naumann <[email protected]>
- patch in objc.c for new MiNTLib, replaced itoa by ltoa
* Mon Mar 27 2000 Frank Naumann <[email protected]>
- rebuild against new MiNTLib 0.55
- small patch for new MiNTLib
- removed CR in cflib.h
* Thu Oct 21 1999 Guido Flohr <[email protected]>
- Initial version for Sparemint