* SUNWhamster.spec: (new) Added for hamster project gnome-2-24
authorjyu_mit
Fri, 14 Nov 2008 07:10:40 +0000
branchgnome-2-24
changeset 13960 006fd1f4294e
parent 13959 7930c8f126fe
child 13961 db6ee0fd0984
* SUNWhamster.spec: (new) Added for hamster project * copyright/SUNWhamster.copyright: (new) hamster copyright file
ChangeLog
SUNWhamster.spec
copyright/SUNWhamster.copyright
--- a/ChangeLog	Fri Nov 14 03:04:33 2008 +0000
+++ b/ChangeLog	Fri Nov 14 07:10:40 2008 +0000
@@ -1,3 +1,8 @@
+2008-11-14  Jerry Yu <[email protected]>
+
+	* SUNWhamster.spec: (new) Added for hamster project
+	* copyright/SUNWhamster.copyright: (new) hamster copyright file
+
 2008-11-14  Halton Huo	<[email protected]>
 
 	* manpages/man1/vinagre.1: Add authors in NOTE
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SUNWhamster.spec	Fri Nov 14 07:10:40 2008 +0000
@@ -0,0 +1,75 @@
+#
+# spec file for package SUNWhamster
+#
+# includes module(s): hamster
+#
+# 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: jyu_mit
+#
+
+%include Solaris.inc
+
+Name:                    SUNWhamster
+License:                 GPL v3 
+Summary:		 Time tracking for masses	
+Version:                 2.24.1
+Source:                  http://ftp.gnome.org/pub/GNOME/sources/hamster-applet/2.24/hamster-applet-%{version}.tar.gz
+URL:                     http://live.gnome.org/ProjectHamster
+SUNW_BaseDir:            %{_basedir}
+SUNW_Copyright:          %{name}.copyright
+BuildRoot:               %{_tmppath}/%{name}-%{version}-build
+
+%include default-depend.inc
+BuildRequires:     SUNWsqlite3
+BuildRequires:     SUNWpysqlite
+Requires:          SUNWsqlite3
+Requires:          SUNWpysqlite
+
+%prep
+%setup -q -n hamster-applet-%{version}
+
+%build
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+    CPUS=1
+fi
+export CFLAGS="%optflags"
+
+./configure --prefix=%{_prefix} \
+	    --bindir=%{_bindir}	\
+	    --libdir=%{_libdir}	\
+	    --mandir=%{_mandir}
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*
+%dir %attr (0755, root, root) %{_prefix}/etc
+%{_prefix}/etc/*
+%dir %attr (0755, root, sys) %{_datadir}
+%{_datadir}/*
+%doc AUTHORS
+%doc(bzip2) COPYING NEWS
+%doc(bzip2) ChangeLog README
+%dir %attr (0755, root, other) %{_datadir}/doc
+
+%changelog
+* Thu Nov 13 2008 - [email protected]
+- Move from sfe to spec-files.
+* Tue Nov 11 2008 - [email protected]
+- Add BuildRequires.
+* Wed Oct 22 2008 - [email protected]
+- Bump to 2.24.1
+* Tue Oct 07 2008 - [email protected]
+- Initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/copyright/SUNWhamster.copyright	Fri Nov 14 07:10:40 2008 +0000
@@ -0,0 +1,21 @@
+  Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+  Use is subject to license terms. 
+
+--------------------------------------------------------------------
+
+  Licensing and copyright information for %{name}:
+
+   License: GNU General Public License Version 3
+ 
+   You can find more information in the following directory:
+   %{_pkg_docdir}
+
+    COPYING.bz2: GNU GPL
+    AUTHORS: list of authors of hamster
+    NEWS.bz2: list of the most important changes in hamster
+    ChangeLog.bz2: list of all changes and authors of hamster
+    README.bz2: more information about hamster
+
+   The sources of hamster-applet-%{version} were downloaded
+   from %{SOURCE0.url}
+