From 80f24db1cc670dfddc209b9fded048f0ab935e79 Mon Sep 17 00:00:00 2001 From: Victor G. Vasilyev Date: Feb 11 2010 09:58:19 +0000 Subject: https://bugzilla.redhat.com/show_bug.cgi?id=560169 --- diff --git a/.cvsignore b/.cvsignore index dee3ebb..b4b2369 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -bytelist-svn9177.tar.bz2 +jruby-bytelist-61655c8.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c00e77 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: bytelist +# $Id$ +NAME := bytelist +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/bytelist.spec b/bytelist.spec new file mode 100644 index 0000000..2603f72 --- /dev/null +++ b/bytelist.spec @@ -0,0 +1,101 @@ +%global git_commit 61655c8 +%global cluster jruby + +# Prevent brp-java-repack-jars from being run. +%define __jar_repack %{nil} + +Name: bytelist +Version: 1.0.3 +Release: 2%{?dist} +Summary: A java library for lists of bytes + +Group: Development/Libraries +License: CPL or GPLv2+ or LGPLv2+ +URL: http://github.com/%{cluster}/%{name} +Source0: %{url}/tarball/%{version}/%{cluster}-%{name}-%{git_commit}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: java-devel +BuildRequires: jcodings +BuildRequires: jpackage-utils +BuildRequires: junit + +Requires: java +Requires: jcodings +Requires: jpackage-utils + + +%description +A small java library for manipulating lists of bytes. + + +%prep +%setup -q -n %{cluster}-%{name}-%{git_commit} + +find -name '*.class' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; + + +%build +echo "See %{url} for more info about the %{name} project." > README.txt + +export CLASSPATH=$(build-classpath junit jcodings) +%__mkdir_p lib +%ant + + +%install +%__rm -rf %{buildroot} +%__mkdir_p %{buildroot}%{_javadir} + +%__cp -p lib/%{name}-1.0.1.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar +pushd %{buildroot}%{_javadir}/ + %__ln_s %{name}-%{version}.jar %{name}.jar +popd + + +%check +export CLASSPATH=$(build-classpath junit jcodings) +%ant test + + +%clean +%__rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_javadir}/* +%doc README.txt + +%changelog +* Tue Feb 09 2010 Victor G. Vasilyev - 1.0.3-2 +- Fix the clean up code in the prep section +- Fix typo +- Save changelog + +* Thu Jan 28 2010 Victor G. Vasilyev - 1.0.3-1 +- 1.0.3 +- Remove gcj bits +- New URL +- Use macros in all sections of the spec +- Add README.txt generated on the fly + +* Mon Feb 23 2009 Fedora Release Engineering - 1.0.1-0.2.svn9177 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Feb 15 2009 Conrad Meyer - 1.0.1-0.1.svn9177 +- Bump to SVN HEAD. + +* Sun Feb 15 2009 Conrad Meyer - 1.0-1 +- Bump to 1.0 release. + +* Tue Apr 22 2008 Conrad Meyer - 0.1-0.2.svn6558 +- Do not include version in jar filename. +- Run tests in check section. + +* Tue Apr 22 2008 Conrad Meyer - 0.1-0.1.svn6558 +- Initial RPM. diff --git a/dead.package b/dead.package deleted file mode 100644 index e195e21..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphan clean up diff --git a/import.log b/import.log new file mode 100644 index 0000000..5d65bf4 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +bytelist-1_0_3-2_fc13:HEAD:bytelist-1.0.3-2.fc13.src.rpm:1265882137 diff --git a/sources b/sources new file mode 100644 index 0000000..35b622a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +46eb78de8a09934821fb0600f22b9853 jruby-bytelist-61655c8.tar.gz