]>
Commit | Line | Data |
---|---|---|
c90e63c6 AM |
1 | # TODO: |
2 | # - symlink Helvetica from ghostscript-fonts-std? | |
68194b28 JB |
3 | # |
4 | # Conditional build: | |
eba566b8 JB |
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) | |
68194b28 | 9 | # |
88ae2dc5 | 10 | Summary: The GNUstep backend bundle |
1a660a69 | 11 | Summary(pl.UTF-8): Pakiet backendowy GNUstep |
88ae2dc5 | 12 | Name: gnustep-back |
c31555af | 13 | Version: 0.24.0 |
03a4c117 | 14 | Release: 1 |
8da2e2a7 | 15 | License: LGPL v2+ (libraries), GPL v3+ (applicatinos) |
88ae2dc5 JB |
16 | Vendor: The GNUstep Project |
17 | Group: X11/Libraries | |
18 | Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz | |
c31555af JB |
19 | # Source0-md5: 0b8393832bd928b9d3ec4eb68d7f6564 |
20 | Patch0: %{name}-format.patch | |
88ae2dc5 | 21 | URL: http://www.gnustep.org/ |
eba566b8 JB |
22 | BuildRequires: OpenGL-GLX-devel |
23 | %{?with_dps:BuildRequires: X11-DPS-devel} | |
3a3574b3 | 24 | %{?with_cairo:BuildRequires: cairo-devel >= 1.0} |
8da2e2a7 | 25 | %{?with_cairo:BuildRequires: fontconfig-devel} |
ac71c070 | 26 | %{?with_art:BuildRequires: freetype-devel >= 1:2.1.8} |
eba566b8 | 27 | %{?with_glitz:BuildRequires: glitz-devel} |
b5177b90 | 28 | BuildRequires: gnustep-gui-devel >= %{version} |
9adafbee | 29 | %{?with_art:BuildRequires: libart_lgpl-devel} |
c31555af | 30 | BuildRequires: libtiff-devel |
46bd9bcb | 31 | BuildRequires: pkgconfig |
8da2e2a7 | 32 | BuildRequires: xorg-lib-libXcursor-devel |
eba566b8 | 33 | BuildRequires: xorg-lib-libXext-devel |
8da2e2a7 | 34 | BuildRequires: xorg-lib-libXfixes-devel |
eba566b8 | 35 | BuildRequires: xorg-lib-libXft-devel |
8da2e2a7 JB |
36 | BuildRequires: xorg-lib-libXmu-devel |
37 | %{?with_cairo:BuildRequires: xorg-lib-libXrender-devel} | |
38 | %{?with_dps:BuildRequires: xorg-lib-libXt-devel} | |
b5177b90 | 39 | Requires: gnustep-gui >= %{version} |
13b36c13 | 40 | Obsoletes: gnustep-back-devel |
eba566b8 | 41 | %{!?with_dps:Obsoletes: gnustep-back-xdps} |
88ae2dc5 JB |
42 | Obsoletes: gnustep-xgps |
43 | Conflicts: gnustep-core | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
c31555af JB |
46 | # bundles version (echo %{version} | cut -d. -f1,2 | tr -d .) |
47 | %define bver 024 | |
8e19a59f | 48 | |
88ae2dc5 JB |
49 | %description |
50 | This is a backend for the GNUstep gui Library which allows you to use | |
776606a7 | 51 | the GNUstep gui Library on an X Window System (other backends will |
88ae2dc5 JB |
52 | be added later to allow you to use the GNUstep gui Library in other |
53 | windowing environments). | |
54 | ||
55 | This package contains common part and xlib graphics backend. | |
56 | ||
c1b6c6b8 JR |
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). | |
88ae2dc5 | 62 | |
c1b6c6b8 | 63 | Ten pakiet zawiera część wspólną i backend graficzny xlib. |
88ae2dc5 JB |
64 | |
65 | %package art | |
66 | Summary: GNUstep graphics backend - art | |
1a660a69 | 67 | Summary(pl.UTF-8): Graficzny backend GNUstep - art |
88ae2dc5 | 68 | Group: X11/Libraries |
68194b28 | 69 | Requires: %{name} = %{version}-%{release} |
ac71c070 | 70 | Requires: freetype >= 1:2.1.8 |
88ae2dc5 JB |
71 | Conflicts: gnustep-core |
72 | ||
73 | %description art | |
74 | GNUstep graphics backend - art. | |
75 | ||
c1b6c6b8 | 76 | %description art -l pl.UTF-8 |
88ae2dc5 JB |
77 | Graficzny backend GNUstep - art. |
78 | ||
46bd9bcb JB |
79 | %package cairo |
80 | Summary: GNUstep graphics backend - cairo | |
1a660a69 | 81 | Summary(pl.UTF-8): Graficzny backend GNUstep - cairo |
46bd9bcb JB |
82 | Group: X11/Libraries |
83 | Requires: %{name} = %{version}-%{release} | |
3a3574b3 | 84 | Requires: cairo >= 1.0 |
46bd9bcb JB |
85 | |
86 | %description cairo | |
87 | GNUstep graphics backend - cairo. | |
88 | ||
c1b6c6b8 | 89 | %description cairo -l pl.UTF-8 |
46bd9bcb JB |
90 | Graficzny backend GNUstep - cairo. |
91 | ||
88ae2dc5 JB |
92 | %package xdps |
93 | Summary: GNUstep graphics backend - xdps | |
1a660a69 | 94 | Summary(pl.UTF-8): Graficzny backend GNUstep - xdps |
88ae2dc5 | 95 | Group: X11/Libraries |
68194b28 | 96 | Requires: %{name} = %{version}-%{release} |
88ae2dc5 JB |
97 | Obsoletes: gnustep-xdps |
98 | Conflicts: gnustep-core | |
99 | ||
100 | %description xdps | |
101 | GNUstep graphics backend - xdps. | |
102 | ||
c1b6c6b8 | 103 | %description xdps -l pl.UTF-8 |
88ae2dc5 JB |
104 | Graficzny backend GNUstep - xdps. |
105 | ||
88ae2dc5 JB |
106 | %prep |
107 | %setup -q | |
c31555af | 108 | %patch0 -p1 |
88ae2dc5 | 109 | |
3a3574b3 JB |
110 | %if %{with cairo} |
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 > \ | |
113 | Headers/cairo-ft.h | |
114 | %endif | |
115 | ||
46bd9bcb | 116 | # prepare the trees (for art, cairo, xdps, xlib backends) |
df5621b8 | 117 | echo * > files.list |
9adafbee | 118 | %if %{with art} |
119 | install -d back-art | |
df5621b8 | 120 | cp -a `cat files.list` back-art |
9adafbee | 121 | %endif |
b84176dd | 122 | %if %{with cairo} |
46bd9bcb JB |
123 | install -d back-cairo |
124 | cp -a `cat files.list` back-cairo | |
b84176dd | 125 | %endif |
eba566b8 | 126 | %if %{with dps} |
9adafbee | 127 | install -d back-xdps |
df5621b8 | 128 | cp -a `cat files.list` back-xdps |
eba566b8 | 129 | %endif |
df5621b8 JB |
130 | ln -sf . back-xlib |
131 | ||
88ae2dc5 | 132 | %build |
fec01b4c | 133 | export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles |
eba566b8 | 134 | export GNUSTEP_FLATTENED=yes |
03a4c117 | 135 | export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM |
df5621b8 | 136 | |
eba566b8 | 137 | for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do |
df5621b8 | 138 | cd back-$g |
88ae2dc5 | 139 | if [ "$g" = "xlib" ]; then |
88ae2dc5 JB |
140 | NAME="back" |
141 | else | |
88ae2dc5 JB |
142 | NAME="back-$g" |
143 | fi | |
3a3574b3 | 144 | if [ "$g" = "cairo" ]; then |
8da2e2a7 | 145 | CPPFLAGS="%{rpmcppflags} -I/usr/include/freetype2" |
3a3574b3 | 146 | fi |
88ae2dc5 | 147 | %configure \ |
eba566b8 | 148 | %{!?with_glitz:--disable-glitz} \ |
88ae2dc5 | 149 | --enable-graphics=$g \ |
3a3574b3 | 150 | --with-name=$NAME |
88ae2dc5 JB |
151 | |
152 | %{__make} \ | |
153 | messages=yes | |
df5621b8 JB |
154 | cd .. |
155 | done | |
156 | ||
157 | %{__make} -C Documentation | |
88ae2dc5 | 158 | |
df5621b8 JB |
159 | %install |
160 | rm -rf $RPM_BUILD_ROOT | |
fec01b4c | 161 | export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles |
eba566b8 | 162 | export GNUSTEP_FLATTENED=yes |
03a4c117 | 163 | export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM |
88ae2dc5 | 164 | |
eba566b8 | 165 | for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do |
88ae2dc5 JB |
166 | if [ "$g" = "xlib" ]; then |
167 | NAME="back" | |
168 | else | |
169 | NAME="back-$g" | |
170 | fi | |
df5621b8 | 171 | %{__make} install -C back-$g \ |
fec01b4c | 172 | DESTDIR=$RPM_BUILD_ROOT \ |
88ae2dc5 JB |
173 | BUILD_GRAPHICS="$g" \ |
174 | BACKEND_NAME="$NAME" | |
175 | done | |
176 | ||
177 | %{__make} install -C Documentation \ | |
fec01b4c | 178 | DESTDIR=$RPM_BUILD_ROOT |
df5621b8 | 179 | |
88ae2dc5 | 180 | # not (yet?) supported by rpm-compress-doc |
fec01b4c JR |
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 | |
88ae2dc5 JB |
183 | |
184 | %clean | |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
187 | %post -p /sbin/ldconfig | |
188 | %postun -p /sbin/ldconfig | |
189 | ||
190 | %files | |
191 | %defattr(644,root,root,755) | |
192 | %doc ChangeLog | |
8da2e2a7 | 193 | |
fec01b4c JR |
194 | %docdir %{_datadir}/GNUstep/Documentation |
195 | %{_datadir}/GNUstep/Documentation/Developer/Back | |
8da2e2a7 JB |
196 | |
197 | %attr(755,root,root) %{_bindir}/font_cacher | |
198 | %attr(755,root,root) %{_bindir}/gpbs | |
199 | ||
fec01b4c | 200 | %{_mandir}/man1/gpbs.1* |
88ae2dc5 | 201 | |
c31555af JB |
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 | |
b84176dd | 206 | |
fec01b4c | 207 | %dir %{_libdir}/GNUstep/Fonts |
b84176dd | 208 | # XXX: n0190{0,2,4,6}{3,4}.{pfb,afm,pfm} - symlink from ghostscript-fonts-std? |
fec01b4c | 209 | %{_libdir}/GNUstep/Fonts/Helvetica.nfont |
88ae2dc5 | 210 | |
9adafbee | 211 | %if %{with art} |
88ae2dc5 JB |
212 | %files art |
213 | %defattr(644,root,root,755) | |
c31555af JB |
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 | |
9adafbee | 218 | %endif |
88ae2dc5 | 219 | |
b84176dd | 220 | %if %{with cairo} |
46bd9bcb JB |
221 | %files cairo |
222 | %defattr(644,root,root,755) | |
c31555af JB |
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 | |
b84176dd | 227 | %endif |
46bd9bcb | 228 | |
eba566b8 | 229 | %if %{with dps} |
88ae2dc5 JB |
230 | %files xdps |
231 | %defattr(644,root,root,755) | |
c31555af JB |
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 | |
eba566b8 | 236 | %endif |