2 # - symlink Helvetica from ghostscript-fonts-std?
5 %bcond_without art # don't build art backend
6 %bcond_without cairo # don't build cairo backend
8 Summary: The GNUstep backend bundle
9 Summary(pl): Pakiet backendowy GNUstep
14 Vendor: The GNUstep Project
16 Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
17 # Source0-md5: 139052b97ca5111dbcc9dd6b83c8d66f
18 URL: http://www.gnustep.org/
19 BuildRequires: OpenGL-devel
20 BuildRequires: XFree86-devel
21 BuildRequires: XFree86-DPS-devel
22 %{?with_cairo:BuildRequires: cairo-devel >= 1.0}
23 %{?with_art:BuildRequires: freetype-devel >= 2.1.8}
24 BuildRequires: gnustep-gui-devel >= %{version}
25 %{?with_art:BuildRequires: libart_lgpl-devel}
26 BuildRequires: pkgconfig
27 BuildRequires: xft-devel
29 Requires: gnustep-gui >= %{version}
30 Obsoletes: gnustep-back-devel
31 Obsoletes: gnustep-xgps
32 Conflicts: gnustep-core
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _prefix /usr/%{_lib}/GNUstep
37 %define _noautoreqdep libGL.so.1 libGLU.so.1
39 %define libcombo gnu-gnu-gnu
40 %define gsos linux-gnu
44 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
45 %define gscpu %(echo %{_target_cpu} | sed -e 's/amd64/x86_64/;s/ppc/powerpc/')
49 This is a backend for the GNUstep gui Library which allows you to use
50 the GNUstep gui Library on an X Window System (other backends will
51 be added later to allow you to use the GNUstep gui Library in other
52 windowing environments).
54 This package contains common part and xlib graphics backend.
57 To jest backend dla biblioteki GNUstep GUI, pozwalaj±cy na u¿ywanie
58 biblioteki graficznego interfejsu u¿ytkownika GNUstep pod systemem X
59 Window (inne backendy, pozwalaj±ce na u¿ywanie biblioteki GNUstep GUI
60 w innych ¶rodowiskach okienkowych, zostan± dodane pó¼niej).
62 Ten pakiet zawiera czê¶æ wspóln± i backend graficzny xlib.
65 Summary: GNUstep graphics backend - art
66 Summary(pl): Graficzny backend GNUstep - art
68 Requires: %{name} = %{version}-%{release}
69 Requires: freetype >= 2.1.8
70 Conflicts: gnustep-core
73 GNUstep graphics backend - art.
75 %description art -l pl
76 Graficzny backend GNUstep - art.
79 Summary: GNUstep graphics backend - cairo
80 Summary(pl): Graficzny backend GNUstep - cairo
82 Requires: %{name} = %{version}-%{release}
83 Requires: cairo >= 1.0
86 GNUstep graphics backend - cairo.
88 %description cairo -l pl
89 Graficzny backend GNUstep - cairo.
92 Summary: GNUstep graphics backend - xdps
93 Summary(pl): Graficzny backend GNUstep - xdps
95 Requires: %{name} = %{version}-%{release}
96 Obsoletes: gnustep-xdps
97 Conflicts: gnustep-core
100 GNUstep graphics backend - xdps.
102 %description xdps -l pl
103 Graficzny backend GNUstep - xdps.
109 # hack cairo header - objc doesn't allow #defines in #include
110 sed -e 's,FT_FREETYPE_H,<freetype/freetype.h>,' /usr/include/cairo/cairo-ft.h > \
114 # prepare the trees (for art, cairo, xdps, xlib backends)
118 cp -a `cat files.list` back-art
121 install -d back-cairo
122 cp -a `cat files.list` back-cairo
125 cp -a `cat files.list` back-xdps
129 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
131 for g in %{?with_art:art} %{?with_cairo:cairo} xdps xlib ; do
133 if [ "$g" = "xlib" ]; then
138 if [ "$g" = "cairo" ]; then
139 CPPFLAGS="-I/usr/include/freetype2"
142 --enable-graphics=$g \
150 %{__make} -C Documentation
153 rm -rf $RPM_BUILD_ROOT
154 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
156 for g in %{?with_art:art} %{?with_cairo:cairo} xdps xlib ; do
157 if [ "$g" = "xlib" ]; then
162 %{__make} install -C back-$g \
163 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
164 BUILD_GRAPHICS="$g" \
168 %{__make} install -C Documentation \
169 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
171 # not (yet?) supported by rpm-compress-doc
172 find $RPM_BUILD_ROOT%{_prefix}/System/Library/Documentation -type f \
173 ! -name '*.gz' | xargs gzip -9nf
176 rm -rf $RPM_BUILD_ROOT
178 %post -p /sbin/ldconfig
179 %postun -p /sbin/ldconfig
182 %defattr(644,root,root,755)
184 %docdir %{_prefix}/System/Library/Documentation
185 %{_prefix}/System/Library/Documentation/Developer/Back
186 %{_prefix}/System/Library/Documentation/man/man1/gpbs.1*
188 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-010.bundle
189 %{_prefix}/System/Library/Bundles/libgnustep-back-010.bundle/Resources
190 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-010.bundle/%{gscpu}
192 # XXX: n0190{0,2,4,6}{3,4}.{pfb,afm,pfm} - symlink from ghostscript-fonts-std?
193 %{_prefix}/System/Library/Fonts/Helvetica.nfont
195 %attr(755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/%{libcombo}/*
199 %defattr(644,root,root,755)
200 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-art-010.bundle
201 %{_prefix}/System/Library/Bundles/libgnustep-back-art-010.bundle/Resources
202 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-art-010.bundle/%{gscpu}
207 %defattr(644,root,root,755)
208 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-cairo-010.bundle
209 %{_prefix}/System/Library/Bundles/libgnustep-back-cairo-010.bundle/Resources
210 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-cairo-010.bundle/%{gscpu}
214 %defattr(644,root,root,755)
215 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-xdps-010.bundle
216 %{_prefix}/System/Library/Bundles/libgnustep-back-xdps-010.bundle/Resources
217 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-xdps-010.bundle/%{gscpu}