Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9496f287c8 | ||
|
|
f74a2ac49b | ||
|
|
1f12ebf8be | ||
| b50741dc97 |
4 changed files with 90 additions and 21 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -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)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
32f631dca735574c9ad8164ee05dc05f xmlenc-0.52.tgz
|
||||
89
xmlenc.spec
Normal file
89
xmlenc.spec
Normal file
|
|
@ -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 <fabian.deutsch at gmx.de> 0.52-5
|
||||
- URL now follows standards
|
||||
|
||||
* Wed Jan 28 2009 Fabian Deutsch <fabian.deutsch at gmx.de> 0.52-4
|
||||
- Group name fix
|
||||
- Spec-file cleanup
|
||||
|
||||
* Mon Jan 26 2009 Fabian Deutsch <fabian.deutsch at gmx.de> 0.52-3
|
||||
- Small javac.targetvm build fix
|
||||
|
||||
* Mon Jan 26 2009 Fabian Deutsch <fabian.deutsch at gmx.de> 0.52-2
|
||||
- Added dependencies
|
||||
- Small fixes
|
||||
|
||||
* Wed Jan 21 2009 Fabian Deutsch <fabian.deutsch at gmx.de> 0.52-1
|
||||
- Initial package.
|
||||
Loading…
Add table
Add a link
Reference in a new issue