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