diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index a71f501..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: vecmath -# $Id$ -NAME := vecmath -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/sources b/sources index e69de29..6b6bd4f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0bf68079840358b3606f7b8833d26857 vecmath-20090922.tar.bz2 diff --git a/vecmath.spec b/vecmath.spec new file mode 100644 index 0000000..98098e4 --- /dev/null +++ b/vecmath.spec @@ -0,0 +1,58 @@ +%global tardate 20090922 + +Name: vecmath +Version: 0 +Release: 2.%{tardate}cvs%{?dist} +Summary: The 3D vector math Java package, javax.vecmath +Group: Development/Libraries +# License is GNU General Public License, version 2, with the Classpath Exception +License: GPLv2 with exceptions +URL: https://vecmath.dev.java.net/ +## Source pulled from upstream CVS. +# https://vecmath.dev.java.net/servlets/ProjectSource +## Tarball created with +## (you need to create a username) +# cvs -d :pserver:username@cvs.dev.java.net:/cvs login +# cvs -d :pserver:username@cvs.dev.java.net:/cvs checkout vecmath +# tar cf vecmath-%{tardate}.tar vecmath +# xz vecmath-%{tardate}.tar +Source0: %{name}-%{tardate}.tar.bz2 +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch + +BuildRequires: ant +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: jpackage-utils + +Requires: java >= 1:1.6.0 +Requires: jpackage-utils + +%description +The 3D vector math Java package, javax.vecmath. + +%prep +%setup -q -n %{name} +find -name '*.class' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; + +%build +ant + +%install +rm -rf %{buildroot} +install -D -p -m 644 build/debug/lib/ext/vecmath.jar %{buildroot}%{_javadir}/vecmath.jar + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc docs/api-changes* LICENSE.txt LICENSE-SPEC.html +%{_javadir}/vecmath.jar + +%changelog +* Mon Sep 28 2009 Jussi Lehtola - 0-2.20090922cvs +- Minor review fixes. + +* Tue Sep 22 2009 Jussi Lehtola - 0-1.20090922cvs +- First release.