1 %bcond_with art # Build art backend
2 Summary: The GNUstep backend bundle
3 Summary(pl): Pakiet backendowy GNUstep
8 Vendor: The GNUstep Project
10 Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
11 # Source0-md5: 8c011a6663f6d9703ae2d879c317e7d7
12 URL: http://www.gnustep.org/
13 BuildRequires: OpenGL-devel
14 BuildRequires: WindowMaker-devel
15 BuildRequires: XFree86-devel
16 BuildRequires: XFree86-DPS-devel
17 %{?with_art:BuildRequires: freetype-devel >= 2.1.4}
18 %{?with_art:BuildRequires: freetype-devel < 2.1.8}
19 BuildRequires: gnustep-gui-devel >= %{version}
20 %{?with_art:BuildRequires: libart_lgpl-devel}
21 BuildRequires: xft-devel
23 Requires: gnustep-gui >= %{version}
24 Obsoletes: gnustep-back-devel
25 Obsoletes: gnustep-xgps
26 Conflicts: gnustep-core
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _prefix /usr/lib/GNUstep
31 %define _noautoreqdep libGL.so.1 libGLU.so.1
33 %define libcombo gnu-gnu-gnu
34 %define gsos linux-gnu
38 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
39 %define gscpu %{_target_cpu}
43 This is a backend for the GNUstep gui Library which allows you to use
44 the GNUstep gui Library on an X Window System (other backends will
45 be added later to allow you to use the GNUstep gui Library in other
46 windowing environments).
48 This package contains common part and xlib graphics backend.
51 To jest backend dla biblioteki GNUstep GUI, pozwalaj±cy na u¿ywanie
52 biblioteki graficznego interfejsu u¿ytkownika GNUstep pod systemem X
53 Window (inne backendy, pozwalaj±ce na u¿ywanie biblioteki GNUstep GUI
54 w innych ¶rodowiskach okienkowych, zostan± dodane pó¼niej).
56 Ten pakiet zawiera czê¶æ wspóln± i backend graficzny xlib.
59 Summary: GNUstep graphics backend - art
60 Summary(pl): Graficzny backend GNUstep - art
62 Requires: %{name} = %{version}
63 Requires: freetype >= 2.1.4
64 Conflicts: gnustep-core
67 GNUstep graphics backend - art.
69 %description art -l pl
70 Graficzny backend GNUstep - art.
73 Summary: GNUstep graphics backend - xdps
74 Summary(pl): Graficzny backend GNUstep - xdps
76 Requires: %{name} = %{version}
77 Obsoletes: gnustep-xdps
78 Conflicts: gnustep-core
81 GNUstep graphics backend - xdps.
83 %description xdps -l pl
84 Graficzny backend GNUstep - xdps.
89 # prepare three trees (for art, xdps and xlib backends)
93 cp -a `cat files.list` back-art
96 cp -a `cat files.list` back-xdps
100 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
102 for g in %{?with_art:art} xdps xlib ; do
104 if [ "$g" = "xlib" ]; then
105 INC='--with-include-flags=-I/usr/include/freetype2'
112 --enable-graphics=$g \
121 %{__make} -C Documentation
124 rm -rf $RPM_BUILD_ROOT
125 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
127 for g in %{?with_art:art} xdps xlib ; do
128 if [ "$g" = "xlib" ]; then
133 %{__make} install -C back-$g \
134 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
135 BUILD_GRAPHICS="$g" \
139 %{__make} install -C Documentation \
140 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \
142 # not (yet?) supported by rpm-compress-doc
143 find $RPM_BUILD_ROOT%{_prefix}/System/Library/Documentation -type f \
144 ! -name '*.gz' | xargs gzip -9nf
147 rm -rf $RPM_BUILD_ROOT
149 %post -p /sbin/ldconfig
150 %postun -p /sbin/ldconfig
153 %defattr(644,root,root,755)
155 %docdir %{_prefix}/System/Library/Documentation
156 %{_prefix}/System/Library/Documentation/Developer/Back
157 %{_prefix}/System/Library/Documentation/man/man1/gpbs.1*
159 %dir %{_prefix}/System/Library/Bundles/libgnustep-back.bundle
160 %{_prefix}/System/Library/Bundles/libgnustep-back.bundle/Resources
161 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back.bundle/%{gscpu}
163 %attr(755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/%{libcombo}/*
167 %defattr(644,root,root,755)
168 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle
169 %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle/Resources
170 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle/%{gscpu}
174 %defattr(644,root,root,755)
175 %dir %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle
176 %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle/Resources
177 %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle/%{gscpu}