Blame SPECS/isorelax.spec

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