remove unused examples
authorNorm Jacobs <Norm.Jacobs@Sun.COM>
Fri, 11 Jun 2010 12:40:00 -0500
changeset 24 b2de6c41fe86
parent 23 e7ed56b7c498
child 25 48e1871bcdcd
remove unused examples
components/Makefile.component
components/gnu-file/Makefile
components/gnu-file/file.cleanup
components/gnu-file/file.mf
components/gnu-file/file.raw.drops
spec-files/.pkgtoolrc
spec-files/copyright/less.copyright
spec-files/include/Solaris.inc
spec-files/include/arch64.inc
spec-files/include/base.inc
spec-files/include/default-depend.inc
spec-files/include/options.inc
spec-files/include/prod.inc
spec-files/lcms.spec
spec-files/less.spec
spec-files/validation/validation.pl
--- a/components/Makefile.component	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,80 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-
-# generic component build support... included
-# from individual component Makefiles.
-
-ARCH:sh = uname -p
-POUND_SIGN:sh = echo \\043
-
-RELEASE=5.11
-PKGVERS_COMPONENT= $(VERSION)
-PKGVERS_BUILTON= $(RELEASE)
-PKGVERS_BRANCH= 0.1
-PKGVERS= $(PKGVERS_COMPONENT),$(PKGVERS_BUILTON)-$(PKGVERS_BRANCH)
-
-C_COMPILER=developer/sunstudio12u1
-
-REPO:sh = echo $REPO
-
-i386_DEFINES=           \
-        ARCH=i386       \
-        ARCH32=i86      \
-        ARCH64=amd64    \
-        i386_ONLY=''    \
-        sparc_ONLY=$(POUND_SIGN)
-
-sparc_DEFINES=          \
-        ARCH=sparc      \
-        ARCH32=sparcv7  \
-        ARCH64=sparcv9  \
-        i386_ONLY=$(POUND_SIGN) \
-        sparc_ONLY=''
-
-ARCH_DEFINES=$($(ARCH)_DEFINES)
-
-PKGMOGRIFY_MACROS=\
-	$(ARCH_DEFINES) \
-	PKGVERS=$(PKGVERS)
-
-
-BUILD_FILE_DEPENDENCIES= 
-BUILD_PKG_DEPENDENCIES= 
-
-default: package
-
-proto:
-	mkdir -p proto
-
-echo_dependencies:
-	print "BUILD_FILE_DEPENDENCIES = [$(BUILD_FILE_DEPENDENCIES:%=\"%\",)]"
-	print "BUILD_PKG_DEPENDENCIES = [$(BUILD_PKG_DEPENDENCIES:%=\"%\",)]"
-
-check_dependencies:
-	ls $(BUILD_FILE_DEPENDENCIES) > /dev/null
-	pkg list $(BUILD_PKG_DEPENDENCIES) > /dev/null
-
-provision:
-	pfexec pkg install $(BUILD_PKG_DEPENDENCIES)
--- a/components/gnu-file/Makefile	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,88 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
-#
-# include global definitions
-include ../Makefile.component
-
-PACKAGES=file
-SRC=file-5.04
-VERSION=5.0.4
-SRC_LOC=ftp://ftp.fu-berlin.de/unix/tools/file
-TARBALL=$(SRC).tar.gz
-TARBALL_CHECKSUM=56ddf7135471aa656334ed8fefe1112bcccc2cc3
-PATH=/usr/bin:/usr/gnu/bin
-BUILD_PKG_DEPENDENCIES= make \
-	                wget \
-			gnu-coreutils \
-			$(C_COMPILER) \
-			gnu-grep \
-			developer/object-file
-
-build:  unpack
-	$(MAKE) check_dependencies
-	export DESTDIR=`pwd`/proto; cd $(SRC); \
-	    export PATH=$(PATH); \
-	    ./configure --prefix=/usr --exec-prefix=/usr; \
-            make; make check; make install
-	touch build
-
-package: build
-	# generate a manifest of what is in the proto area
-	pkgsend generate proto > tmp.1
-	# drop those things we're not going to ship
-	pkgmogrify tmp.1 file.raw.drops > tmp.2
-	# generate and resolve dependencies
-	pkgdepend generate -m tmp.2 proto > tmp.3
-	pkgdepend resolve -m tmp.3
-	# cleanup dependencies, add headers, expand macros
-	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) \
-            ../../transforms/remove_dependency_versions \
-            ../../transforms/actuators tmp.3.res file.cleanup  > tmp.4
-	# prepare comparison manifest
-	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) \
-            ../../transforms/remove_dependency_versions \
-            ../../transforms/actuators file.mf > file.cmp
-	# prepare publication manifest
-	pkgmogrify $(PKGMOGRIFY_MACROS:%=-D %) \
-            ../../transforms/remove_dependency_versions \
-            ../../transforms/actuators file.mf > file.publish
-	# check for differences
-	pkgdiff file.cmp tmp.4	
-	# publish
-	pkgsend -s $(REPO) publish --fmri-in-manifest -d proto file.publish
-
-$(TARBALL):
-	wget $(SRC_LOC)/$(SRC).tar.gz
-	printf "%s  %s\n" $(TARBALL_CHECKSUM) $(TARBALL) | sha1sum -c 
-
-unpack: $(TARBALL)
-	gunzip < $(SRC).tar.gz | tar xf -
-	touch unpack
-
-clean:	
-	rm -fr $(SRC) build file.new tmp.* file.publish file.cmp proto unpack
-
-clobber: clean
-	rm $(TARBALL)
-
--- a/components/gnu-file/file.cleanup	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-# remove timestamps on dependencies (bug in pkgdepend)
-<transform depend -> edit fmri :2[0-9]{7}T[0-9]{6}Z "">
-# remove debugging info
-<transform depend -> delete pkg.debug.depend.reason .*>
-<transform depend -> delete pkg.debug.depend.type .*>
-<transform depend -> delete pkg.debug.depend.file .*>
-# remove timestamps on dirs (bug in pkgsend generate)
-<transform dir file link -> delete timestamp .*>
-# don't want size variations confusing pkgdiff
-<transform file -> delete pkg.size .*>
-# Add package header information
-set name=pkg.fmri value=pkg:/file/file@$(PKGVERS)
-set name=pkg.description \
-    value="contains unix file command"
-set name=variant.arch value=$(ARCH)
-set name=variant.opensolaris.zone value=global value=nonglobal
-
--- a/components/gnu-file/file.mf	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-set name=pkg.fmri value=pkg:/file/file@$(PKGVERS)
-set name=pkg.description \
-    value="contains unix file command"
-set name=variant.arch value=$(ARCH)
-set name=variant.opensolaris.zone value=global value=nonglobal
-dir path=usr group=bin mode=0755 owner=root
-dir path=usr/bin group=bin mode=0755 owner=root
-dir path=usr/include group=bin mode=0755 owner=root
-dir path=usr/lib group=bin mode=0755 owner=root
-dir path=usr/share group=bin mode=0755 owner=root
-dir path=usr/share/man group=bin mode=0755 owner=root
-dir path=usr/share/man/man1 group=bin mode=0755 owner=root
-dir path=usr/share/man/man3 group=bin mode=0755 owner=root
-dir path=usr/share/man/man4 group=bin mode=0755 owner=root
-dir path=usr/share/misc group=bin mode=0755 owner=root
-file usr/bin/file path=usr/bin/file group=bin mode=0755 owner=root
-file usr/include/magic.h path=usr/include/magic.h group=bin mode=0644 owner=root
-file usr/lib/libmagic.so.1.0.0 path=usr/lib/libmagic.so.1.0.0 group=bin \
-    mode=0755 owner=root
-file usr/share/man/man1/file.1 path=usr/share/man/man1/file.1 group=bin \
-    mode=0644 owner=root
-file usr/share/man/man3/libmagic.3 path=usr/share/man/man3/libmagic.3 group=bin \
-    mode=0644 owner=root
-file usr/share/man/man4/magic.4 path=usr/share/man/man4/magic.4 group=bin \
-    mode=0644 owner=root
-file usr/share/misc/magic.mgc path=usr/share/misc/magic.mgc group=bin mode=0644 \
-    owner=root
-link path=usr/lib/libmagic.so target=libmagic.so.1.0.0
-link path=usr/lib/libmagic.so.1 target=libmagic.so.1.0.0
-depend fmri=pkg:/library/[email protected],5.11-0.135 type=require
-depend fmri=pkg:/system/[email protected],5.11-0.136 type=require
--- a/components/gnu-file/file.raw.drops	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# stuff we drop from the proto area - not shipped
-<transform file path=usr/lib/libmagic.a -> drop>
-<transform file path=usr/lib/libmagic.la -> drop>
-<transform dir path=usr/share/man/man5 -> drop>
--- a/spec-files/.pkgtoolrc	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-# tarballdirs [string]: colon (:) separated list of directories where source tarballs are searched for
-tarballdirs:   /sgnome/tarballs/gnome2.30:/sgnome/tarballs/gnome2.28:/sgnome/tarballs/gnome2.26:/sgnome/tarballs/gnome2.24:/sgnome/tarballs/gnome2.22:/sgnome/tarballs/gnome2.20:/sgnome/tarballs/gnome2.18:/sgnome/tarballs/gnome2.15:/sgnome/tarballs/gnome2.14:/sgnome/tarballs/moz-evo:${MYDIR}/manpages/sun-manpage-tarballs:${MYDIR}/manpages-roff/sun-manpage-tarballs:${MYDIR}/po-sun/po-sun-tarballs:${tarballdirs}:/jds/packages/SOURCES
-
-# logdir [string]: the directory for saving log files
-# logdir:	/tmp
-
-# patchdirs [string]: colon (:) separated list of directories where source patches are searched for
-patchdirs:	${MYDIR}/patches
-
-# specdirs [string]: colon (:) separated list of directories where spec files are searched for
-specdirs:	${MYDIR}:${MYDIR}/include:${MYDIR}/base-specs:${MYDIR}/indiana
-
-# sourcedirs [string]: colon (:) separated list of directories where extra sources (not tarballs) are searched for
-sourcedirs:	${MYDIR}/ext-sources:${MYDIR}/copyright
--- a/spec-files/copyright/less.copyright	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-Less copyright file...
--- a/spec-files/include/Solaris.inc	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,174 +0,0 @@
-#
-# Macro definitions for Solaris packages
-#
-# Copyright 2008 Sun Microsystems, Inc.
-#
-
-%include prod.inc
-%include options.inc
-
-SUNW_Pkg_AllZones:         false
-SUNW_Pkg_Hollow:           false
-SUNW_Pkg_ThisZone:         false
-
-%define cc_is_gcc %(test "x`basename $CC`" = xgcc && echo 1 || echo 0)
-
-%define is_nevada %(test `uname -r` = 5.11 && echo 1 || echo 0)
-%define is_s10    %(test `uname -r` = 5.10 && echo 1 || echo 0)
-%define _patch_options --fuzz=0 --unified
-
-SUNW_Category:             %{default_category}
-SUNW_HotLine:              Please contact your local service provider
-SUNW_MaxInst:              1000
-SUNW_Rev:		   110.0.4.%(date +%Y.%m.%d.%H.%M)
-# no such file so this will break the build if the package
-# does not specify a copyright file:
-SUNW_Copyright:            error-no-copyright
-
-%define _libexecdir        %{_prefix}/lib
-%define _mandir		   %{_datadir}/man
-
-# by default we don't build optimised versions
-%define opt_sparcv9 0
-%define opt_amd64   0
-%define opt_sse2    0
-# opt_arch64 means opt_sparcv9 or opt_amd64
-%define opt_arch64  0
-# can_isaexec gets redefined to 1 if multiple isas are built
-%define can_isaexec 0
-%ifarch sparc
-%define base_isa sparcv7
-%define base_arch sparc
-%else
-%define base_isa i86
-%define base_arch i386
-%endif
-
-%if %option_with_gnu_iconv
-%define arch_ldadd -Wl,-zignore -R/usr/gnu/lib -lgnuintl -lgnuiconv
-%else
-%define arch_ldadd
-%endif
-%define ldadd
-
-%if %debug_build
-%define _ldflags           %arch_ldadd %ldadd ${EXTRA_LDFLAGS}
-%else
-%define _ldflags           %arch_ldadd %ldadd -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect ${EXTRA_LDFLAGS}
-%endif
-
-%define gcc_picflags -fPIC -DPIC
-%define suncc_picflags -KPIC
-
-# ifarch doesn't support checking for sse2
-# this macros allows you to use %if %arch_sse2 instead
-%define arch_sse2 %(isainfo -x | grep sse2 > /dev/null && echo 1 || echo 0)
-
-# temporary, until all spec files are converted to the new multi-isa build
-# technique
-%ifarch amd64 sparcv9
-%include arch64.inc
-%endif
-
-%include base.inc
-
-%define _basedir           /usr
-%define _subdir            
-%define _prefix		   %{_basedir}
-%define _sysconfdir	   /etc
-%define _localstatedir	   /var
-%define _localedir	   %{_datadir}/locale
-%define _pkg_config_path   %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
-
-# ChangeLog:
-# 2009-12-30  Halton Huo <[email protected]>
-# - Remove cc_is_ssxx macros since we use ss12 always
-# 2008-10-29  Laszlo (Laca) Peter  <[email protected]>
-# - respect $CC when checking compiler version
-# 2008-04-18  Laszlo (Laca) Peter  <[email protected]>
-# - set default copyright to "error-no-copyright" which is not the name
-#   of a file, so it will break the build if a package has no copyright file
-# 2008-03-30  Laszlo (Laca) Peter  <[email protected]>
-# - define cc_is_ss11 and cc_is_ss12
-# 2007-09-28  Laszlo (Laca) Peter  <[email protected]>
-# - copy arch_ldadd definition from base.inc
-# 2007-09-27  Laszlo (Laca) Peter  <[email protected]>
-# - move configurable build options to options.inc and include
-#   options.inc
-# 2007-04-05  Laszlo (Laca) Peter  <[email protected]>
-# - fix _ldflags so that it includes the architecture specific flags
-# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
-# - move product specific tags and macros to prod.inc
-# - define can_isaexec, base_isa, base_arch
-# - define arch_sse2
-# - move 32-bit compiler flags to base.inc and include base.inc
-# - move 64-bit compiler flags to arch64.inc and include it temporarily,
-#   but it will not be needed once all spec files that build 64-bit are
-#   rewritten to the new style
-# 2007-01-28  Laszlo Peter  <[email protected]>
-# - define %is_s10
-# 2006-12-06  Damien Carbery  <[email protected]>
-# - Bump SUNW_ProdVers and default_pkg_version to 2.17.3.
-# 2006-11-23  Damien Carbery  <[email protected]>
-# - Bump SUNW_ProdVers and default_pkg_version to 2.17.1.
-# 2006-11-03  Laszlo Peter  <[email protected]>
-# - define %gtk_doc_option, lets the user disable building gtk-docs
-#   using --without-gtk-doc; also added comments about usage
-# 2006-10-03  Laszlo Peter  <[email protected]>
-# - define %_patch_options, this specifies extra options for gpatch when
-#   using pkgbuild 1.1.1 or later
-# 2006-10-03  Damien Carbery <[email protected]>
-# - Bump SUNW_ProdVers and default_pkg_version to 2.16.1.
-# 2006-09-18  Laszlo Peter  <[email protected]>
-# - define cxx_optflags64
-# 2006-08-23  Laszlo Peter  <[email protected]>
-# - define _localstatedir
-# 2006-06-02  Laszlo Peter  <[email protected]>
-# - add the date string back into REV
-# 2005-11-28  Laszlo Peter  <[email protected]>
-# - add -z combreloc and -Bdirect to the LDFLAGS
-# 2005-10-23  Laszlo Peter  <[email protected]>
-# - define debug_build (if --with-debug is used) and build_l10n
-#   (when --with-l10n is used)  build_l10n will disable building
-#   the l10n packages but needs changes in the spec files to work;
-#   debug_build is already functional: replaces the optimisation flags
-#   with -g and disables stripping the binaries. (Yay!)
-# 2005-10-14  Laszlo Peter  <[email protected]>
-# - define _ldflags
-# 2005-09-19  Laszlo Peter  <[email protected]>
-# - add -xregs=no%frameptr (Sun CC) or -fomit-frame-pointers (gcc)
-#   flags to enable dtrace get stack traces
-# 2005-09-17  Laszlo Peter  <[email protected]>
-# - define %picflags and add them to the gcc CFLAGS otherwise most things
-#   seem to break
-# 2005-09-16  Laszlo Peter  <[email protected]>
-# - define cc_is_gcc and define gcc specific compiler flags
-# 2005-09-15  Brian Cameron  <[email protected]>
-# - Backout debug lines I accidently committed to this file.
-# 2005-07-14  Laszlo Peter  <[email protected]>
-# - update product version to 2.10
-# 2004-11-01  Laszlo Peter  <[email protected]>
-# - temporarily removed -O for amd64 to stop gtk-demo crashing
-# 2004-10-13  Laszlo Peter  <[email protected]>
-# - defined _pkg_config_path64
-# 2004-10-02  Laszlo Peter  <[email protected]>
-# - defined jds_version
-# 2004-10-02  Joseph Townsend <[email protected]>
-# - Create 64bit libraries for Solaris
-# 2004-08-12  Shirley Woo  <[email protected]>
-# - Updated SUNW_Category for G2.6 packages to 2.6.0
-# 2004-07-23  Laszlo Peter  <[email protected]>
-# - Changed default copyright notice to default-copyright.txt
-# - Prefixed REV with 9.7.2
-# 2004-06-26  Shirley Woo  <[email protected]>
-# - Changed install location to /usr/...
-# 2004-06-21  Laszlo Peter  <[email protected]>
-# - descrease C++ optimisation level to xO3
-# - define _pkg_config_path
-# 2004-05-03  Laszlo Peter  <[email protected]>
-# - define _basedir
-# 2004-04-14  Laszlo Peter  <[email protected]>
-# - change CATEGORY to GNOME2,application,JDS3
-# 2004-02-28  Laszlo Peter  <[email protected]>
-# - add -mr and -xtrconst options, -xpentium on intel.
-# - define cxx_optflags for CC compilation
--- a/spec-files/include/arch64.inc	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,115 +0,0 @@
-#
-# 64-bit platform settings for Solaris packages
-#
-# Copyright 2007 Sun Microsystems, Inc.
-#
-# Solaris.inc must be included before this file
-
-%ifarch amd64 sparcv9
-
-%ifarch amd64
-%define _arch64 amd64
-%else
-%define _arch64 sparcv9
-%endif
-
-%define opt_sse2 0
-%define opt_arch64 1
-%define can_isaexec 1
-%define gtk_doc_option --disable-gtk-doc
-
-%if %option_with_gnu_iconv
-%define arch_ldadd -L%{_libdir} -R%{_libdir} -Wl,-zignore -R/usr/gnu/lib/%{_arch64} -lgnuintl -lgnuiconv
-%else
-%define arch_ldadd -L%{_libdir} -R%{_libdir}
-%endif
-
-%ifarch amd64
-%define opt_amd64 1
-%define bld_arch	"amd64"
-%else
-%define opt_sparcv9 1
-%define bld_arch	"sparcv9"
-%endif
-
-%if %debug_build
-%define pkgbuild_postprocess /bin/true
-%define _cc64_opt_level      -g
-%define _cxx64_opt_level     -g
-%define _gcc64_opt_level      -g
-%define _gxx64_opt_level     -g
-%else
-%define _gcc64_opt_level      -O3
-%define _gxx64_opt_level     -O3
-%define _cc64_opt_level      -xO4 -xspace
-%define _cxx64_opt_level     -xO3 -xspace
-%endif
-
-%ifarch sparc
-%define gcc_optflags64           %_gcc64_opt_level -mcpu=ultrasparc -m64 -Xlinker -i %gcc_picflags
-%define gcc_cxx_optflags64       %gcc_optflags64
-%endif
-
-%ifarch i386
-%define gcc_optflags64           %_gcc64_opt_level -march=opteron -m64 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
-%define gcc_cxx_optflags64       %gcc_optflags64
-%endif
-
-%ifarch sparc
-%define suncc_optflags64           -i %_cc64_opt_level -xstrconst -xarch=v9 -xcode=pic32 -mr
-%define suncc_cxx_optflags64       -i %_cxx64_opt_level -xarch=v9 -xcode=pic32 -mr -norunpath
-%endif
-
-%ifarch i386
-%define suncc_optflags64           -i %_cc64_opt_level -xstrconst -m64 -Kpic -xregs=no%%frameptr
-%define suncc_cxx_optflags64       -i %_cxx64_opt_level -xarch=generic64 -Kpic -pentium -mr -norunpath -xregs=no%%frameptr
-%endif
-
-%if %cc_is_gcc
-
-%define picflags %gcc_picflags
-%define optflags64 %gcc_optflags64
-%define cxx_optflags64 %gcc_cxx_optflags64
-
-%else
-# cc is not gcc
-
-%define picflags %suncc_picflags
-%define optflags64 %suncc_optflags64
-%define cxx_optflags64 %suncc_cxx_optflags64
-
-%endif
-
-%define optflags %optflags64 ${EXTRA_CFLAGS}
-%define gcc_optflags %gcc_optflags64 ${EXTRA_CFLAGS}
-%define cxx_optflags %cxx_optflags64 ${EXTRA_CXXFLAGS}
-%define gcc_cxx_optflags %gcc_cxx_optflags64 ${EXTRA_CXXFLAGS}
-
-%define _bindir		 %{_prefix}/bin/%{bld_arch}
-%define _libdir		 %{_prefix}/lib/%{bld_arch}
-%define _libexecdir	 %{_prefix}/lib/%{bld_arch}
-%define _pkg_config_path %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
-# obsolete, don't use:
-%define _pkg_config_path64 %{_prefix}/lib/%{_arch64}/pkgconfig:%{_datadir}/pkgconfig
-
-%endif
-
-# ChangeLog:
-# 2009-12-30  Halton Huo <[email protected]>
-# - Remove cc_is_ssxx macros since we use ss12 always
-# 2008-06-20  Laszlo (Laca) Peter  <[email protected]>
-# - always define gcc_* macros, not only when cc_is_gcc, useful in spec
-#   files that force using gcc
-# 2008-03-30  Laszlo (Laca) Peter  <[email protected]>
-# - use -m64 with ss12
-# 2007-09-28  Laszlo (Laca) Peter  <[email protected]>
-# - add /usr/gnu/lib/%{_arch64} to RPATH and link with GNU libintl and libiconv
-#   when building with the --with-gnu-iconv option
-# 2007-03-20  Doug Scott <[email protected]>
-# - Added %_cc64_opt_level to suncc_optflags64 for i386
-# 2007-03-19  Doug Scott <[email protected]>
-# - Fixed -fno-omit-frame-pointer flag
-# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
-# - renamed from amd64.inc
-# - updated to work for either amd64 or sparcv9
-# 2007-03-12  Doug Scott  <[email protected]>
--- a/spec-files/include/base.inc	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,105 +0,0 @@
-#
-# Base (32-bit) platform settings for Solaris packages
-#
-# Copyright 2007 Sun Microsystems, Inc.
-#
-# Solaris.inc must be included before this file
-
-%ifarch sparc
-%define bld_arch        "sparc"
-%else
-%define bld_arch	"i386"
-%endif
-
-%define opt_arch64 0
-%define opt_sparcv9 0
-%define opt_amd64 0
-%define opt_sse2 0
-
-# use --without-gtk-doc to disable building gtk-docs (it takes quite
-# a while to build them)
-# default: build gtk-doc API docs
-%define gtk_doc_option %{?!_without_gtk_doc:--enable-gtk-doc}%{?_without_gtk_doc:--disable-gtk-doc}
-
-%if %option_with_gnu_iconv
-%define arch_ldadd -Wl,-zignore -R/usr/gnu/lib -lgnuintl -lgnuiconv
-%else
-%define arch_ldadd
-%endif
-
-%if %debug_build
-%define pkgbuild_postprocess /bin/true
-%define _cc_opt_level      -g
-%define _cxx_opt_level     -g
-%define _gcc_opt_level     -g
-%define _gxx_opt_level     -g
-%else
-%define _gcc_opt_level     -O3
-%define _gxx_opt_level     -O3
-%define _cc_opt_level      -xO4 -xspace
-%define _cxx_opt_level     -xO3 -xspace
-%endif
-
-%ifarch sparc
-%define gcc_optflags           %_gcc_opt_level -mv8plus -Xlinker -i %gcc_picflags
-%define gcc_cxx_optflags       %_gxx_opt_level -mv8plus -Xlinker -i %gcc_picflags
-%endif
-
-%ifarch i386
-%define gcc_optflags           %_gcc_opt_level -march=i586 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
-%define gcc_cxx_optflags       %_gxx_opt_level -march=i586 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
-%endif
-
-%ifarch sparc
-%define suncc_optflags           -i %_cc_opt_level -xstrconst -xarch=v8a -mr -xmemalign=4i
-%define suncc_cxx_optflags       -i %_cxx_opt_level -xarch=v8a -mr -norunpath -compat=5
-%endif
-
-%ifarch i386
-%define suncc_optflags           -i %_cc_opt_level -xstrconst -xpentium -mr -xregs=no%%frameptr
-%define suncc_cxx_optflags       -i %_cxx_opt_level -pentium -mr -norunpath -xregs=no%%frameptr -compat=5
-%endif
-
-%if %cc_is_gcc
-
-%define picflags %gcc_picflags
-%define optflags %gcc_optflags
-%define cxx_optflags %gcc_cxx_optflags
-
-%else
-# cc is not gcc
-
-%define picflags %suncc_picflags
-%define optflags %suncc_optflags ${EXTRA_CFLAGS}
-%define cxx_optflags %suncc_cxx_optflags ${EXTRA_CXXFLAGS}
-
-%endif
-
-%define _bindir		 %{_prefix}/bin
-%define _libdir		 %{_prefix}/lib
-%define _libexecdir	 %{_prefix}/lib
-%define _pkg_config_path %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
-%define _sysconfdir      /etc
-
-# ChangeLog:
-# 2008-09-13  Laszlo (Laca) Peter  <[email protected]>
-# - add -compat=5 option to Sun Studio CXXFLAGS as required by PSARC/2002/348
-# 2007-09-28  Laszlo (Laca) Peter  <[email protected]>
-# - add /usr/gnu/lib to the RUNPATH and link with GNU libintl and libiconv
-#   when building with the --with-gnu-iconv option
-# 2007-08-09  Laszlo (Laca) Peter  <[email protected]>
-# - delete cc_is_gcc conditional when setting _gcc_opt_level,
-#   because we want this set anyway so it can be used in spec
-#   files that force gcc
-# 2007-05-17  Laszlo (Laca) Peter  <[email protected]>
-# - add -xmemalign=4i for sparc builds for binary compatibility with
-#   apps compiled with earlier versions of Sun Studio, fixes 6457446
-# 2007-04-05  Laszlo (Laca) Peter  <[email protected]>
-# - fix cxx_optflags: use EXTRA_CXXFLAGS and not EXTRA_LDFLAGS
-# 2007-03-19  Doug Scott <[email protected]>
-# - Fixed -fno-omit-frame-pointer flag
-# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
-# - copied from x86_sse2.inc
-# - new include file that resets macros to their default (32-bit build)
-#   values
-# 2007-03-12  Doug Scott  <[email protected]>
--- a/spec-files/include/default-depend.inc	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-#
-# Default system dependencies for GNOME packages on Solaris
-#
-# Copyright (c) 2003 Sun Microsystems, Inc.
-#
-Requires: SUNWcar
-Requires: SUNWkvm
-Requires: SUNWcsr
-Requires: SUNWcsu
-Requires: SUNWcsd
-Requires: SUNWcsl
--- a/spec-files/include/options.inc	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,147 +0,0 @@
-#
-# Macro definitions for optional features
-#
-
-#
-# Option: --with-l10n
-#
-# use --with-l10n to build the SUNWfoo-l10n packages
-# default: no l10n packages
-#
-%define option_with_l10n %{?_with_l10n:1}%{?!_with_l10n:0}
-%define option_without_l10n %{!?_with_l10n:1}%{?_with_l10n:0}
-
-# obsolete:
-%define build_l10n %option_with_l10n
-
-#
-# Option: --with-debug
-#
-# use --with-debug to build binaries with debug info (-g) and not to strip
-# them.
-# default: don't include debug info and strip the binaries (strip -x)
-#
-%define option_with_debug %{?_with_debug:1}%{?!_with_debug:0}
-%define option_without_debug %{!?_with_debug:1}%{?_with_debug:0}
-
-# obsolete:
-%define debug_build %option_with_debug
-
-#
-# Option: --without-gtk-doc
-#
-# use --without-gtk-doc to disable building gtk-docs (it takes quite
-# a while to build them)
-# default: build gtk-doc API docs
-#
-%define option_with_gtk_doc %{?!_without_gtk_doc:1}%{?_without_gtk_doc:0}
-%define option_without_gtk_doc %{?_without_gtk_doc:1}%{?!_without_gtk_doc:0}
-
-# macro to use as a configure option:
-%define gtk_doc_option %{?!_without_gtk_doc:--enable-gtk-doc}%{?_without_gtk_doc:--disable-gtk-doc}
-
-#
-# Option: --with-fox
-#
-# use --with-fox to build JDS with the FOX project's X packages
-# instead of the nevada X packages
-# default: nevada
-#
-%define option_with_fox %{?_with_fox:1}%{?!_with_fox:0}
-%define option_without_fox %{!?_with_fox:1}%{?_with_fox:0}
-
-#
-# Option: --with-gnu-iconv
-#
-# use --with-gnu-iconv to build JDS with the GNU libiconv and
-# libintl implementations instead of the nevada libc implementations
-# default: libc
-#
-%define option_with_gnu_iconv %{?_with_gnu_iconv:1}%{?!_with_gnu_iconv:0}
-%define option_without_gnu_iconv %{!?_with_gnu_iconv:1}%{?_with_gnu_iconv:0}
-
-#
-# Option: --without-java
-#
-# use --without-java exclude the Java bits from the build and packages
-# default: build java
-#
-%define option_with_java %{?!_without_java:1}%{?_without_java:0}
-%define option_without_java %{?_without_java:1}%{?!_without_java:0}
-
-#
-# Option: --without-dt
-#
-# use --without-dt to remove dependency on /usr/dt "stuff" like dtlogin
-# default: depend on /usr/dt
-#
-%define option_with_dt %{?!_without_dt:1}%{?_without_dt:0}
-%define option_without_dt %{?_without_dt:1}%{?!_without_dt:0}
-
-#
-# Option: --with-sun-branding
-#
-# use --with-sun-branding to build JDS with Sun Solaris branding
-# default: no Sun branding
-#
-%define option_with_sun_branding %{?_with_sun_branding:1}%{?!_with_sun_branding:0}
-%define option_without_sun_branding %{!?_with_sun_branding:1}%{?_with_sun_branding:0}
-
-#
-# Option: --with-indiana-branding
-#
-# use --with-indiana-branding to build JDS with Indiana Solaris branding
-# default: no Indiana branding
-#
-%define option_with_indiana_branding %{?_with_indiana_branding:1}%{?!_with_indiana_branding:0}
-%define option_without_indiana_branding %{!?_with_indiana_branding:1}%{?_with_indiana_branding:0}
-
-%if %option_with_sun_branding
-%if %option_with_indiana_branding
-%error You cannot enable both Sun Solaris and Indiana branding
-%endif
-%endif
-
-#
-# Option: --without-blueprint
-#
-# use --without-blueprint if you do not with to include the blueprint theme
-# default: include blueprint
-#
-%define option_with_blueprint %{?!_without_blueprint:1}%{?_without_blueprint:0}
-%define option_without_blueprint %{?_without_blueprint:1}%{?!_without_blueprint:0}
-
-#
-# Option: --without-apoc-adapter
-#
-# use --with-apoc-adapter to enable apoc adapter for SUNWfirefox
-# default: not build apoc adapter
-%define option_with_apoc_adapter %{?_with_apoc_adapter:1}%{?!_with_apoc_adapter:0}
-%define option_without_apoc_adapter %{!?_with_apoc_adapter:1}%{?_with_apoc_adapter:0}
-
-#
-# Option: --with-moz-nss-nspr
-#
-# use --with-moz-nss-nspr to deliver Mozilla bundled nss, nspr libs
-# for SUNWfirefox
-# default: without Mozilla bundled nss, nspr libs
-%define option_without_moz_nss_nspr %{?!_with_moz_nss_nspr:1}%{?_with_moz_nss_nspr:0}
-
-#
-# Option: --without-lightning
-#
-# use --without-lightning to disable building lightning for SUNWthunderbird
-# default: build lightning
-%define option_with_lightning %{?!_without_lightning:1}%{?_without_lightning:0}
-
-# ChangeLog:
-# 2009-05-25  - [email protected]
-# - add option --without-lightning
-# 2009-05-21  - [email protected]
-# - add option --without-apoc-adapter, --with-moz-nss-nspr
-# 2009-03-23  - [email protected]
-# - remove option --with-ff3
-# 2008-05-22  - [email protected]
-# - add option --with-ff3 
-# 2007-09-27  Laszlo (Laca) Peter  <[email protected]>
-# - create
--- a/spec-files/include/prod.inc	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-#
-# Default settings for GNOME packages on Solaris
-#
-# Copyright 2009 Sun Microsystems, Inc.
-#
-SUNW_ProdName:             GNOME
-SUNW_ProdVers:             2.29.91
-
-%define default_pkg_version 2.29.91
-%define default_python_version 2.6
-
-%{?sf_download:#}%define sf_download http://downloads.sourceforge.net
-
-%{?jds_version:#}%define jds_version JDSosol
-%define default_category   GNOME2,application,%{jds_version}
-%{?support_level:#}%define support_level      unsupported
-
-Vendor:			   Sun Microsystems, Inc.
-
-%define                    pkg_prefix SUNW
-
-%define                    restart_fmri $BASEDIR/share/desktop-cache/restart_fmri
-
-# ChangeLog:
-# 2009-10-08  Laszlo (Laca) Peter  <[email protected]>
-# - define default_python_version
-# 2009-04-03  Laszlo (Laca) Peter  <[email protected]>
-# - define restart_fmri
-# 2007-09-27  Laszlo (Laca) Peter  <[email protected]>
-# - move tjds build option to options.inc
-# 2007-03-15  Laszlo (Laca) Peter  <[email protected]>
-# - create by moving product specific stuff out of Solaris.inc
--- a/spec-files/lcms.spec	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-#
-# spec file for package lcms
-#
-%include Solaris.inc
-%define	src_name lcms
-%define src_url http://download.sourceforge.net/project/lcms/lcms/
-
-# The system doesn't support package names such as:
-# text/less
-
-Name:                lcms
-Summary:             An open source color management engine
-License:             GPL
-Group:               Utilities
-Distribution:        OpenSolaris
-Version:             2-2.0a
-Source:              %{src_url}/2.0/%{src_name}%{version}.tar.gz
-SUNW_BaseDir:        %{_basedir}
-SUNW_Copyright:      %{name}.copyright
-BuildRoot:           %{_tmppath}/%{name}-%{version}-build
-%include default-depend.inc
-
-# OpenSolaris IPS Manifest Fields
-Meta(info.upstream):            Marti Maria
-Meta(info.maintainer):          Marti Maria
-Meta(info.repository_url):      http://www.littlecms.com/
-Meta(pkg.summary):              open source color management engine
-
-%description
-Little CMS intends to be a small-footprint color management engine, 
-with special focus on accuracy and performance.
-
-# Examples only:
-Requires:            SUNWglib2
-BuildRequires:       SUNWglib2-devel
-
-%prep
-%setup -q -n %{src_name}-2.0
-
-%build
-CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
-if test "x$CPUS" = "x" -o $CPUS = 0; then
-  CPUS=1
-fi
-./configure --prefix=%{_prefix} \
-            --libdir=%{_libdir} \
-            --bindir=%{_bindir} \
-            --datadir=%{_datadir}
-make -j $CPUS
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-%clean
-#rm -rf $RPM_BUILD_ROOT
-
-%files
-%{_bindir}/*
-%{_libdir}/*
-%{_datadir}/*
-%{_includedir}/*
-
-%changelog
-Wed 19 May 2010 [email protected]
-- Initial spec
--- a/spec-files/less.spec	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-#
-# spec file for package less
-#
-# includes module(s): less
-#
-%include Solaris.inc
-
-%define	src_name less
-%define src_url http://src.opensolaris.org/source/raw/sfw/usr/src/cmd
-
-# The system doesn't support package names such as:
-# text/less
-
-Name:                less
-Summary:             less - opposite of more
-License:             GPL
-Group:               Editor
-Distribution:        OpenSolaris
-Version:             436
-Source:              %{src_url}/%{src_name}/%{src_name}-%{version}.tar.gz
-SUNW_BaseDir:        %{_basedir}
-SUNW_Copyright:      %{name}.copyright
-BuildRoot:           %{_tmppath}/%{name}-%{version}-build
-%include default-depend.inc
-
-# OpenSolaris IPS Manifest Fields
-Meta(info.upstream):            Less Person
-Meta(info.maintainer):          Less Maintainer 
-Meta(info.repository_url):      svn://svn.example.org/less/trunk
-Meta(pkg.summary):              The GNU pager (less)
-
-%description
-Less is a program similar to more (1), but which allows backward
-movement in the file as well as forward movement.
-
-# Examples only:
-Requires:            SUNWglib2
-BuildRequires:       SUNWglib2-devel
-
-%prep
-%setup -q -n %{src_name}-%version
-
-%build
-sh configure
-make
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.*a
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr (-, root, bin)
-%dir %attr (0755, root, bin) /usr/local
-/usr/local/bin/*
-%dir %attr (0755, root, sys) /usr/local/share
-/usr/local/share/man/*
-
-%changelog
-* Thu 7 April 2010 - [email protected]
-- Initial spec
--- a/spec-files/validation/validation.pl	Fri Jun 11 12:39:17 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-#!/bin/perl
-
-sub traverse {
-    my ($dir, @callbacks) = @_;
-    my $present;
-    
-    opendir $present, $dir or return();
-
-    for (grep { ! /^(\.|\.\.)$/ } readdir $present) {
-        my $path = "$dir/$_";
-
-	foreach $validation (@callbacks) 
-	{
-	  &$validation($path);
-	}
-        traverse($path, @callbacks) if -d $path;
-    }
-
-    closedir $present;
-    return();
-}
-
-sub checkManpage {
-  my $file = shift;
-  if (-T $file) {
-    if ($file =~ /\/man\//) {
-      my $attribute_section = 0;
-      open (FILE, $file);
-      while (<FILE>) {
-	if (/\.so /) { return; }#reference only manpage 
-	if (/.SH.*ATTRIBUTES/) {
-	  $attribute_section = 1;
-	}
-      }
-      close (FILE);
-      if ($attribute_section == 0) {
-	print "MAN CHECK : Error in $file\n\tNo attribute section missing\n";
-      }
-    }
-  }
-  return;
-}
-
-
-sub checkExecutableNotWritable {
-  my $file = shift;
-  if (not -d $file and -x $file and -w $file)
-  {
-    print "ATTRIBUTE CHECK : Error in $file\n\texecutable file should not be writable\n";
-  }
-  return;
-}
-
-@validationFcts = (\&checkManpage, \&checkExecutableNoWritable);
-
-
-traverse($ARGV[0], @validationFcts);
-