3 # _without_doc - don't generate documentation (bootstrap build w/o gnustep-base)
5 Summary: GNUstep Base library package
6 Summary(pl): Podstawowa biblioteka GNUstep
12 Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
13 # Source0-md5: e5aa5d740e63b34c26e04676e9d406fd
15 Patch0: %{name}-link.patch
16 URL: http://www.gnustep.org/
17 BuildRequires: ffcall-devel
18 BuildRequires: gcc-objc
19 BuildRequires: gmp-devel
20 %{!?_without_doc:BuildRequires: gnustep-base-devel >= 1.7.1}
21 %{!?_without_doc:BuildRequires: docbook-dtd41-sgml}
22 BuildRequires: gnustep-make-devel >= 1.7.1
23 BuildRequires: libxml2-devel >= 2.3.0
24 BuildRequires: openssl-devel >= 0.9.7
25 BuildRequires: zlib-devel
26 Requires(post,preun): grep
27 Requires(post,preun): /sbin/chkconfig
28 Requires(post,postun): /sbin/ldconfig
29 Requires: gnustep-make >= 1.7.1
30 # with gdomap in /etc/services
31 Requires: setup >= 2.4.3
32 Conflicts: gnustep-core
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _prefix /usr/lib/GNUstep
37 %define libcombo gnu-gnu-gnu
38 %define gsos linux-gnu
42 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
43 %define gscpu %{_target_cpu}
47 The GNUstep Base Library is a library of general-purpose,
48 non-graphical Objective C objects. For example, it includes classes
49 for strings, object collections, byte streams, typed coders,
50 invocations, notifications, notification dispatchers, moments in time,
51 network ports, remote object messaging support (distributed objects),
52 event loops, and random number generators.
55 Podstawowa biblioteka GNUstep jest bibliotek± innych ni¿ graficzne
56 obiektów ogólnego przeznaczenia dla Objective C. Zawiera np. klasy dla
57 stringów, kolekcji, strumieni, koderów typów, powiadamiania, portów
58 sieci, obiektów rozproszonych, pêtli zdarzeñ, generatorów liczb
62 Summary: GNUstep Base headers
63 Summary(pl): Pliki nag³ówkowe podstawowej biblioteki GNUstep
64 Group: Development/Libraries
65 Requires: %{name} = %{version}
66 Requires: ffcall-devel
69 Requires: gnustep-make-devel >= 1.7.1
70 Requires: libxml2-devel
72 Conflicts: gnustep-core
75 Header files required to build applications against the GNUstep Base
78 %description devel -l pl
79 Pliki nag³ówkowe potrzebne do budowania aplikacji u¿ywaj±cych
80 podstawowej biblioteki GNUstep.
87 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
93 %if %{?_without_doc:0}%{!?_without_doc:1}
94 # requires already installed gnustep-base
95 %{__make} -C Documentation
96 %{__make} -C Documentation/manual
100 rm -rf $RPM_BUILD_ROOT
101 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
103 INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
104 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
106 %if %{?_without_doc:0}%{!?_without_doc:1}
107 %{__make} -C Documentation install \
108 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
109 %{__make} -C Documentation/manual install \
110 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
111 # not (yet?) supported by rpm-compress-doc
112 find $RPM_BUILD_ROOT%{_prefix}/System/Library/Documentation \
113 -type f -a ! -name '*.html' -a ! -name '*.gz' | xargs gzip -9nf
116 install -d $RPM_BUILD_ROOT%{_initrddir}
117 sed -e "s!@TOOLSARCHDIR@!%{_prefix}/System/Tools/%{gscpu}/%{gsos}!" %{SOURCE1} \
118 > $RPM_BUILD_ROOT%{_initrddir}/gnustep
120 echo 'GMT' > $RPM_BUILD_ROOT%{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/localtime
123 rm -rf $RPM_BUILD_ROOT
127 if ! grep -q '%{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}' \
128 /etc/ld.so.conf ; then
129 echo "%{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}" >> /etc/ld.so.conf
132 /sbin/chkconfig --add gnustep
133 if [ -f /var/lock/subsys/gnustep ]; then
134 /etc/rc.d/init.d/gnustep restart 1>&2
136 echo "Run \"/etc/rc.d/init.d/gnustep start\" to start gnustep services."
140 if [ "$1" = "0" ]; then
141 if [ -f /var/lock/subsys/gnustep ]; then
142 /etc/rc.d/init.d/gnustep stop 1>&2
144 /sbin/chkconfig --del gnustep
148 if [ "$1" = "0" ]; then
150 grep -v "^%{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}$" /etc/ld.so.conf \
151 > /etc/ld.so.conf.tmp
152 mv -f /etc/ld.so.conf.tmp /etc/ld.so.conf
156 %triggerpostun -- gnustep-base < 1.7.0
158 grep -v "^%{_prefix}/Libraries/%{gscpu}/%{gsos}/%{libcombo}$" /etc/ld.so.conf \
159 > /etc/ld.so.conf.tmp
160 mv -f /etc/ld.so.conf.tmp /etc/ld.so.conf
164 %defattr(644,root,root,755)
166 %attr(754,root,root) %{_initrddir}/gnustep
168 %dir %{_prefix}/System/Library/Bundles/SSL.bundle
169 %{_prefix}/System/Library/Bundles/SSL.bundle/Resources
170 %attr(755,root,root) %{_prefix}/System/Library/Bundles/SSL.bundle/%{gscpu}
172 %{_prefix}/System/Library/DocTemplates/*.gsdoc
174 %docdir %{_prefix}/System/Library/Documentation
175 %if 0%{!?_without_doc:1}
176 %dir %{_prefix}/System/Library/Documentation/Developer/Base
177 %{_prefix}/System/Library/Documentation/Developer/Base/ReleaseNotes
179 %dir %{_prefix}/System/Library/Documentation/man/man1
180 %dir %{_prefix}/System/Library/Documentation/man/man8
181 %{_prefix}/System/Library/Documentation/man/man1/*.1*
182 %{_prefix}/System/Library/Documentation/man/man8/*.8*
184 %dir %{_prefix}/System/Library/DTDs
185 %{_prefix}/System/Library/DTDs/*.dtd
187 %dir %{_prefix}/System/Library/Libraries/Resources/gnustep-base
188 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/English.lproj
189 %lang(fr) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/French.lproj
190 %lang(de) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/German.lproj
191 %lang(it) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Italian.lproj
192 %lang(tw) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/TraditionalChinese.lproj
193 %dir %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages
194 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/Locale.*
195 %lang(nl) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/Dutch
196 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/English
197 %lang(fr) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/French
198 %lang(de) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/German
199 %lang(it) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/Italian
200 %lang(tw) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/TraditionalChinese
201 %lang(ru) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/Russian
202 %lang(sk) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/Slovak
203 %lang(uk) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/Languages/UkraineRussian
204 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSCharacterSets
205 %dir %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones
206 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/GNUmakefile
207 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/GNUstep_zones
208 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/README
209 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/abbreviations
210 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/regions
211 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/zones
212 %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/*.m
213 %config(noreplace) %verify(not size mtime md5) %{_prefix}/System/Library/Libraries/Resources/gnustep-base/NSTimeZones/localtime
215 %dir %{_prefix}/System/Library/Libraries/%{gscpu}
216 %dir %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}
217 %dir %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}
218 %attr(755,root,root) %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/lib*.so.*
220 %dir %{_prefix}/System/Tools/%{gscpu}
221 %dir %{_prefix}/System/Tools/%{gscpu}/%{gsos}
222 # is suid necessary here??? it runs as daemon...
223 #%attr(4755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/gdomap
224 %attr(755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/gdomap
225 %dir %{_prefix}/System/Tools/%{gscpu}/%{gsos}/%{libcombo}
226 %attr(755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/%{libcombo}/*
229 %defattr(644,root,root,755)
230 %if 0%{!?_without_doc:1}
231 %docdir %{_prefix}/System/Library/Documentation
232 %{_prefix}/System/Library/Documentation/Developer/Base/ProgrammingManual
233 %{_prefix}/System/Library/Documentation/Developer/Base/Reference
234 %{_prefix}/System/Library/Documentation/Developer/BaseAdditions
235 %{_prefix}/System/Library/Documentation/Developer/CodingStandards
236 %{_prefix}/System/Library/Documentation/info/*.info*
239 %{_prefix}/System/Library/Headers/%{libcombo}/Foundation
240 %{_prefix}/System/Library/Headers/%{libcombo}/GNUstepBase
241 %{_prefix}/System/Library/Headers/%{libcombo}/gnustep
242 %{_prefix}/System/Library/Headers/%{libcombo}/%{gscpu}
244 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/lib*.so
245 %dir %{_prefix}/System/Library/Makefiles/Additional
246 %{_prefix}/System/Library/Makefiles/Additional/base.make