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 345105b..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: xmlenc -# $Id$ -NAME := xmlenc -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..5208a6f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +32f631dca735574c9ad8164ee05dc05f xmlenc-0.52.tgz diff --git a/xmlenc.spec b/xmlenc.spec new file mode 100644 index 0000000..bc054b9 --- /dev/null +++ b/xmlenc.spec @@ -0,0 +1,89 @@ +Name: xmlenc +Version: 0.52 +Release: 5%{?dist} +Summary: Light-weight XML output library for Java + +Group: Development/Libraries +License: BSD +URL: http://xmlenc.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: java-devel >= 1:1.6.0 +BuildRequires: jpackage-utils +BuildRequires: ant +BuildRequires: ant-junit +BuildRequires: junit + +Requires: java >= 1:1.6.0 +Requires: jpackage-utils +BuildArch: noarch + +%description +This library is a fast stream-based XML output library for Java. +Main design goals are performance, simplicitity and pureness. + + +%package javadoc +Summary: Javadocs for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils + +%description javadoc +This package contains the API documentation for %{name} + + +%prep +%setup -q +find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \; +rm -Rf build/* + + +%build +ant \ + -Djavac.targetvm=1.5 \ + all + + +%install +rm -rf %{buildroot} +install -d -m 755 %{buildroot}%{_javadir}/ +cp -pR build/%{name}.jar %{buildroot}%{_javadir}/ + +install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version} +cp -pR build/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}/ + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%{_javadir}/* +%doc CHANGES COPYRIGHT README THANKS + + +%files javadoc +%defattr(-,root,root,-) +%{_javadocdir}/%{name}-%{version} + + +%changelog +* Tue Jan 29 2009 Fabian Deutsch 0.52-5 +- URL now follows standards + +* Wed Jan 28 2009 Fabian Deutsch 0.52-4 +- Group name fix +- Spec-file cleanup + +* Mon Jan 26 2009 Fabian Deutsch 0.52-3 +- Small javac.targetvm build fix + +* Mon Jan 26 2009 Fabian Deutsch 0.52-2 +- Added dependencies +- Small fixes + +* Wed Jan 21 2009 Fabian Deutsch 0.52-1 +- Initial package.