# # spec file for package beryl-core (Version 060918) # # Copyright (c) 2006 CyberOrg # # Please submit bugfixes or comments via http://www.compiz.net/ # %if %_repository = SL10.1xorg7 #!BuildIgnore: xorg-x11-compat70-devel %endif BuildRequires: freeglut-devel gcc-c++ gconf2-devel gtk2-devel intltool libdrm-devel libsvg-cairo-devel libwnck-devel pango-devel update-desktop-files xorg-x11-devel xorg-x11-sdk dbus-1-glib dbus-1-devel librsvg-devel startup-notification-devel xorg-x11-compat70-devel Name: beryl-core Url: http://www.beryl-project.org/ License: GPL Packager: cyberorg - Group: System/GUI/Other PreReq: %fillup_prereq Requires: libpng gtk2 librsvg libwnck Version: 060928 Release: 1 Summary: Core packge for Alternate OpenGL window and compositing manager- Beryl. BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64 Source: beryl-core1.tar.bz2 Source1: compositeproto.tar.bz2 Source2: libxcomposite.tar.bz2 Patch: Mesa-6.4.1-x86_64-fixes-1.patch Patch1: mesadec.patch Patch2: Mesa-configsfactory.diff Patch3: Mesa-configs.diff %description Beryl Project compositing window manager, decorator and theme support The Beryl Project brings 3D desktop visual effects that improve usability of the X Window System and provide increased productivity though plugins and themes contributed by the community giving a rich desktop experience. This package contains the compositing window manager using OpenGL for rendering. A "window manager" allows the manipulation of the multiple applications and dialog windows the are presented on the screen. The composite manager allows windows and other graphics to be combined together to create composite images. This creates the unique effects using these functions. This package is without mesa libGL static linking, uses system libGL. NVIDIA users using new beta driver can use this package with xorg 7.x. Authors: -------- The community at www.compiz.net %package devel Summary: Development packages for Beryl. Install beryl-core-devel if you want to develop plugins for the compiz windows and compositing manager. Group: Development/Libraries Requires: beryl-core = %{version} Requires: freeglut-devel gcc-c++ gtk2-devel intltool libdrm-devel libwnck-devel pango-devel update-desktop-files xorg-x11-devel xorg-x11-sdk dbus-1-glib dbus-1-devel xorg-x11-compat70-devel librsvg-devel %description devel The beryl-core-devel package includes the header files, and developer docs for the beryl-core package. Install beryl-core-devel if you want to develop plugins for the compiz windows and compositing manager. %prep ### /bin/ls *.tar.bz2 *.tar.gz 2>/dev/null | perl -ne 'if ($n eq "") { /^(.*)\.tar\.[bg]z2?\s*$/; print "\%setup -q -n . -D -T -b 0"; } else { print " -b $n"; } $n++' %setup -q -n . -D -T -b 0 -b 1 -b 2 patch -d beryl-core/mesa -p0 < %{_sourcedir}/Mesa-6.4.1-x86_64-fixes-1.patch #patch -d beryl-core -p0 < %{_sourcedir}/mesadec.patch %if "%(xft-config --prefix)" == "/usr" %define _xorgprefix %{_prefix} patch -d beryl-core/mesa -p0 < %{_sourcedir}/Mesa-configsfactory.diff %else %define _xorgprefix %{_prefix}/X11R6 patch -d beryl-core/mesa -p0 < %{_sourcedir}/Mesa-configs.diff %endif %build %if %suse_version == 1010 %define _xglprefix %{buildroot}/%{_xorgprefix}/lib/xgl %__install -d -m 755 %{_xglprefix} %__install -d -m 755 %{buildroot}/%{_xorgprefix}/ PKG_CONFIG_ORIG=$PKG_CONFIG_PATH # Build inside own development system export PKG_CONFIG_PATH=%{_xglprefix}/%_lib/pkgconfig:$PKG_CONFIG_PATH for pkg in compositeproto libXcomposite do pushd $pkg* CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" \ ./autogen.sh --prefix=%{_xglprefix} --libdir=%{_xglprefix}/%_lib %__make %{?jobs:-j%jobs} %makeinstall popd done %endif # #### beryl-core # pushd beryl-core/mesa/include %__ln_s %{_xorgprefix}/include/X11 pushd GL %__ln_s %{_xorgprefix}/include/GL/glxproto.h popd popd pushd beryl-core CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" \ ./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --enable-librsvg --disable-libsvg-cairo %__make %{?jobs:-j%jobs} %makeinstall popd %install %__install -d -m 755 %{buildroot}/var/adm/fillup-templates rm -rf $PREFIX rm -rf %{buildroot}/%{_xorgprefix}/lib/xgl find %{buildroot} -type f -name "*.a" -o -name "*.la" | xargs rm -f %clean %__rm -rf %{buildroot} %files %defattr(-, root, root) %{_bindir}/* %{_datadir}/beryl/* %{_mandir}/* %files devel %defattr(-, root, root) %{_libdir}/pkgconfig/* %{_includedir}/* %changelog -n beryl-core * Thu Sep 28 2006 - cyberorg - Initial spec