3 %bcond_without art # don't build art backend
5 Summary: The GNUstep backend bundle
6 Summary(pl): Pakiet backendowy GNUstep
11 Vendor: The GNUstep Project
13 Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
14 # Source0-md5: 2ee883c140eb7cf47bb284b2f72c1adc
15 Patch0: %{name}-freetype.patch
16 URL: http://www.gnustep.org/
17 BuildRequires: OpenGL-devel
18 BuildRequires: XFree86-devel
19 BuildRequires: XFree86-DPS-devel
20 %{?with_art:BuildRequires: freetype-devel >= 2.1.4}
21 BuildRequires: gnustep-gui-devel >= %{version}
22 %{?with_art:BuildRequires: libart_lgpl-devel}
23 BuildRequires: xft-devel
25 Requires: gnustep-gui >= %{version}
26 Obsoletes: gnustep-back-devel
27 Obsoletes: gnustep-xgps
28 Conflicts: gnustep-core
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _prefix /usr/%{_lib}/GNUstep
33 %define _noautoreqdep libGL.so.1 libGLU.so.1
35 %define libcombo gnu-gnu-gnu
36 %define gsos linux-gnu
40 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
41 %define gscpu %(echo %{_target_cpu} | sed -e 's/amd64/x86_64/;s/ppc/powerpc/')
45 This is a backend for the GNUstep gui Library which allows you to use
46 the GNUstep gui Library on an X Window System (other backends will
47 be added later to allow you to use the GNUstep gui Library in other
48 windowing environments).
50 This package contains common part and xlib graphics backend.
53 To jest backend dla biblioteki GNUstep GUI, pozwalaj±cy na u¿ywanie
54 biblioteki graficznego interfejsu u¿ytkownika GNUstep pod systemem X
55 Window (inne backendy, pozwalaj±ce na u¿ywanie biblioteki GNUstep GUI
56 w innych ¶rodowiskach okienkowych, zostan± dodane pó¼niej).
58 Ten pakiet zawiera czê¶æ wspóln± i backend graficzny xlib.
61 Summary: GNUstep graphics backend - art
62 Summary(pl): Graficzny backend GNUstep - art
64 Requires: %{name} = %{version}-%{release}
65 Requires: freetype >= 2.1.4
66 Conflicts: gnustep-core
69 GNUstep graphics backend - art.
71 %description art -l pl
72 Graficzny backend GNUstep - art.
75 Summary: GNUstep graphics backend - xdps
76 Summary(pl): Graficzny backend GNUstep - xdps
78 Requires: %{name} = %{version}-%{release}
79 Obsoletes: gnustep-xdps
80 Conflicts: gnustep-core
83 GNUstep graphics backend - xdps.
85 %description xdps -l pl
86 Graficzny backend GNUstep - xdps.
92 # prepare three trees (for art, xdps and xlib backends)
96 cp -a `cat files.list` back-art
99 cp -a `cat files.list` back-xdps
103 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
105 for g in %{?with_art:art} xdps xlib ; do
107 if [ "$g" = "xlib" ]; then
108 INC='--with-include-flags=-I/usr/include/freetype2'
115 --enable-graphics=$g \
124 %{__make} -C Documentation
127 rm -rf $RPM_BUILD_ROOT
128 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
130 for g in %{?with_art:art} xdps xlib ; do
131 if [ "$g" = "xlib" ]; then
136 %{__make} install -C back-$g \
137 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
138 BUILD_GRAPHICS="$g" \
142 %{__make} install -C Documentation \
143 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
145 # not (yet?) supported by rpm-compress-doc
146 find $RPM_BUILD_ROOT%{_prefix}/System/Library/Documentation -type f \
147 ! -name '*.gz' | xargs gzip -9nf
150 rm -rf $RPM_BUILD_ROOT
152 %post -p /sbin/ldconfig
153 %postun -p /sbin/ldconfig
156 %defattr(644,root,root,755)
158 %docdir %{_prefix}/System/Library/Documentation
159 %{_prefix}/System/Library/Documentation/Developer/Back
160 %{_prefix}/System/Library/Documentation/man/man1/gpbs.1*
162 %dir %{_prefix}/System/Library/Bundles/libgnustep-back.bundle
163 %{_prefix}/System/Library/Bundles/libgnustep-back.bundle/Resources
164 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back.bundle/%{gscpu}
166 %attr(755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/%{libcombo}/*
170 %defattr(644,root,root,755)
171 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle
172 %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle/Resources
173 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle/%{gscpu}
177 %defattr(644,root,root,755)
178 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle
179 %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle/Resources
180 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle/%{gscpu}