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
16 Vendor: The GNUstep Project
18 Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
19 # Source0-md5: 998466053c8cb651eeadf6d0bf69dd94
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_art:BuildRequires: freetype-devel >= 2.1.8}
25 %{?with_glitz:BuildRequires: glitz-devel}
26 BuildRequires: gnustep-gui-devel >= %{version}
27 %{?with_art:BuildRequires: libart_lgpl-devel}
28 BuildRequires: pkgconfig
29 BuildRequires: xorg-lib-libXext-devel
30 BuildRequires: xorg-lib-libXmu-devel
31 BuildRequires: xorg-lib-libXft-devel
32 Requires: gnustep-gui >= %{version}
33 Obsoletes: gnustep-back-devel
34 %{!?with_dps:Obsoletes: gnustep-back-xdps}
35 Obsoletes: gnustep-xgps
36 Conflicts: gnustep-core
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _noautoreqdep libGL.so.1 libGLU.so.1
42 This is a backend for the GNUstep gui Library which allows you to use
43 the GNUstep gui Library on an X Window System (other backends will
44 be added later to allow you to use the GNUstep gui Library in other
45 windowing environments).
47 This package contains common part and xlib graphics backend.
49 %description -l pl.UTF-8
50 To jest backend dla biblioteki GNUstep GUI, pozwalający na używanie
51 biblioteki graficznego interfejsu użytkownika GNUstep pod systemem X
52 Window (inne backendy, pozwalające na używanie biblioteki GNUstep GUI
53 w innych środowiskach okienkowych, zostaną dodane później).
55 Ten pakiet zawiera część wspólną i backend graficzny xlib.
58 Summary: GNUstep graphics backend - art
59 Summary(pl.UTF-8): Graficzny backend GNUstep - art
61 Requires: %{name} = %{version}-%{release}
62 Requires: freetype >= 2.1.8
63 Conflicts: gnustep-core
66 GNUstep graphics backend - art.
68 %description art -l pl.UTF-8
69 Graficzny backend GNUstep - art.
72 Summary: GNUstep graphics backend - cairo
73 Summary(pl.UTF-8): Graficzny backend GNUstep - cairo
75 Requires: %{name} = %{version}-%{release}
76 Requires: cairo >= 1.0
79 GNUstep graphics backend - cairo.
81 %description cairo -l pl.UTF-8
82 Graficzny backend GNUstep - cairo.
85 Summary: GNUstep graphics backend - xdps
86 Summary(pl.UTF-8): Graficzny backend GNUstep - xdps
88 Requires: %{name} = %{version}-%{release}
89 Obsoletes: gnustep-xdps
90 Conflicts: gnustep-core
93 GNUstep graphics backend - xdps.
95 %description xdps -l pl.UTF-8
96 Graficzny backend GNUstep - xdps.
102 # hack cairo header - objc doesn't allow #defines in #include
103 sed -e 's,FT_FREETYPE_H,<freetype/freetype.h>,' /usr/include/cairo/cairo-ft.h > \
107 # prepare the trees (for art, cairo, xdps, xlib backends)
111 cp -a `cat files.list` back-art
114 install -d back-cairo
115 cp -a `cat files.list` back-cairo
119 cp -a `cat files.list` back-xdps
124 export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
125 export GNUSTEP_FLATTENED=yes
127 for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
129 if [ "$g" = "xlib" ]; then
134 if [ "$g" = "cairo" ]; then
135 CPPFLAGS="-I/usr/include/freetype2"
138 %{!?with_glitz:--disable-glitz} \
139 --enable-graphics=$g \
147 %{__make} -C Documentation
150 rm -rf $RPM_BUILD_ROOT
151 export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
152 export GNUSTEP_FLATTENED=yes
154 for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
155 if [ "$g" = "xlib" ]; then
160 %{__make} install -C back-$g \
161 DESTDIR=$RPM_BUILD_ROOT \
162 BUILD_GRAPHICS="$g" \
166 %{__make} install -C Documentation \
167 DESTDIR=$RPM_BUILD_ROOT
169 # not (yet?) supported by rpm-compress-doc
170 find $RPM_BUILD_ROOT%{_datadir}/GNUstep/Documentation \
171 -type f -a ! -name '*.html' -a ! -name '*.gz' -a ! -name '*.jpg' -a ! -name '*.css' | xargs gzip -9nf
174 rm -rf $RPM_BUILD_ROOT
176 %post -p /sbin/ldconfig
177 %postun -p /sbin/ldconfig
180 %defattr(644,root,root,755)
182 %docdir %{_datadir}/GNUstep/Documentation
183 %{_datadir}/GNUstep/Documentation/Developer/Back
184 %{_mandir}/man1/gpbs.1*
186 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-013.bundle
187 %{_libdir}/GNUstep/Bundles/libgnustep-back-013.bundle/Resources
188 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-013.bundle/libgnustep-back-013
190 %dir %{_libdir}/GNUstep/Fonts
191 # XXX: n0190{0,2,4,6}{3,4}.{pfb,afm,pfm} - symlink from ghostscript-fonts-std?
192 %{_libdir}/GNUstep/Fonts/Helvetica.nfont
194 %attr(755,root,root) %{_bindir}/*
198 %defattr(644,root,root,755)
199 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-art-013.bundle
200 %{_libdir}/GNUstep/Bundles/libgnustep-back-art-013.bundle/Resources
201 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-art-013.bundle/libgnustep-back-art-013
206 %defattr(644,root,root,755)
207 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-013.bundle
208 %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-013.bundle/Resources
209 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-013.bundle/libgnustep-back-cairo-013
214 %defattr(644,root,root,755)
215 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-013.bundle
216 %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-013.bundle/Resources
217 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-013.bundle/libgnustep-back-xdps-013