]> git.pld-linux.org Git - packages/gnustep-back.git/blame - gnustep-back.spec
- freetype epoch
[packages/gnustep-back.git] / gnustep-back.spec
CommitLineData
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 10Summary: The GNUstep backend bundle
1a660a69 11Summary(pl.UTF-8): Pakiet backendowy GNUstep
88ae2dc5 12Name: gnustep-back
c31555af 13Version: 0.24.0
03a4c117 14Release: 1
8da2e2a7 15License: LGPL v2+ (libraries), GPL v3+ (applicatinos)
88ae2dc5
JB
16Vendor: The GNUstep Project
17Group: X11/Libraries
18Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
c31555af
JB
19# Source0-md5: 0b8393832bd928b9d3ec4eb68d7f6564
20Patch0: %{name}-format.patch
88ae2dc5 21URL: http://www.gnustep.org/
eba566b8
JB
22BuildRequires: 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 28BuildRequires: gnustep-gui-devel >= %{version}
9adafbee 29%{?with_art:BuildRequires: libart_lgpl-devel}
c31555af 30BuildRequires: libtiff-devel
46bd9bcb 31BuildRequires: pkgconfig
8da2e2a7 32BuildRequires: xorg-lib-libXcursor-devel
eba566b8 33BuildRequires: xorg-lib-libXext-devel
8da2e2a7 34BuildRequires: xorg-lib-libXfixes-devel
eba566b8 35BuildRequires: xorg-lib-libXft-devel
8da2e2a7
JB
36BuildRequires: xorg-lib-libXmu-devel
37%{?with_cairo:BuildRequires: xorg-lib-libXrender-devel}
38%{?with_dps:BuildRequires: xorg-lib-libXt-devel}
b5177b90 39Requires: gnustep-gui >= %{version}
13b36c13 40Obsoletes: gnustep-back-devel
eba566b8 41%{!?with_dps:Obsoletes: gnustep-back-xdps}
88ae2dc5
JB
42Obsoletes: gnustep-xgps
43Conflicts: gnustep-core
44BuildRoot: %{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
50This is a backend for the GNUstep gui Library which allows you to use
776606a7 51the GNUstep gui Library on an X Window System (other backends will
88ae2dc5
JB
52be added later to allow you to use the GNUstep gui Library in other
53windowing environments).
54
55This package contains common part and xlib graphics backend.
56
c1b6c6b8
JR
57%description -l pl.UTF-8
58To jest backend dla biblioteki GNUstep GUI, pozwalający na używanie
59biblioteki graficznego interfejsu użytkownika GNUstep pod systemem X
60Window (inne backendy, pozwalające na używanie biblioteki GNUstep GUI
61w innych środowiskach okienkowych, zostaną dodane później).
88ae2dc5 62
c1b6c6b8 63Ten pakiet zawiera część wspólną i backend graficzny xlib.
88ae2dc5
JB
64
65%package art
66Summary: GNUstep graphics backend - art
1a660a69 67Summary(pl.UTF-8): Graficzny backend GNUstep - art
88ae2dc5 68Group: X11/Libraries
68194b28 69Requires: %{name} = %{version}-%{release}
ac71c070 70Requires: freetype >= 1:2.1.8
88ae2dc5
JB
71Conflicts: gnustep-core
72
73%description art
74GNUstep graphics backend - art.
75
c1b6c6b8 76%description art -l pl.UTF-8
88ae2dc5
JB
77Graficzny backend GNUstep - art.
78
46bd9bcb
JB
79%package cairo
80Summary: GNUstep graphics backend - cairo
1a660a69 81Summary(pl.UTF-8): Graficzny backend GNUstep - cairo
46bd9bcb
JB
82Group: X11/Libraries
83Requires: %{name} = %{version}-%{release}
3a3574b3 84Requires: cairo >= 1.0
46bd9bcb
JB
85
86%description cairo
87GNUstep graphics backend - cairo.
88
c1b6c6b8 89%description cairo -l pl.UTF-8
46bd9bcb
JB
90Graficzny backend GNUstep - cairo.
91
88ae2dc5
JB
92%package xdps
93Summary: GNUstep graphics backend - xdps
1a660a69 94Summary(pl.UTF-8): Graficzny backend GNUstep - xdps
88ae2dc5 95Group: X11/Libraries
68194b28 96Requires: %{name} = %{version}-%{release}
88ae2dc5
JB
97Obsoletes: gnustep-xdps
98Conflicts: gnustep-core
99
100%description xdps
101GNUstep graphics backend - xdps.
102
c1b6c6b8 103%description xdps -l pl.UTF-8
88ae2dc5
JB
104Graficzny 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
112sed -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 117echo * > files.list
9adafbee 118%if %{with art}
119install -d back-art
df5621b8 120cp -a `cat files.list` back-art
9adafbee 121%endif
b84176dd 122%if %{with cairo}
46bd9bcb
JB
123install -d back-cairo
124cp -a `cat files.list` back-cairo
b84176dd 125%endif
eba566b8 126%if %{with dps}
9adafbee 127install -d back-xdps
df5621b8 128cp -a `cat files.list` back-xdps
eba566b8 129%endif
df5621b8
JB
130ln -sf . back-xlib
131
88ae2dc5 132%build
fec01b4c 133export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
eba566b8 134export GNUSTEP_FLATTENED=yes
03a4c117 135export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
df5621b8 136
eba566b8 137for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
df5621b8 138cd back-$g
88ae2dc5 139if [ "$g" = "xlib" ]; then
88ae2dc5
JB
140 NAME="back"
141else
88ae2dc5
JB
142 NAME="back-$g"
143fi
3a3574b3 144if [ "$g" = "cairo" ]; then
8da2e2a7 145 CPPFLAGS="%{rpmcppflags} -I/usr/include/freetype2"
3a3574b3 146fi
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
154cd ..
155done
156
157%{__make} -C Documentation
88ae2dc5 158
df5621b8
JB
159%install
160rm -rf $RPM_BUILD_ROOT
fec01b4c 161export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles
eba566b8 162export GNUSTEP_FLATTENED=yes
03a4c117 163export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
88ae2dc5 164
eba566b8 165for g in %{?with_art:art} %{?with_cairo:cairo} %{?with_dps:xdps} xlib ; do
88ae2dc5
JB
166if [ "$g" = "xlib" ]; then
167 NAME="back"
168else
169 NAME="back-$g"
170fi
df5621b8 171%{__make} install -C back-$g \
fec01b4c 172 DESTDIR=$RPM_BUILD_ROOT \
88ae2dc5
JB
173 BUILD_GRAPHICS="$g" \
174 BACKEND_NAME="$NAME"
175done
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
181find $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
185rm -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
This page took 0.156489 seconds and 4 git commands to generate.