Summary: The GNUstep backend bundle Summary(pl): Pakiet backendowy GNUstep Name: gnustep-back Version: 0.8.8 Release: 2 License: LGPL/GPL Vendor: The GNUstep Project Group: X11/Libraries Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz # Source0-md5: 20c2d2f4f44bac053f7df02025c968d5 Patch0: %{name}-xdps-fix.patch URL: http://www.gnustep.org/ BuildRequires: OpenGL-devel BuildRequires: WindowMaker-devel BuildRequires: XFree86-devel BuildRequires: XFree86-DPS-devel BuildRequires: freetype-devel >= 2.1.4 BuildRequires: gnustep-gui-devel >= 0.8.8-2 BuildRequires: libart_lgpl-devel BuildRequires: xft-devel Requires: OpenGL Requires: gnustep-gui >= 0.8.8-2 Obsoletes: gnustep-xgps Conflicts: gnustep-core BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _prefix /usr/lib/GNUstep %define _noautoreqdep libGL.so.1 libGLU.so.1 %define libcombo gnu-gnu-gnu %define gsos linux-gnu %ifarch %{ix86} %define gscpu ix86 %else # also s/alpha.*/alpha/, but we use only "alpha" arch for now %define gscpu %{_target_cpu} %endif %description This is a backend for the GNUstep gui Library which allows you to use the GNUstep gui Library on an X Window System (other backends will be added later to allow you to use the GNUstep gui Library in other windowing environments). This package contains common part and xlib graphics backend. %description -l pl To jest backend dla biblioteki GNUstep GUI, pozwalający na używanie biblioteki graficznego interfejsu użytkownika GNUstep pod systemem X Window (inne backendy, pozwalające na używanie biblioteki GNUstep GUI w innych środowiskach okienkowych, zostaną dodane później). Ten pakiet zawiera część wspólną i backend graficzny xlib. %package art Summary: GNUstep graphics backend - art Summary(pl): Graficzny backend GNUstep - art Group: X11/Libraries Requires: %{name} = %{version} Requires: freetype >= 2.1.4 Conflicts: gnustep-core %description art GNUstep graphics backend - art. %description art -l pl Graficzny backend GNUstep - art. %package xdps Summary: GNUstep graphics backend - xdps Summary(pl): Graficzny backend GNUstep - xdps Group: X11/Libraries Requires: %{name} = %{version} Obsoletes: gnustep-xdps Conflicts: gnustep-core %description xdps GNUstep graphics backend - xdps. %description xdps -l pl Graficzny backend GNUstep - xdps. %package devel Summary: Headers for GNUstep backends Summary(pl): Pliki nagłówkowe backendów GNUstep Group: X11/Development/Libraries Requires: %{name} = %{version} Requires: XFree86-devel Requires: gnustep-gui-devel >= 0.8.8-2 Requires: xft-devel Obsoletes: gnustep-xdps-devel Obsoletes: gnustep-xgps-devel Conflicts: gnustep-core %description devel This package contains development headers for GNUstep backends. It includes also files specific for all x11 graphic backends (xlib, art, xdps). %description devel -l pl Ten pakiet zawiera pliki nagłówkowe dla backendów GNUstep, w tym pliki specyficzne dla wszystkich backendów graficznych dla x11 (xlib, art, xdps). %prep %setup -q %patch0 -p1 # prepare three trees (for art, xdps and xlib backends) echo * > files.list install -d back-art back-xdps cp -a `cat files.list` back-art cp -a `cat files.list` back-xdps ln -sf . back-xlib %build . %{_prefix}/System/Library/Makefiles/GNUstep.sh for g in art xdps xlib ; do cd back-$g if [ "$g" = "xlib" ]; then INC='--with-include-flags=-I/usr/include/freetype2' NAME="back" else INC= NAME="back-$g" fi %configure \ --enable-graphics=$g \ --with-name=$NAME \ $INC %{__make} \ messages=yes cd .. done %{__make} -C Documentation %install rm -rf $RPM_BUILD_ROOT . %{_prefix}/System/Library/Makefiles/GNUstep.sh for g in art xdps xlib ; do if [ "$g" = "xlib" ]; then NAME="back" else NAME="back-$g" fi %{__make} install -C back-$g \ GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \ BUILD_GRAPHICS="$g" \ BACKEND_NAME="$NAME" done %{__make} install -C Documentation \ GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System \ # not (yet?) supported by rpm-compress-doc find $RPM_BUILD_ROOT%{_prefix}/System/Library/Documentation -type f \ ! -name '*.gz' | xargs gzip -9nf %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc ChangeLog %docdir %{_prefix}/System/Library/Documentation %{_prefix}/System/Library/Documentation/Developer/Back %{_prefix}/System/Library/Documentation/man/man1/gpbs.1* %dir %{_prefix}/System/Library/Bundles/libgnustep-back.bundle %{_prefix}/System/Library/Bundles/libgnustep-back.bundle/Resources %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back.bundle/%{gscpu} %attr(755,root,root) %{_prefix}/System/Tools/%{gscpu}/%{gsos}/%{libcombo}/* %files art %defattr(644,root,root,755) %dir %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle/Resources %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-art.bundle/%{gscpu} %files xdps %defattr(644,root,root,755) %dir %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle/Resources %attr(755,root,root) %{_prefix}/System/Library/Bundles/libgnustep-back-xdps.bundle/%{gscpu} %files devel %defattr(644,root,root,755) %{_prefix}/System/Library/Headers/%{libcombo}/gnustep/gsc %{_prefix}/System/Library/Headers/%{libcombo}/gnustep/x11 %{_prefix}/System/Library/Headers/%{libcombo}/gnustep/xlib %{_prefix}/System/Library/Headers/%{libcombo}/gnustep/art %{_prefix}/System/Library/Headers/%{libcombo}/gnustep/xdps