2 # - symlink Helvetica from ghostscript-fonts-std?
5 %bcond_without art # art backend
6 %bcond_with dps # xdps backend
7 %bcond_without cairo # cairo backend
8 %bcond_with glitz # glitz support in cairo backend (requires cairo built with glitz)
10 Summary: The GNUstep backend bundle
11 Summary(pl.UTF-8): Pakiet backendowy GNUstep
15 License: LGPL v2+ (libraries), GPL v3+ (applicatinos)
16 Vendor: The GNUstep Project
18 Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
19 # Source0-md5: bde6f222bc74a0ba02f57fa1908c200e
20 URL: http://www.gnustep.org/
21 BuildRequires: OpenGL-GLX-devel
22 %{?with_dps:BuildRequires: X11-DPS-devel}
23 %{?with_cairo:BuildRequires: cairo-devel >= 1.0}
24 %{?with_cairo:BuildRequires: fontconfig-devel}
25 %{?with_art:BuildRequires: freetype-devel >= 2.1.8}
26 %{?with_glitz:BuildRequires: glitz-devel}
27 BuildRequires: gnustep-gui-devel >= %{version}
28 %{?with_art:BuildRequires: libart_lgpl-devel}
29 BuildRequires: pkgconfig
30 BuildRequires: xorg-lib-libXcursor-devel
31 BuildRequires: xorg-lib-libXext-devel
32 BuildRequires: xorg-lib-libXfixes-devel
33 BuildRequires: xorg-lib-libXft-devel
34 BuildRequires: xorg-lib-libXmu-devel
35 %{?with_cairo:BuildRequires: xorg-lib-libXrender-devel}
36 %{?with_dps:BuildRequires: xorg-lib-libXt-devel}
37 Requires: gnustep-gui >= %{version}
38 Obsoletes: gnustep-back-devel
39 %{!?with_dps:Obsoletes: gnustep-back-xdps}
40 Obsoletes: gnustep-xgps
41 Conflicts: gnustep-core
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define _noautoreqdep libGL.so.1 libGLU.so.1
47 This is a backend for the GNUstep gui Library which allows you to use
48 the GNUstep gui Library on an X Window System (other backends will
49 be added later to allow you to use the GNUstep gui Library in other
50 windowing environments).
52 This package contains common part and xlib graphics backend.
54 %description -l pl.UTF-8
55 To jest backend dla biblioteki GNUstep GUI, pozwalający na używanie
56 biblioteki graficznego interfejsu użytkownika GNUstep pod systemem X
57 Window (inne backendy, pozwalające na używanie biblioteki GNUstep GUI
58 w innych środowiskach okienkowych, zostaną dodane później).
60 Ten pakiet zawiera część wspólną i backend graficzny xlib.
63 Summary: GNUstep graphics backend - art
64 Summary(pl.UTF-8): Graficzny backend GNUstep - art
66 Requires: %{name} = %{version}-%{release}
67 Requires: freetype >= 2.1.8
68 Conflicts: gnustep-core
71 GNUstep graphics backend - art.
73 %description art -l pl.UTF-8
74 Graficzny backend GNUstep - art.
77 Summary: GNUstep graphics backend - cairo
78 Summary(pl.UTF-8): Graficzny backend GNUstep - cairo
80 Requires: %{name} = %{version}-%{release}
81 Requires: cairo >= 1.0
84 GNUstep graphics backend - cairo.
86 %description cairo -l pl.UTF-8
87 Graficzny backend GNUstep - cairo.
90 Summary: GNUstep graphics backend - xdps
91 Summary(pl.UTF-8): Graficzny backend GNUstep - xdps
93 Requires: %{name} = %{version}-%{release}
94 Obsoletes: gnustep-xdps
95 Conflicts: gnustep-core
98 GNUstep graphics backend - xdps.
100 %description xdps -l pl.UTF-8
101 Graficzny backend GNUstep - xdps.
107 # hack cairo header - objc doesn't allow #defines in #include
108 sed -e 's,FT_FREETYPE_H,<freetype/freetype.h>,' /usr/include/cairo/cairo-ft.h > \
112 # prepare the trees (for art, cairo, xdps, xlib backends)
116 cp -a `cat files.list` back-art
119 install -d back-cairo
120 cp -a `cat files.list` back-cairo
124 cp -a `cat files.list` back-xdps
129 export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
130 export GNUSTEP_FLATTENED=yes
131 export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
133 for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
135 if [ "$g" = "xlib" ]; then
140 if [ "$g" = "cairo" ]; then
141 CPPFLAGS="%{rpmcppflags} -I/usr/include/freetype2"
144 %{!?with_glitz:--disable-glitz} \
145 --enable-graphics=$g \
153 %{__make} -C Documentation
156 rm -rf $RPM_BUILD_ROOT
157 export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
158 export GNUSTEP_FLATTENED=yes
159 export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
161 for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
162 if [ "$g" = "xlib" ]; then
167 %{__make} install -C back-$g \
168 DESTDIR=$RPM_BUILD_ROOT \
169 BUILD_GRAPHICS="$g" \
173 %{__make} install -C Documentation \
174 DESTDIR=$RPM_BUILD_ROOT
176 # not (yet?) supported by rpm-compress-doc
177 find $RPM_BUILD_ROOT%{_datadir}/GNUstep/Documentation \
178 -type f -a ! -name '*.html' -a ! -name '*.gz' -a ! -name '*.jpg' -a ! -name '*.css' | xargs gzip -9nf
181 rm -rf $RPM_BUILD_ROOT
183 %post -p /sbin/ldconfig
184 %postun -p /sbin/ldconfig
187 %defattr(644,root,root,755)
190 %docdir %{_datadir}/GNUstep/Documentation
191 %{_datadir}/GNUstep/Documentation/Developer/Back
193 %attr(755,root,root) %{_bindir}/font_cacher
194 %attr(755,root,root) %{_bindir}/gpbs
196 %{_mandir}/man1/gpbs.1*
198 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-023.bundle
199 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-023.bundle/libgnustep-back-023
200 %{_libdir}/GNUstep/Bundles/libgnustep-back-023.bundle/Resources
201 %{_libdir}/GNUstep/Bundles/libgnustep-back-023.bundle/stamp.make
203 %dir %{_libdir}/GNUstep/Fonts
204 # XXX: n0190{0,2,4,6}{3,4}.{pfb,afm,pfm} - symlink from ghostscript-fonts-std?
205 %{_libdir}/GNUstep/Fonts/Helvetica.nfont
209 %defattr(644,root,root,755)
210 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-art-023.bundle
211 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-art-023.bundle/libgnustep-back-art-023
212 %{_libdir}/GNUstep/Bundles/libgnustep-back-art-023.bundle/Resources
213 %{_libdir}/GNUstep/Bundles/libgnustep-back-art-023.bundle/stamp.make
218 %defattr(644,root,root,755)
219 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-023.bundle
220 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-023.bundle/libgnustep-back-cairo-023
221 %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-023.bundle/Resources
222 %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-023.bundle/stamp.make
227 %defattr(644,root,root,755)
228 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-023.bundle
229 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-023.bundle/libgnustep-back-xdps-023
230 %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-023.bundle/Resources
231 %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-023.bundle/stamp.make