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: 0b8393832bd928b9d3ec4eb68d7f6564
20 Patch0: %{name}-format.patch
21 URL: http://www.gnustep.org/
22 BuildRequires: OpenGL-GLX-devel
23 %{?with_dps:BuildRequires: X11-DPS-devel}
24 %{?with_cairo:BuildRequires: cairo-devel >= 1.0}
25 %{?with_cairo:BuildRequires: fontconfig-devel}
26 %{?with_art:BuildRequires: freetype-devel >= 1:2.1.8}
27 %{?with_glitz:BuildRequires: glitz-devel}
28 BuildRequires: gnustep-gui-devel >= %{version}
29 %{?with_art:BuildRequires: libart_lgpl-devel}
30 BuildRequires: libtiff-devel
31 BuildRequires: pkgconfig
32 BuildRequires: xorg-lib-libXcursor-devel
33 BuildRequires: xorg-lib-libXext-devel
34 BuildRequires: xorg-lib-libXfixes-devel
35 BuildRequires: xorg-lib-libXft-devel
36 BuildRequires: xorg-lib-libXmu-devel
37 %{?with_cairo:BuildRequires: xorg-lib-libXrender-devel}
38 %{?with_dps:BuildRequires: xorg-lib-libXt-devel}
39 Requires: gnustep-gui >= %{version}
40 Obsoletes: gnustep-back-devel
41 %{!?with_dps:Obsoletes: gnustep-back-xdps}
42 Obsoletes: gnustep-xgps
43 Conflicts: gnustep-core
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 # bundles version (echo %{version} | cut -d. -f1,2 | tr -d .)
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.
57 %description -l pl.UTF-8
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.UTF-8): Graficzny backend GNUstep - art
69 Requires: %{name} = %{version}-%{release}
70 Requires: freetype >= 1:2.1.8
71 Conflicts: gnustep-core
74 GNUstep graphics backend - art.
76 %description art -l pl.UTF-8
77 Graficzny backend GNUstep - art.
80 Summary: GNUstep graphics backend - cairo
81 Summary(pl.UTF-8): Graficzny backend GNUstep - cairo
83 Requires: %{name} = %{version}-%{release}
84 Requires: cairo >= 1.0
87 GNUstep graphics backend - cairo.
89 %description cairo -l pl.UTF-8
90 Graficzny backend GNUstep - cairo.
93 Summary: GNUstep graphics backend - xdps
94 Summary(pl.UTF-8): 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.UTF-8
104 Graficzny backend GNUstep - xdps.
111 # hack cairo header - objc doesn't allow #defines in #include
112 sed -e 's,FT_FREETYPE_H,<freetype/freetype.h>,' /usr/include/cairo/cairo-ft.h > \
116 # prepare the trees (for art, cairo, xdps, xlib backends)
120 cp -a `cat files.list` back-art
123 install -d back-cairo
124 cp -a `cat files.list` back-cairo
128 cp -a `cat files.list` back-xdps
133 export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
134 export GNUSTEP_FLATTENED=yes
135 export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
137 for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
139 if [ "$g" = "xlib" ]; then
144 if [ "$g" = "cairo" ]; then
145 CPPFLAGS="%{rpmcppflags} -I/usr/include/freetype2"
148 %{!?with_glitz:--disable-glitz} \
149 --enable-graphics=$g \
157 %{__make} -C Documentation
160 rm -rf $RPM_BUILD_ROOT
161 export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
162 export GNUSTEP_FLATTENED=yes
163 export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
165 for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
166 if [ "$g" = "xlib" ]; then
171 %{__make} install -C back-$g \
172 DESTDIR=$RPM_BUILD_ROOT \
173 BUILD_GRAPHICS="$g" \
177 %{__make} install -C Documentation \
178 DESTDIR=$RPM_BUILD_ROOT
180 # not (yet?) supported by rpm-compress-doc
181 find $RPM_BUILD_ROOT%{_datadir}/GNUstep/Documentation \
182 -type f -a ! -name '*.html' -a ! -name '*.gz' -a ! -name '*.jpg' -a ! -name '*.css' | xargs gzip -9nf
185 rm -rf $RPM_BUILD_ROOT
187 %post -p /sbin/ldconfig
188 %postun -p /sbin/ldconfig
191 %defattr(644,root,root,755)
194 %docdir %{_datadir}/GNUstep/Documentation
195 %{_datadir}/GNUstep/Documentation/Developer/Back
197 %attr(755,root,root) %{_bindir}/font_cacher
198 %attr(755,root,root) %{_bindir}/gpbs
200 %{_mandir}/man1/gpbs.1*
202 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-%{bver}.bundle
203 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-%{bver}.bundle/libgnustep-back-%{bver}
204 %{_libdir}/GNUstep/Bundles/libgnustep-back-%{bver}.bundle/Resources
205 %{_libdir}/GNUstep/Bundles/libgnustep-back-%{bver}.bundle/stamp.make
207 %dir %{_libdir}/GNUstep/Fonts
208 # XXX: n0190{0,2,4,6}{3,4}.{pfb,afm,pfm} - symlink from ghostscript-fonts-std?
209 %{_libdir}/GNUstep/Fonts/Helvetica.nfont
213 %defattr(644,root,root,755)
214 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-art-%{bver}.bundle
215 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-art-%{bver}.bundle/libgnustep-back-art-%{bver}
216 %{_libdir}/GNUstep/Bundles/libgnustep-back-art-%{bver}.bundle/Resources
217 %{_libdir}/GNUstep/Bundles/libgnustep-back-art-%{bver}.bundle/stamp.make
222 %defattr(644,root,root,755)
223 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-%{bver}.bundle
224 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-%{bver}.bundle/libgnustep-back-cairo-%{bver}
225 %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-%{bver}.bundle/Resources
226 %{_libdir}/GNUstep/Bundles/libgnustep-back-cairo-%{bver}.bundle/stamp.make
231 %defattr(644,root,root,755)
232 %dir %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-%{bver}.bundle
233 %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-%{bver}.bundle/libgnustep-back-xdps-%{bver}
234 %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-%{bver}.bundle/Resources
235 %{_libdir}/GNUstep/Bundles/libgnustep-back-xdps-%{bver}.bundle/stamp.make