4c106a
# Copyright (c) 2000-2005, JPackage Project
4c106a
# All rights reserved.
4c106a
#
4c106a
# Redistribution and use in source and binary forms, with or without
4c106a
# modification, are permitted provided that the following conditions
4c106a
# are met:
4c106a
#
4c106a
# 1. Redistributions of source code must retain the above copyright
4c106a
#    notice, this list of conditions and the following disclaimer.
4c106a
# 2. Redistributions in binary form must reproduce the above copyright
4c106a
#    notice, this list of conditions and the following disclaimer in the
4c106a
#    documentation and/or other materials provided with the
4c106a
#    distribution.
4c106a
# 3. Neither the name of the JPackage Project nor the names of its
4c106a
#    contributors may be used to endorse or promote products derived
4c106a
#    from this software without specific prior written permission.
4c106a
#
4c106a
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4c106a
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
4c106a
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
4c106a
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
4c106a
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4c106a
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
4c106a
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4c106a
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
4c106a
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4c106a
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
4c106a
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4c106a
#
4c106a
4c106a
%global cvstag  release-20050331
4c106a
4c106a
Name:           isorelax
4c106a
Summary:        Public interfaces for RELAX Core
4c106a
URL:            http://iso-relax.sourceforge.net/
4c106a
Epoch:          1
4c106a
Version:        0
4c106a
# I can't use %%{cvstag} as dashes aren't allowed in Release tags
4c106a
Release:        0.15.release20050331%{?dist}
4c106a
License:        MIT and ASL 1.1
4c106a
BuildArch:      noarch
4c106a
4c106a
# mkdir isorelax-release-20050331-src
4c106a
# cd isorelax-release-20050331-src
4c106a
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax \
4c106a
#   export -r release-20050331 src lib
4c106a
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax \
4c106a
#   co -r release-20050331 build.xml
4c106a
# rm -rf CVS
4c106a
# cd ..
4c106a
# tar cjf isorelax-release-20050331-src.tar.bz2 isorelax-release-20050331-src
4c106a
Source0:        %{name}-%{cvstag}-src.tar.bz2
4c106a
# There's no license in the upstream tarball so include it here
4c106a
Source1:        license.txt
4c106a
Source2:        http://repo2.maven.org/maven2/%{name}/%{name}/20030108/%{name}-20030108.pom
4c106a
Patch0:         %{name}-apidocsandcompressedjar.patch
4c106a
4c106a
BuildRequires:  jpackage-utils >= 0:1.6
4c106a
BuildRequires:  ant
4c106a
Requires:       java
4c106a
Requires:       jpackage-utils
4c106a
4c106a
%description
4c106a
The ISO RELAX project was started to host public interfaces 
4c106a
useful for applications to support RELAX Core. Now, however,
4c106a
some of the hosted material is schema language-neutral.
4c106a
4c106a
%package javadoc
4c106a
Summary:        API documentation for %{name}
4c106a
4c106a
%description javadoc
4c106a
%{summary}.
4c106a
4c106a
%prep
4c106a
%setup -q -n %{name}-%{cvstag}-src
4c106a
find -name "*.jar" -delete
4c106a
ln -s %{_javadir}/ant.jar lib/
4c106a
%patch0 -p0
4c106a
cp %{SOURCE1} .
4c106a
4c106a
%build
4c106a
ant release
4c106a
4c106a
%install
4c106a
# jars
4c106a
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
4c106a
install -m 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/
4c106a
4c106a
# javadoc
4c106a
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
4c106a
cp -pr apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
4c106a
4c106a
# POM and depmap
4c106a
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
4c106a
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
4c106a
%add_maven_depmap
4c106a
4c106a
%files -f .mfiles
4c106a
%doc license.txt
4c106a
4c106a
%files javadoc
4c106a
%doc license.txt
4c106a
%{_javadocdir}/*
4c106a
4c106a
%changelog
4c106a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:0-0.15.release20050331
4c106a
- Mass rebuild 2013-12-27
4c106a
4c106a
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0-0.14.release20050331
4c106a
- Rebuild to regenerate API documentation
4c106a
- Resolves: CVE-2013-1571
4c106a
4c106a
* Fri Jun 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0-0.13.release20050331
4c106a
- Update to current packaging guidelines
4c106a
4c106a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0-0.12.release20050331
4c106a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4c106a
4c106a
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0-0.11.release20050331
4c106a
- Add maven POM
4c106a
4c106a
* Mon Oct 22 2012 Mat Booth <fedora@matbooth.co.uk> - 1:0-0.10.release20050331
4c106a
- Include license text in %%doc section
4c106a
4c106a
* Sun Oct 21 2012 Mat Booth <fedora@matbooth.co.uk> - 1:0-0.9.release20050331
4c106a
- A portion of /org/iso_relax/verifier/VerifierFactory.java is licenced under ASL 1.1
4c106a
4c106a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0-0.8.release20050331
4c106a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4c106a
4c106a
* Fri Apr 6 2012 Alexander Kurtakov <akurtako@redhat.com> 1:0-0.7.release20050331
4c106a
- Update to current guidelines.
4c106a
- Drop all fake BR/R now.
4c106a
4c106a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0-0.6.release20050331
4c106a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4c106a
4c106a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0-0.5.release20050331
4c106a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4c106a
4c106a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0-0.4.release20050331
4c106a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4c106a
4c106a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0-0.3.release20050331
4c106a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4c106a
4c106a
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0-0.2.release20050331
4c106a
- drop repotag
4c106a
4c106a
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.1.release20050331.1jpp.3
4c106a
- fix license tag
4c106a
4c106a
* Tue Mar 06 2007 Vivek Lakshmanan <vivekl@redhat.com> 1:0-0.1.release20050331.1jpp.2.fc7
4c106a
- Rebuild
4c106a
4c106a
* Tue Mar 06 2007 Vivek Lakshmanan <vivekl@redhat.com> 1:0-0.1.release20050331.1jpp.1.fc7
4c106a
- First Fedora build
4c106a
4c106a
* Mon Feb 12 2007 Andrew Overholt <overholt@redhat.com> 1:0-0.1.release20050331.1jpp.1
4c106a
- Clean up
4c106a
- Remove tests
4c106a
- Fix e:nvr for new scheme (0.Z.tag.Xjpp.Y%%{?dist}) and bump epoch for
4c106a
  upgrades
4c106a
- Add instructions for how to create source drop
4c106a
- Don't do javadoc symlinking in %%post{,un}
4c106a
- Remove Obsoletes and Provides on isorelax-bootstrap as they were never
4c106a
  shipped in Fedora and I don't know what version to Obsolete/Provide
4c106a
4c106a
* Wed Mar 22 2006 Ralph Apel <r.apel at r-apel.de> 0:0.1-0.20041111.2jpp
4c106a
- By default omit tests requiring xercesjarv
4c106a
- Add postun for javadoc
4c106a
- Drop useless macros for name, version, etc.
4c106a
4c106a
* Tue Aug 23 2005 Ralph Apel <r.apel at r-apel.de> 0:0.1-0.20041111.1jpp
4c106a
- Upgrade to 20041111
4c106a
4c106a
* Fri Apr 22 2005 Fernando Nasser <fnasser@redhat.com> 0:0.1-0.20030108.3jpp
4c106a
- Rebuild with standard version scheme
4c106a
4c106a
* Wed Aug 25 2004 Ralph Apel <r.apel at r-apel.de> 0:0.1-0.20030108.2jpp
4c106a
- Build with ant-1.6.2
4c106a
4c106a
* Tue Jul 06 2004 Ralph Apel <r.apel at r-apel.de> 0:0.1-0.20030108.1jpp
4c106a
- First build from sources into free section
4c106a
- Use xercesjarv instead of swift as verifier impl