18861N/A#
18861N/A# spec file for package SUNWcompiz
18861N/A#
18861N/A%define owner erwannc
18861N/A
18861N/A# NOTE: You must set up the OpenGL symlinks before building SUNWcompiz:
18861N/A# # /lib/svc/method/ogl-select start
18861N/A
18861N/A%define OSR 8297:1.6.2
18861N/A
18861N/A%include Solaris.inc
18861N/A%include l10n.inc
18861N/AName: SUNWcompiz
18861N/AIPS_package_name: desktop/compiz
18861N/AMeta(info.classification): %{classification_prefix}:Desktop (GNOME)/Window Managers
18861N/ALicense: GPL v2
20777N/ASummary: OpenGL compositing window manager
18861N/AVersion: 0.8.4
18861N/ASource: http://releases.compiz.org/%{version}/compiz-%{version}.tar.gz
18861N/ASource1: http://dlc.sun.com/osol/jds/downloads/extras/compiz/compiz-desktop-integration-7.1.tar.bz2
18861N/ASource2: l10n-configure.sh
18861N/ASource3: compiz-stub-4-sparc
18861N/ASource5: compiz-desktop-integration-po-sun-%{po_sun_version}.tar.bz2
18861N/APatch1: compiz-01-solaris-port.diff
18861N/APatch2: compiz-02-sun-branding.diff
18861N/APatch3: compiz-03-indiana-branding.diff
18861N/APatch4: compiz-04-compvector.diff
18861N/APatch5: compiz-05-corexml.diff
18861N/APatch6: compiz-06-gconf-cflags.diff
18861N/APatch7: compiz-07-pthread.diff
18861N/APatch8: compiz-08-a11y-winmgr.diff
20026N/A#owner:migi date:2011-02-14 type:bug doo:9891
20026N/APatch9: compiz-09-xvnc-check.diff
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
20857N/A%include desktop-incorporation.inc
18861N/A
18861N/A%ifarch sparc
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/ARequires: SUNWgnome-wm
20857N/ABuildRequires: consolidation/desktop/gnome-incorporation
20857N/A
18861N/A%prep
18861N/A%setup -q -c -n %{name}
18861N/Agtar fxvj %{SOURCE1}
18861N/A%build
18861N/A%install
18861N/Amkdir -p $RPM_BUILD_ROOT%{_bindir}
18861N/Acp %SOURCE3 $RPM_BUILD_ROOT%{_bindir}/compiz
18861N/Achmod 755 $RPM_BUILD_ROOT%{_bindir}/compiz
18861N/Amkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
18861N/Acp compiz.desktop $RPM_BUILD_ROOT%{_datadir}/applications
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A%files
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_bindir}
18861N/A%{_bindir}/*
18861N/A%dir %attr(0755, root, sys) %{_datadir}
18861N/A%dir %attr (0755, root, other) %{_datadir}/applications
18861N/A%{_datadir}/applications/*
18861N/A%endif
18861N/A
18861N/A%ifnarch sparc
18861N/A# these packages are only available on x86
18861N/A# =========================================
18861N/A
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A%include default-depend.inc
18861N/ARequires: SUNWgtk2
18861N/ARequires: %name-root
18861N/ARequires: SUNWdesktop-cache
18861N/ARequires: SUNWpng
18861N/ARequires: SUNWdbus
18861N/ARequires: SUNWgnome-desktop-prefs
18861N/ARequires: SUNWgnome-panel
18861N/ARequires: SUNWgnome-wm
20857N/ABuildRequires: runtime/perl-512
19997N/ARequires: SUNWpygtk2-26
18861N/ARequires: SUNWxorg-mesa
18993N/ARequires: SUNWPython26
18861N/ABuildRequires: SUNWgtk2-devel
18861N/ABuildRequires: SUNWpng-devel
18861N/ABuildRequires: SUNWdbus-devel
18861N/ABuildRequires: SUNWgnome-desktop-prefs-devel
18861N/ABuildRequires: SUNWgnome-panel-devel
18861N/ABuildRequires: SUNWgnome-wm-devel
18861N/ABuildRequires: SUNWxwinc
18861N/ABuildRequires: SUNWxorg-mesa
18861N/ABuildRequires: SUNWxwplr
18861N/A
18861N/A%package root
18861N/ASummary: %summary - platform dependent files, / filesystem
18861N/ASUNW_BaseDir: /
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
18861N/A
18861N/A%package devel
18861N/ASummary: %summary - developer files
18861N/AsUNW_BaseDir: %{_basedir}
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
18861N/ARequires: %name
18861N/A
18861N/A%package l10n
18861N/ASummary: %{summary} - l10n files
18861N/ARequires: %{name}
18861N/A
18861N/A%prep
18861N/A%setup -q -c -n %{name}
18861N/Agtar fxvj %{SOURCE1}
18861N/Abzcat %SOURCE5 | tar xf -
18861N/Acd po-sun; make; cd ..
18861N/Acd compiz-%{version}
18861N/A%patch1 -p1
18861N/A# mandatorily apply indiana patch for both Nv & OS in
18861N/A# order to lessen the difference between Nv & OS
18861N/A#%if %option_with_sun_branding
18861N/A#%patch2 -p1
18861N/A#%endif
18861N/A#%if %option_with_indiana_branding
18861N/A%patch3 -p1
18861N/A#%endif
18861N/A%patch4 -p1
18861N/A%patch5 -p1
18861N/A%patch6 -p1
18861N/A%patch7 -p1
18861N/A%patch8 -p1
18861N/Acd ..
20026N/A%patch9 -p1
18861N/A
18861N/A%build
18861N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/APROTO_LIB=$RPM_BUILD_DIR/%{name}/usr/X11/lib
18861N/APROTO_INC=$RPM_BUILD_DIR/%{name}/usr/X11/include
18861N/APROTO_PKG=$RPM_BUILD_DIR/%{name}/usr/X11/lib/pkgconfig
18861N/A
18861N/Aexport PKG_CONFIG_PATH="$PROTO_PKG"
18861N/A
18861N/Aexport CFLAGS="%optflags -I$PROTO_INC -I/usr/include/startup-notification-1.0 -I/usr/X11/include"
18861N/Aexport LDFLAGS="-L$PROTO_LIB -L/usr/X11/lib -R/usr/X11/lib"
18861N/A
18861N/Acd compiz-%{version}
18861N/A
18861N/Aintltoolize --copy --force --automake
18861N/A
18861N/Abash -x %SOURCE2 --enable-copyright
18861N/A
18861N/Aaclocal
18861N/Aautoheader
18861N/Aautomake -a -c -f
18861N/Aautoconf
18861N/Alibtoolize --force
18861N/A
18861N/Aexport CFLAGS="%optflags -I$PROTO_INC -I/usr/include/startup-notification-1.0 -I/usr/X11/include"
18861N/Aexport LDFLAGS="-L$PROTO_LIB -L/usr/X11/lib -L/usr/openwin/lib -R/usr/X11/lib -R/usr/openwin/lib -lX11 -lXext"
18861N/A
18861N/A./configure --prefix=%{_prefix} \
18861N/A --bindir=%{_bindir} \
18861N/A --sysconfdir=%{_sysconfdir} \
18861N/A --libdir=%{_libdir} \
18861N/A --includedir=%{_includedir} \
18861N/A --datadir=%{_datadir} \
18861N/A --enable-gnome \
18861N/A --without-xcb \
18861N/A --with-default-plugins=core,dbus,move,place,png,regex,resize,svg,switcher,imgjpeg,resizeinfo,session,text,workarounds,decoration,animation,wall,fade,gnomecompat
18861N/A
18861N/Amake -j$CPUS
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/Acd compiz-%{version}
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
18861N/Acd ..
18861N/A
18861N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
18861N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
18861N/Arm -f $RPM_BUILD_ROOT/usr/X11/lib/*.la
18861N/Arm -rf $RPM_BUILD_ROOT%{_basedir}/etc
18861N/A
18861N/Amkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
18861N/Acp compiz.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
18861N/Amkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
18861N/Acp compiz.desktop $RPM_BUILD_ROOT%{_datadir}/applications
18861N/A
18861N/Acp compiz-configure.in compiz-configure
18861N/Acat compiz-configure.in | sed "s:@prefix_lib@:%{_libdir}:" | sed "s:@prefix_data@:%{_datadir}:" > compiz-configure
18861N/A
18861N/Acp compiz-configure modify-xorg-conf xglxtest $RPM_BUILD_ROOT%{_libdir}/compiz
18861N/Acp compiz-config.glade $RPM_BUILD_ROOT%{_datadir}/compiz
18861N/A
18861N/Amv $RPM_BUILD_ROOT%{_bindir}/compiz $RPM_BUILD_ROOT%{_bindir}/compiz-bin
18861N/Acp compiz $RPM_BUILD_ROOT%{_bindir}
18861N/A
18861N/Acd po-sun;cp Makefile.in Makefile;make install DESTDIR=$RPM_BUILD_ROOT
18861N/Acd ..
20829N/A
18861N/A
18861N/A%post
18861N/A%restart_fmri gconf-cache
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_bindir}
18861N/A%{_bindir}/*
18861N/A%dir %attr (0755, root, bin) %{_libdir}
18861N/A%dir %attr (0755, root, bin) %{_libdir}/compiz
18861N/A%dir %attr (0755, root, bin) %{_libdir}/window-manager-settings
18861N/A%{_libdir}/lib*so*
18861N/A%{_libdir}/compiz/*
18861N/A%{_libdir}/window-manager-settings/*
18861N/A%dir %attr(0755, root, sys) %{_datadir}
18861N/A%dir %attr(0755, root, other) %{_datadir}/compiz
18861N/A%dir %attr(0755, root, other) %{_datadir}/gnome
18861N/A%dir %attr(0755, root, bin) %{_datadir}/gnome/wm-properties
18861N/A%dir %attr(0755, root, bin) %{_datadir}/gnome-control-center
18861N/A%dir %attr(0755, root, bin) %{_datadir}/gnome-control-center/keybindings
18861N/A%dir %attr (0755, root, other) %{_datadir}/pixmaps
18861N/A%dir %attr (0755, root, other) %{_datadir}/applications
18861N/A%{_datadir}/compiz/*
18861N/A%{_datadir}/gnome/wm-properties/*
18861N/A%{_datadir}/gnome-control-center/keybindings/*
18861N/A%{_datadir}/pixmaps/*
18861N/A%{_datadir}/applications/*
18861N/A%doc -d compiz-%{version} AUTHORS COPYING README
18861N/A%doc(bzip2) -d compiz-%{version} COPYING.GPL COPYING.LGPL COPYING.MIT NEWS
18861N/A%doc(bzip2) -d compiz-%{version} ChangeLog po/ChangeLog
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A
18861N/A%files root
18861N/A%defattr (0755, root, sys)
18861N/A%attr (0755, root, sys) %dir %{_sysconfdir}
18861N/A%{_sysconfdir}/gconf/schemas/*
18861N/A
18861N/A%files devel
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_includedir}
18861N/A%{_includedir}/*
18861N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
18861N/A%{_libdir}/pkgconfig/*
18861N/A
18861N/A%files l10n
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%attr (-, root, other) %{_datadir}/locale
18861N/A
18861N/A# endif for "ifnarch sparc"
18861N/A%endif
18861N/A
18861N/A%changelog
20026N/A* Fri Feb 14 2011 - Michal.Pryc@Oracle.Com
20026N/A- Added compiz-09-xvnc-check.diff: fixes doo: 9891
18861N/A* Tue Feb 02 2010 - harry.fu@sun.com
18861N/A- Add localization for compiz-desktop-integration.
18861N/A* Tue Jan 12 2010 - dave.lin@sun.com
18861N/A- Remove OpenGL check, use 'BuildRequires: SUNWxorg-mesa' instread.
18861N/A* Fri Sep 07 2009 - dave.lin@sun.com
18861N/A- Add patch 06-gconf-cflags.diff to fix path issue.
18861N/A* Thu Aug 13 2009 - christian.kelly@sun.com
18861N/A- Bump to 0.8.2.
18861N/A* Fri Jul 17 2009 - matt.keenan@sun.com
18861N/A- Bump compiz-desktop-integration tarball to 6.6 fix #10108
18861N/A* Fri Apr 3 2009 - laca@sun.com
18861N/A- use desktop-cache instead of postrun
18861N/A* Wed Apr 01 2009 - dave.lin@sun.com
18861N/A- mandatorily apply patch 03-indiana-branding.diff for both Nv & OS
18861N/A in order to lessen the difference between Nv & OS(doo4284).
18861N/A* Mon Mar 23 2009 - jeff.cai@sun.com
18861N/A- Because /usr/lib/compiz/compiz-configure (SUNWcompiz) requires
18861N/A /usr/bin/i86/isapython2.4 which is found in SUNWPython, add the
18861N/A dependency on SUNWPython
18861N/A* Wed Mar 11 2009 - matt.keenan@sun.com
18861N/A- Bump compiz-desktop-integration tarball to 6.3 fix #7287
18861N/A* Fri Feb 27 2009 - matt.keenan@sun.com
18861N/A- Bump integration tarball to 6.2 fix #6967
18861N/A* Wed Feb 11 2009 - matt.keenan@sun.com
18861N/A- Remove compiz-by-default and compiz-by-default.desktop references, now
18861N/A delivered by gnome-session as they need to be compiz package independent
18861N/A* Fri Feb 06 2009 - matt.keenan@sun.com
18861N/A- Bump integration tarball to 6, for compiz-by-default bugs
18861N/A* Tue Feb 03 2009 - matt.keenan@sun.com
18861N/A- Bump integration tarball to 4, for compiz-by-default
18861N/A- Add compiz-by-default to %files
18861N/A* Mon Sep 22 2008 - erwann@sun.com
18861N/A- Bumped integration tarball to add desktop file
18861N/A* Wed Sep 16 2008 - matt.keenn@sun.com
18861N/A- Update copyright
18861N/A* Wed May 21 2008 - damien.carbery@sun.com
18861N/A- Add 'Requires: SUNWxorg-mesa' after check-deps.pl run.
18861N/A* Mon Apr 07 2008 - damien.carbery@sun.com
18861N/A- Break the build if the openGL headers and libraries are not present on the
18861N/A machine.
18861N/A* Thu Mar 27 2008 - damien.carbery@sun.com
18861N/A- Add Build/Requires SUNWgnome-desktop-prefs/-devel and SUNWgnome-panel/-devel
18861N/A to ensure GNOME support built. Add --enable-gnome to configure to be doubly
18861N/A sure.
18861N/A* Wed Mar 26 2008 - dave.lin@sun.com
18861N/A- change to not build this component on SPARC
18861N/A* Tue Mar 11 2008 - erwann@sun.com
18861N/A- removed missing X server pc and header file as they are available in
18861N/A nevada build 85
18861N/A* Sun Mar 09 2008 - erwann@sun.com
18861N/A- add standard gconf script and Perl and Pyhton deps for the config scripts
18861N/A* Thu Feb 21 2008 - laca@sun.com
18861N/A- do not install Xregion.h if it already exists (on Indiana)
18861N/A* Wed Feb 20 2008 - damien.carbery@sun.com
18861N/A- Remove NVDAgraphics dependency as it is not needed - ogl-select service sets
18861N/A up the required links. Add SUNWwxplr as it delivers ogl-select.
18861N/A* Wed Feb 13 2008 - erwann@sun.com
18861N/A- cleanup for spec-file-other integration
18861N/A* Sun Nov 04 2007 - erwann@sun.com
18861N/A- remove unneeded X bits
18861N/A- lighter version of missing-stuff
18861N/A- ship missing X header
18861N/A* Mon Oct 29 2007 - trisk@acm.jhu.edu
18861N/A- Bump to 0.6.2
18861N/A- Don't create icons in gnome-integration (use fusion-icon)
18861N/A* Tue Oct 16 2007 - laca@sun.com
18861N/A- add FOX build support
18861N/A* Fri Sep 21 2007 - Albert Lee <trisk@acm.jhu.edu>
18861N/A- Add optional patch for "black windows" workaround
18861N/A- Fix install in GNOME 2.19/2.20
18861N/A* Thu Sep 06 2007 - Albert Lee <trisk@acm.jhu.edu>
18861N/A- Updated to coexist with newer X consolidation packages
18861N/A* Wed Mar 08 2007 - Doug Scott <dougs at truemail.co.th>
18861N/A- Changed to build on un-modified system
18861N/A* Tue Mar 06 2007 - mike kiedrowski (lakeside-AT-cybrzn-DOT-com)
18861N/A- Initial spec
18861N/A
19167N/A
19484N/A