2 # - symlink Helvetica from ghostscript-fonts-std?
3 # - reenable cairo as soon as versions >= 0.5 will be supported
6 %bcond_without art # don't build art backend
7 %bcond_with cairo # don't build cairo backend
9 Summary: The GNUstep backend bundle
10 Summary(pl): Pakiet backendowy GNUstep
15 Vendor: The GNUstep Project
17 Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
18 # Source0-md5: 8031e2d93b4d3359e167be620d1925fb
19 URL: http://www.gnustep.org/
20 BuildRequires: OpenGL-devel
21 BuildRequires: XFree86-devel
22 BuildRequires: XFree86-DPS-devel
23 %{?with_cairo:BuildRequires: cairo-devel < 0.5.0}
24 %{?with_art:BuildRequires: freetype-devel >= 2.1.8}
25 BuildRequires: gnustep-gui-devel >= %{version}
26 %{?with_art:BuildRequires: libart_lgpl-devel}
27 BuildRequires: pkgconfig
28 BuildRequires: xft-devel
30 Requires: gnustep-gui >= %{version}
31 Obsoletes: gnustep-back-devel
32 Obsoletes: gnustep-xgps
33 Conflicts: gnustep-core
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _prefix /usr/%{_lib}/GNUstep
38 %define _noautoreqdep libGL.so.1 libGLU.so.1
40 %define libcombo gnu-gnu-gnu
41 %define gsos linux-gnu
45 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
46 %define gscpu %(echo %{_target_cpu} | sed -e 's/amd64/x86_64/;s/ppc/powerpc/')
50 This is a backend for the GNUstep gui Library which allows you to use
51 the GNUstep gui Library on an X Window System (other backends will
52 be added later to allow you to use the GNUstep gui Library in other
53 windowing environments).
55 This package contains common part and xlib graphics backend.
58 To jest backend dla biblioteki GNUstep GUI, pozwalaj±cy na u¿ywanie
59 biblioteki graficznego interfejsu u¿ytkownika GNUstep pod systemem X
60 Window (inne backendy, pozwalaj±ce na u¿ywanie biblioteki GNUstep GUI
61 w innych ¶rodowiskach okienkowych, zostan± dodane pó¼niej).
63 Ten pakiet zawiera czê¶æ wspóln± i backend graficzny xlib.
66 Summary: GNUstep graphics backend - art
67 Summary(pl): Graficzny backend GNUstep - art
69 Requires: %{name} = %{version}-%{release}
70 Requires: freetype >= 2.1.8
71 Conflicts: gnustep-core
74 GNUstep graphics backend - art.
76 %description art -l pl
77 Graficzny backend GNUstep - art.
80 Summary: GNUstep graphics backend - cairo
81 Summary(pl): Graficzny backend GNUstep - cairo
83 Requires: %{name} = %{version}-%{release}
84 Requires: cairo < 0.5.0
87 GNUstep graphics backend - cairo.
89 %description cairo -l pl
90 Graficzny backend GNUstep - cairo.
93 Summary: GNUstep graphics backend - xdps
94 Summary(pl): Graficzny backend GNUstep - xdps
96 Requires: %{name} = %{version}-%{release}
97 Obsoletes: gnustep-xdps
98 Conflicts: gnustep-core
101 GNUstep graphics backend - xdps.
103 %description xdps -l pl
104 Graficzny backend GNUstep - xdps.
109 # prepare the trees (for art, cairo, xdps, xlib backends)
113 cp -a `cat files.list` back-art
116 install -d back-cairo
117 cp -a `cat files.list` back-cairo
120 cp -a `cat files.list` back-xdps
124 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
126 for g in %{?with_art:art} %{?with_cairo:cairo} xdps xlib ; do
128 if [ "$g" = "xlib" ]; then
129 INC='--with-include-flags=-I/usr/include/freetype2'
136 --enable-graphics=$g \
145 %{__make} -C Documentation
148 rm -rf $RPM_BUILD_ROOT
149 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
151 for g in %{?with_art:art} %{?with_cairo:cairo} xdps xlib ; do
152 if [ "$g" = "xlib" ]; then
157 %{__make} install -C back-$g \
158 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
159 BUILD_GRAPHICS="$g" \
163 %{__make} install -C Documentation \
164 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
166 # not (yet?) supported by rpm-compress-doc
167 find $RPM_BUILD_ROOT%{_prefix}/System/Library/Documentation -type f \
168 ! -name '*.gz' | xargs gzip -9nf
171 rm -rf $RPM_BUILD_ROOT
173 %post -p /sbin/ldconfig
174 %postun -p /sbin/ldconfig
177 %defattr(644,root,root,755)
179 %docdir %{_prefix}/System/Library/Documentation
180 %{_prefix}/System/Library/Documentation/Developer/Back
181 %{_prefix}/System/Library/Documentation/man/man1/gpbs.1*
183 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-010.bundle
184 %{_prefix}/System/Library/Bundles/libgnustep-back-010.bundle/Resources
185 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-010.bundle/%{gscpu}
187 # XXX: n0190{0,2,4,6}{3,4}.{pfb,afm,pfm} - symlink from ghostscript-fonts-std?
188 %{_prefix}/System/Library/Fonts/Helvetica.nfont
190 %attr(755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/%{libcombo}/*
194 %defattr(644,root,root,755)
195 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-art-010.bundle
196 %{_prefix}/System/Library/Bundles/libgnustep-back-art-010.bundle/Resources
197 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-art-010.bundle/%{gscpu}
202 %defattr(644,root,root,755)
203 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-cairo-010.bundle
204 %{_prefix}/System/Library/Bundles/libgnustep-back-cairo-010.bundle/Resources
205 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-cairo-010.bundle/%{gscpu}
209 %defattr(644,root,root,755)
210 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-xdps-010.bundle
211 %{_prefix}/System/Library/Bundles/libgnustep-back-xdps-010.bundle/Resources
212 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-xdps-010.bundle/%{gscpu}