add spec for gmime, libgc gnome-2-20
authorjerrytan
Thu, 21 Feb 2008 06:19:06 +0000
branchgnome-2-20
changeset 10802 fc6ae2223009
parent 10801 29fc55ac75ba
child 10803 41a0b9938595
add spec for gmime, libgc
SUNWgmime.spec
SUNWlibgc.spec
base-specs/gmime.spec
base-specs/libgc.spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWgmime.spec	Thu Feb 21 06:19:06 2008 +0000
@@ -0,0 +1,97 @@
+#
+# spec file for package SUNWgmime
+#
+# includes module(s): gmime
+#
+# Copyright (c) 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: halton
+#
+
+%include Solaris.inc
+
+%use gmime = gmime.spec
+
+Name:          SUNWgmime
+Version:       %{default_pkg_version}
+Summary:       Libraries and binaries to parse and index mail messages
+SUNW_BaseDir:  %{_basedir}
+BuildRoot:     %{_tmppath}/%{name}-%{version}-build
+Requires:      SUNWzlib
+Requires:      SUNWlibms
+Requires:      SUNWgnome-base-libs
+BuildRequires: SUNWgnome-base-libs-devel
+
+%package devel
+Summary:       %{summary} - development files
+SUNW_BaseDir:  %{_basedir}
+%include default-depend.inc
+Requires:      %name
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+%gmime.prep -d %name-%version
+
+%build
+export PKG_CONFIG_PATH=%{_pkg_config_path}
+export CFLAGS="%optflags"
+export RPM_OPT_FLAGS="$CFLAGS"
+export LDFLAGS="%_ldflags"
+
+%gmime.build -d %name-%version
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%gmime.install -d %name-%version
+
+# conflicts with SUNWesu
+rm -f $RPM_BUILD_ROOT%{_bindir}/uuencode
+rm -f $RPM_BUILD_ROOT%{_bindir}/uudecode
+
+%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT}
+
+%clean 
+rm -rf $RPM_BUILD_ROOT
+
+%files 
+%defattr(-, root, bin)
+%dir %attr (0755, root, bin) %dir %{_libdir}
+%{_libdir}/*.so*
+
+%files devel
+%defattr(-, root, bin)
+%dir %attr (0755, root, bin) %dir %{_includedir}
+%{_includedir}/*
+%dir %attr (0755, root, bin) %dir %{_bindir}
+%{_bindir}/*
+%dir %attr (0755, root, bin) %dir %{_libdir}
+%{_libdir}/*.sh
+%dir %attr (0755, root, other) %dir %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+%dir %attr (0755, root, sys) %dir %{_datadir}
+%{_datadir}/gtk-doc
+
+%changelog
+* Tue Jan 29 2008 - [email protected]
+- Remove no_gtk_doc validation. Always install gtk-doc
+* Thu Jan 24 2008 - [email protected]
+- Remove mono stuff
+- Add gtk-doc for %files devel
+* Wed Jan 02 2008 - [email protected]
+- Rename from SFEgmime to SUNWgmime.
+* Tue Jul 24 2007 - [email protected]
+- Bump to 2.2.10.
+* Wed May  2 2007 - [email protected]
+- Bump to 2.2.8.
+- Add check mono condition.
+* Wed Sep  7 2006 - [email protected]
+- bump to 2.2.3
+* Sun Jul 13 2006 - [email protected]
+- rename to SFEgmime
+- include Solaris.inc
+- correct patch file name, update CFLAGS, add gtk-docs to %files
+* Wed Jul 12 2006 - [email protected]
+- Initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWlibgc.spec	Thu Feb 21 06:19:06 2008 +0000
@@ -0,0 +1,77 @@
+#
+# spec file for package SUNWlibgc
+#
+# includes module(s): libgc
+#
+# Copyright 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner: halton
+#
+%include Solaris.inc
+
+%use libgc = libgc.spec
+
+Name:                    SUNWlibgc
+Summary:                 Boehm-Demers-Weiser garbage collector for C/C++
+Version:                 %{default_pkg_version}
+SUNW_BaseDir:            %{_basedir}
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+Requires: SUNWlibms
+
+%package devel
+Summary:                 %{summary} - development files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires:                %{name}
+
+%prep
+rm -rf %name-%version
+mkdir %name-%version
+%libgc.prep -d %name-%version
+
+%build
+export CFLAGS="%optflags"
+export LDFLAGS="%{_ldflags}"
+
+%libgc.build -d %name-%version
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%libgc.install -d %name-%version
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*.so*
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_libdir}
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+%dir %attr (0755, root, sys) %{_datadir}
+%{_datadir}/gc
+
+%changelog
+* Thu Jan 03 2008 - [email protected]
+- Use base spec libgc.spec
+* Mon Oct 15 2007 - [email protected]
+- Bump to 7.0
+- s/gc%{version}/gc-%{version}/g
+- Add *.pc to %files devel
+* Thu Jul  6 2006 - [email protected]
+- rename to SFEhp-gc
+- delete -share subpkg
+- update file attributes
+- delete unnecessary env variables
+* Mon Jan 30 2006 - [email protected]
+- Initial version
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/gmime.spec	Thu Feb 21 06:19:06 2008 +0000
@@ -0,0 +1,125 @@
+#
+# spec file for package gmime
+#
+# Copyright (c) 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner:halton
+#
+
+Name:			gmime
+License:		LGPL
+Group:			System/Libraries
+Version:		2.2.17
+Release:	 	4
+Distribution:		Java Desktop System
+Vendor:			Sun Microsystems, Inc.
+Summary:		Libraries and binaries to parse and index mail messages
+Source:			http://download.gnome.org/sources/gmime/2.2/%{name}-%{version}.tar.bz2
+URL:			http://spruce.sourceforge.net/gmime/
+BuildRoot:		%{_tmppath}/%{name}-%{version}-build
+Docdir:			%{_defaultdocdir}/doc
+Autoreqprov:		on
+Prereq:                 /sbin/ldconfig
+
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  glib2-devel >= 1:2.12.1
+BuildRequires:  gtk-doc >= 1.0
+BuildRequires:  libtool
+BuildRequires:  pkgconfig
+BuildRequires:  zlib-devel
+
+%description
+This library allows you to manipulate MIME messages.
+
+%package devel
+Summary:		Header files for developing applications with libgmime 
+Group:			Development/Libraries
+Requires:		%{name} = %{version}
+Requires:		glib2-devel >= 1:2.11.4
+Requires:               gtk-doc-common
+Requires:               zlib-devel
+
+%description devel
+Header files develop libgmime applications.
+
+
+%prep
+%setup -q
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+  CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+  CPUS=1
+fi
+
+aclocal $ACLOCAL_FLAGS
+autoheader
+automake -a -c -f
+autoconf
+
+CFLAGS="$RPM_OPT_FLAGS"			\
+./configure --prefix=%{_prefix}         \
+            --mandir=%{_mandir}         \
+            --libdir=%{_libdir}         \
+            --libexecdir=%{_libexecdir} \
+            --sysconfdir=%{_sysconfdir} \
+	    %gtk_doc_option
+
+make -j $CPUS
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_libdir}/libgmime-2.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgmime-2.0.so.2
+
+%files devel
+%defattr(-,root,root)
+%doc PORTING
+%attr(755,root,root) %{_bindir}/gmime-config
+%attr(755,root,root) %{_libdir}/libgmime-2.0.so
+%attr(755,root,root) %{_libdir}/gmimeConf.sh
+%{_libdir}/pkgconfig/gmime-2.0.pc
+%{_includedir}/gmime-2.0
+%{_datadir}/gtk-doc/html/gmime
+
+
+
+%changelog
+* Tue Feb 12 2008 - [email protected]
+- Bump to 2.2.17.
+* Sun Feb 03 2008 - [email protected]
+- Bump to 2.2.16.
+* Tue 29 Jan 2008 - patrick.ale@gmail
+- Revert change since this is not correct.
+* Sun 27 Jan 2008 - [email protected]
+- Revert change and remove /usr/share from
+  build area
+* Sat 26 Jan 2008 - [email protected]
+- Add /usr/share to the prototype
+* Thu Jan 24 2008 - [email protected]
+- Remove mono stuff.
+* Thu Jan 03 2008 - [email protected]
+- Bump to 2.2.15
+* Wed Jan 02 2008 - [email protected]
+- spilit from SUNWgmime.spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/libgc.spec	Thu Feb 21 06:19:06 2008 +0000
@@ -0,0 +1,106 @@
+#
+# spec file for package libgc
+#
+# Copyright (c) 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Owner:halton
+#
+
+%define real_name gc
+
+Name:			libgc
+License:		BSD
+Group:			System/Libraries
+Version:		7.0
+Release:	 	4
+Distribution:		Java Desktop System
+Vendor:			Sun Microsystems, Inc.
+Summary:		Boehm-Demers-Weiser garbage collector for C/C++
+Source:			http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-%{version}.tar.gz
+URL:			http://www.hpl.hp.com/personal/Hans_Boehm/gc/
+BuildRoot:		%{_tmppath}/%{name}-%{version}-build
+Docdir:			%{_defaultdocdir}/doc
+Autoreqprov:		on
+Prereq:                 /sbin/ldconfig
+
+%description
+Boehm's GC is a garbage collecting storage allocator that is
+intended to be used as a plug-in replacement for C's malloc.
+
+
+%package devel
+Summary:		Header files, libraries and development documentation for %{name}
+Group:			Development/Libraries
+Requires:		%{name} = %{version}
+
+%description devel
+This package contains the header files, static libraries and development
+documentation for %{name}. If you like to develop programs using %{name},
+you will need to install %{name}-devel.
+
+
+%prep
+%setup -q -n %{real_name}-%{version}
+
+%build
+%ifos linux
+if [ -x /usr/bin/getconf ]; then
+  CPUS=`getconf _NPROCESSORS_ONLN`
+fi
+%else
+  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+%endif
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+  CPUS=1
+fi
+
+libtoolize --force
+aclocal $ACLOCAL_FLAGS
+automake -a -c -f
+autoconf
+
+CFLAGS="$RPM_OPT_FLAGS"			\
+./configure --prefix=%{_prefix}         \
+            --mandir=%{_mandir}         \
+            --libdir=%{_libdir}         \
+            --libexecdir=%{_libexecdir} \
+            --sysconfdir=%{_sysconfdir} \
+            %gtk_doc_option
+
+make -j $CPUS
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-, root, root)
+%doc README.QUICK
+%{_libdir}/libgc.so.*
+%{_libdir}/libgccpp.so.*
+%{_libdir}/libcord.so.*
+
+%files devel
+%defattr(-, root, root)
+%doc doc/*
+%doc %{_mandir}/man?/*
+%{_libdir}/libgc.so
+%{_libdir}/libgccpp.so
+%{_libdir}/libcord.so
+%{_includedir}/gc/
+%{_includedir}/libgc/
+%{_libdir}/pkgconfig/bdw-gc.pc
+
+%changelog
+* Wed Jan 02 2008 - [email protected]
+- spilit from SFEbdw-gc.spec