]>
Commit | Line | Data |
---|---|---|
a1765662 | 1 | # Conditional build: |
a91f1e86 | 2 | %bcond_without doc # don't generate documentation (bootstrap build w/o gnustep-base) |
a1765662 | 3 | # |
11af9d8e | 4 | %define ver 1.15 |
776d94ab | 5 | Summary: GNUstep Base library package |
3bae497f | 6 | Summary(pl.UTF-8): Podstawowa biblioteka GNUstep |
776d94ab | 7 | Name: gnustep-base |
4f4569df | 8 | Version: %{ver}.3 |
2ef8bfe0 | 9 | Release: 7 |
a1765662 | 10 | License: LGPL/GPL |
30ff75eb | 11 | Group: Libraries |
776d94ab | 12 | Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz |
4f4569df | 13 | # Source0-md5: 67449dd0d8c4ef096fde46bf65503982 |
aed1ee97 | 14 | Source1: %{name}.init |
2c5ee7c2 | 15 | Source2: %{name}.sysconfig |
b032aafd | 16 | Patch0: %{name}-pass-arguments.patch |
b993d150 | 17 | URL: http://www.gnustep.org/ |
a2dbe50d | 18 | %{?with_doc:BuildRequires: docbook-dtd41-sgml} |
9a75922c JB |
19 | BuildRequires: gcc-objc |
20 | BuildRequires: gmp-devel | |
72cd19bf | 21 | BuildRequires: gnustep-make-devel >= 1.11.2 |
9e9cc6e4 | 22 | BuildRequires: libffi-devel |
aed1ee97 | 23 | BuildRequires: libxml2-devel >= 2.3.0 |
9e9cc6e4 | 24 | BuildRequires: libxslt-devel >= 1.1.21 |
c273ed87 | 25 | BuildRequires: openssl-devel >= 0.9.7d |
9a75922c | 26 | BuildRequires: zlib-devel |
81d534d8 | 27 | Requires(post): /sbin/ldconfig |
a2dbe50d | 28 | Requires(post,preun): /sbin/chkconfig |
81d534d8 ER |
29 | Requires(triggerpostun): sed >= 4.0 |
30 | Requires: glibc >= 6:2.3.5-7.6 | |
72cd19bf | 31 | Requires: gnustep-make >= 1.11.2 |
aed1ee97 JB |
32 | # with gdomap in /etc/services |
33 | Requires: setup >= 2.4.3 | |
9a75922c JB |
34 | Conflicts: gnustep-core |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
b993d150 | 37 | %description |
776d94ab | 38 | The GNUstep Base Library is a library of general-purpose, |
39 | non-graphical Objective C objects. For example, it includes classes | |
40 | for strings, object collections, byte streams, typed coders, | |
41 | invocations, notifications, notification dispatchers, moments in time, | |
42 | network ports, remote object messaging support (distributed objects), | |
9a75922c | 43 | event loops, and random number generators. |
b993d150 | 44 | |
51f24a62 JR |
45 | %description -l pl.UTF-8 |
46 | Podstawowa biblioteka GNUstep jest biblioteką innych niż graficzne | |
47 | obiektów ogólnego przeznaczenia dla Objective C. Zawiera np. klasy dla | |
48 | stringów, kolekcji, strumieni, koderów typów, powiadamiania, portów | |
49 | sieci, obiektów rozproszonych, pętli zdarzeń, generatorów liczb | |
129467cf JB |
50 | losowych. |
51 | ||
b993d150 | 52 | %package devel |
129467cf | 53 | Summary: GNUstep Base headers |
3bae497f | 54 | Summary(pl.UTF-8): Pliki nagłówkowe podstawowej biblioteki GNUstep |
776d94ab | 55 | Group: Development/Libraries |
5f741c7a | 56 | Requires: %{name} = %{version}-%{release} |
a1765662 JB |
57 | Requires: ffcall-devel |
58 | Requires: gcc-objc | |
59 | Requires: gmp-devel | |
72cd19bf | 60 | Requires: gnustep-make-devel >= 1.11.2 |
a1765662 JB |
61 | Requires: libxml2-devel |
62 | Requires: zlib-devel | |
776d94ab | 63 | Conflicts: gnustep-core |
b993d150 | 64 | |
65 | %description devel | |
776d94ab | 66 | Header files required to build applications against the GNUstep Base |
9a75922c | 67 | library. |
b993d150 | 68 | |
51f24a62 JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe potrzebne do budowania aplikacji używających | |
129467cf JB |
71 | podstawowej biblioteki GNUstep. |
72 | ||
b993d150 | 73 | %prep |
e372fffb | 74 | %setup -q |
81fa6835 | 75 | %patch0 -p1 |
b993d150 | 76 | |
77 | %build | |
cd237fcd | 78 | # don't assume that GNUstep.sh is imported in environment |
9e9cc6e4 | 79 | export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles |
cd237fcd | 80 | export GNUSTEP_FLATTENED=yes |
72cd19bf | 81 | |
3de239d6 JB |
82 | # gnustep can use one of 3 ways of getting argc,argv,env: |
83 | # - /proc (default on Linux) - gnustep programs won't run in procless system | |
84 | # - fake-main hack (main is secretly renamed and wrapped) | |
85 | # - pass-arguments (program must call NSProcessInfo initialize) | |
86 | %configure \ | |
9e9cc6e4 JR |
87 | --enable-pass-arguments \ |
88 | --enable-libffi \ | |
89 | --disable-ffcall | |
e806eebd | 90 | |
cd237fcd | 91 | # fake GUI_MAKE_LOADED to avoid linking with gnustep-gui |
a1765662 | 92 | %{__make} \ |
cd237fcd | 93 | GUI_MAKE_LOADED=yes \ |
a91f1e86 | 94 | GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES` \ |
a1765662 | 95 | messages=yes |
b993d150 | 96 | |
8191a52b | 97 | %if %{with doc} |
1289291f | 98 | export LD_LIBRARY_PATH=`pwd`/Source/obj |
4041ff2d SS |
99 | # with __make -j2: |
100 | # mkdir: cannot create directory `../Documentation/BaseTools': File exists | |
101 | # make[1]: *** [../Documentation/BaseTools] Error 1 | |
102 | # make[1]: *** Waiting for unfinished jobs.... | |
9a75922c | 103 | # requires already installed gnustep-base |
4041ff2d | 104 | %{__make} -j1 -C Documentation \ |
a91f1e86 | 105 | GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES` |
106 | %{__make} -C Documentation/manual \ | |
107 | GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES` | |
a1765662 | 108 | %endif |
9a75922c | 109 | |
b993d150 | 110 | %install |
111 | rm -rf $RPM_BUILD_ROOT | |
9e9cc6e4 JR |
112 | install -d $RPM_BUILD_ROOT{%{_initrddir},/etc/sysconfig} |
113 | ||
114 | export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles | |
cd237fcd | 115 | export GNUSTEP_FLATTENED=yes |
72cd19bf | 116 | |
9a75922c | 117 | %{__make} install \ |
9e9cc6e4 JR |
118 | DESTDIR=$RPM_BUILD_ROOT |
119 | ||
120 | install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/gnustep | |
121 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/gnustep | |
122 | ||
123 | echo 'GMT' > $RPM_BUILD_ROOT%{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/localtime | |
124 | ||
125 | # Fix .so symlink | |
126 | (cd $RPM_BUILD_ROOT%{_libdir} ; ln -sf libgnustep-base.so.*.*.* libgnustep-base.so) | |
b993d150 | 127 | |
8191a52b | 128 | %if %{with doc} |
a1765662 | 129 | %{__make} -C Documentation install \ |
9e9cc6e4 JR |
130 | DESTDIR=$RPM_BUILD_ROOT |
131 | ||
a1765662 | 132 | %{__make} -C Documentation/manual install \ |
9e9cc6e4 JR |
133 | DESTDIR=$RPM_BUILD_ROOT |
134 | ||
a1765662 | 135 | # not (yet?) supported by rpm-compress-doc |
9e9cc6e4 | 136 | find $RPM_BUILD_ROOT%{_datadir}/GNUstep/Documentation \ |
1289291f | 137 | -type f -a ! -name '*.html' -a ! -name '*.gz' -a ! -name '*.jpg' -a ! -name '*.css' | xargs gzip -9nf |
a1765662 | 138 | %endif |
9a75922c | 139 | |
129467cf JB |
140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
b993d150 | 143 | %post |
b993d150 | 144 | /sbin/ldconfig |
be3ce200 | 145 | /sbin/chkconfig --add gnustep |
9a75922c JB |
146 | if [ -f /var/lock/subsys/gnustep ]; then |
147 | /etc/rc.d/init.d/gnustep restart 1>&2 | |
148 | else | |
149 | echo "Run \"/etc/rc.d/init.d/gnustep start\" to start gnustep services." | |
150 | fi | |
b993d150 | 151 | |
152 | %preun | |
9a75922c JB |
153 | if [ "$1" = "0" ]; then |
154 | if [ -f /var/lock/subsys/gnustep ]; then | |
155 | /etc/rc.d/init.d/gnustep stop 1>&2 | |
156 | fi | |
157 | /sbin/chkconfig --del gnustep | |
b993d150 | 158 | fi |
159 | ||
81d534d8 | 160 | %postun -p /sbin/ldconfig |
b993d150 | 161 | |
81d534d8 | 162 | %triggerpostun -- %{name} < 1.11.0-1.1 |
345013a9 | 163 | sed -i -e "/^%(echo %{_prefix}/Libraries/ | sed -e 's,/,\\/,g')$/d" /etc/ld.so.conf |
aed1ee97 | 164 | |
9a75922c | 165 | %files |
776d94ab | 166 | %defattr(644,root,root,755) |
a1765662 | 167 | %doc ChangeLog* |
9e9cc6e4 JR |
168 | %if %{with doc} |
169 | %docdir %{_datadir}/GNUstep/Documentation | |
170 | %{_datadir}/GNUstep/Documentation/*.jpg | |
171 | %{_datadir}/GNUstep/Documentation/index.html | |
172 | %{_datadir}/GNUstep/Documentation/style.css | |
8f9f379a | 173 | %dir %{_datadir}/GNUstep/Documentation |
9e9cc6e4 JR |
174 | %dir %{_datadir}/GNUstep/Documentation/Developer |
175 | %dir %{_datadir}/GNUstep/Documentation/Developer/Base | |
176 | %{_datadir}/GNUstep/Documentation/Developer/Base/ReleaseNotes | |
177 | %endif | |
178 | ||
aed1ee97 | 179 | %attr(754,root,root) %{_initrddir}/gnustep |
2c5ee7c2 | 180 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/gnustep |
9a75922c | 181 | |
9e9cc6e4 JR |
182 | %dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/SSL.bundle |
183 | %attr(755,root,root) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/SSL.bundle/SSL | |
184 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/SSL.bundle/Resources | |
185 | ||
186 | %dir %{_libdir}/GNUstep/DTDs | |
187 | %{_libdir}/GNUstep/DTDs/*.dtd | |
188 | %{_libdir}/GNUstep/DTDs/*.rnc | |
189 | ||
190 | %dir %{_libdir}/GNUstep/Libraries | |
191 | %dir %{_libdir}/GNUstep/Libraries/gnustep-base | |
192 | %dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions | |
193 | %dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver} | |
194 | %dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources | |
195 | %dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages | |
196 | %dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones | |
197 | ||
198 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/*.plist | |
199 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/English.lproj | |
200 | %lang(eo) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Esperanto.lproj | |
201 | %lang(fr) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/French.lproj | |
202 | %lang(de) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/German.lproj | |
203 | %lang(it) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Italian.lproj | |
204 | %lang(ko) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Korean.lproj | |
205 | %lang(es) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Spanish.lproj | |
206 | %lang(zh_TW) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/TraditionalChinese.lproj | |
207 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Locale.* | |
208 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/English | |
209 | %lang(nl) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Dutch | |
210 | %lang(eo) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Esperanto | |
211 | %lang(fr) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/French | |
212 | %lang(de) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/German | |
213 | %lang(hu) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Hungarian | |
214 | %lang(it) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Italian | |
215 | %lang(ko) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Korean | |
216 | %lang(ru) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Russian | |
217 | %lang(sk) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Slovak | |
218 | %lang(es) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Spanish | |
219 | %lang(zh_TW) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/TraditionalChinese | |
220 | %lang(uk) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/Languages/Ukrainian | |
221 | ||
222 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/GNUmakefile | |
223 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/GNUstep_zones | |
224 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/README | |
225 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/abbreviations | |
226 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/regions | |
227 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/zones | |
228 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/*.m | |
229 | %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/*.plist | |
230 | %config(noreplace) %verify(not md5 mtime size) %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{ver}/Resources/NSTimeZones/localtime | |
231 | ||
232 | %attr(755,root,root) %{_libdir}/libgnustep-base.so.*.*.* | |
aed1ee97 | 233 | |
9a75922c | 234 | # is suid necessary here??? it runs as daemon... |
9e9cc6e4 JR |
235 | #%attr(4755,root,root) %{_bindir}/gdomap |
236 | %attr(755,root,root) %{_bindir}/* | |
237 | ||
238 | %{_mandir}/man1/*.1* | |
239 | %{_mandir}/man8/*.8* | |
9a75922c JB |
240 | |
241 | %files devel | |
776d94ab | 242 | %defattr(644,root,root,755) |
a91f1e86 | 243 | %dir %{_datadir}/GNUstep/Makefiles/Additional |
244 | %{_datadir}/GNUstep/Makefiles/Additional/base.make | |
8191a52b | 245 | %if %{with doc} |
9e9cc6e4 JR |
246 | %docdir %{_datadir}/GNUstep/Documentation |
247 | %{_datadir}/GNUstep/Documentation/Developer/Base/General | |
248 | %{_datadir}/GNUstep/Documentation/Developer/Base/ProgrammingManual | |
249 | %{_datadir}/GNUstep/Documentation/Developer/Base/Reference | |
250 | %{_datadir}/GNUstep/Documentation/Developer/BaseAdditions | |
251 | %{_datadir}/GNUstep/Documentation/Developer/CodingStandards | |
252 | %{_datadir}/GNUstep/Documentation/Developer/Tools | |
253 | %{_infodir}/*.info* | |
aed1ee97 JB |
254 | %endif |
255 | ||
9e9cc6e4 JR |
256 | %{_includedir}/Foundation |
257 | %{_includedir}/GNUstepBase | |
258 | %{_includedir}/gnustep | |
259 | ||
260 | %attr(755,root,root) %{_libdir}/libgnustep-base.so | |
aed1ee97 | 261 | |
9e9cc6e4 JR |
262 | %dir %{_datadir}/GNUstep/Makefiles/Additional |
263 | %{_datadir}/GNUstep/Makefiles/Additional/base.make |