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