|
|
f837e3e |
# Copyright (c) 2000-2005, JPackage Project
|
|
|
f837e3e |
# All rights reserved.
|
|
|
f837e3e |
#
|
|
|
f837e3e |
# Redistribution and use in source and binary forms, with or without
|
|
|
f837e3e |
# modification, are permitted provided that the following conditions
|
|
|
f837e3e |
# are met:
|
|
|
f837e3e |
#
|
|
|
f837e3e |
# 1. Redistributions of source code must retain the above copyright
|
|
|
f837e3e |
# notice, this list of conditions and the following disclaimer.
|
|
|
f837e3e |
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
f837e3e |
# notice, this list of conditions and the following disclaimer in the
|
|
|
f837e3e |
# documentation and/or other materials provided with the
|
|
|
f837e3e |
# distribution.
|
|
|
f837e3e |
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
f837e3e |
# contributors may be used to endorse or promote products derived
|
|
|
f837e3e |
# from this software without specific prior written permission.
|
|
|
f837e3e |
#
|
|
|
f837e3e |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
f837e3e |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
f837e3e |
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
f837e3e |
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
f837e3e |
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
f837e3e |
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
f837e3e |
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
f837e3e |
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
f837e3e |
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
f837e3e |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
f837e3e |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
f837e3e |
#
|
|
|
f837e3e |
|
|
|
f837e3e |
Name: maven-scm
|
|
|
066120b |
Version: 1.6
|
|
|
61130b2 |
Release: 2%{?dist}
|
|
|
f837e3e |
Summary: Common API for doing SCM operations
|
|
|
2191e0e |
License: ASL 2.0
|
|
Andrew Overholt |
e1f36ff |
Group: Development/Libraries
|
|
|
f837e3e |
URL: http://maven.apache.org/scm
|
|
|
f837e3e |
|
|
|
f0134dd |
Source0: http://repo1.maven.org/maven2/org/apache/maven/scm/%{name}/%{version}/%{name}-%{version}-source-release.zip
|
|
|
f837e3e |
Source1: %{name}-jpp-depmap.xml
|
|
|
f837e3e |
|
|
|
ec5712d |
# fix modello configuration in vss provider pom and the cast as above
|
|
|
066120b |
Patch0: 005_maven-scm_fix-vss-provider-pom.patch
|
|
|
066120b |
# replace plexus-maven-plugin for plexus-component-metadata
|
|
|
066120b |
Patch1: 007_maven-scm_migration-to-component-metadata.patch
|
|
|
066120b |
# remove cvsjava from providers-cvs
|
|
|
066120b |
Patch2: 008-Partially-remove-cvs-support-for-removing-of-netbean.patch
|
|
|
066120b |
# remove providers-integrity from build (required mks-api packaged for it)
|
|
|
066120b |
Patch3: 009-remove-providers-integrity.patch
|
|
|
066120b |
# set source encoding (tests fail)
|
|
|
066120b |
Patch4: 010-set-project-sourceenoding.patch
|
|
Andrew Overholt |
e1f36ff |
|
|
|
f837e3e |
BuildArch: noarch
|
|
|
49354bd |
|
|
|
f837e3e |
BuildRequires: jpackage-utils >= 0:1.6
|
|
|
f0134dd |
BuildRequires: maven
|
|
|
b56a6ff |
BuildRequires: maven-compiler-plugin
|
|
|
b56a6ff |
BuildRequires: maven-install-plugin
|
|
|
b56a6ff |
BuildRequires: maven-jar-plugin
|
|
|
b56a6ff |
BuildRequires: maven-javadoc-plugin
|
|
|
b56a6ff |
BuildRequires: maven-plugin-plugin
|
|
|
b56a6ff |
BuildRequires: maven-resources-plugin
|
|
|
b56a6ff |
BuildRequires: maven-assembly-plugin
|
|
|
ec5712d |
BuildRequires: maven-site-plugin
|
|
|
ec5712d |
BuildRequires: maven-invoker-plugin
|
|
|
f0134dd |
BuildRequires: maven-surefire-plugin
|
|
|
000a6ba |
BuildRequires: maven-surefire-provider-junit
|
|
|
ec5712d |
BuildRequires: maven-surefire-provider-junit4
|
|
|
ec5712d |
BuildRequires: maven2-common-poms >= 0:1.0-21
|
|
|
ec5712d |
BuildRequires: modello >= 1.1
|
|
|
ec5712d |
BuildRequires: plexus-utils >= 1.5.6
|
|
|
b56a6ff |
BuildRequires: maven-plugin-testing-harness
|
|
|
f3e3674 |
BuildRequires: maven-doxia-sitetools
|
|
|
ec5712d |
BuildRequires: plexus-interpolation
|
|
|
a30fd7a |
BuildRequires: bzr
|
|
|
f0134dd |
BuildRequires: subversion
|
|
Jaromir Capik |
b693f80 |
BuildRequires: plexus-containers-component-metadata
|
|
|
ec5712d |
BuildRequires: plexus-classworlds
|
|
|
066120b |
BuildRequires: mockito
|
|
|
f837e3e |
|
|
|
f837e3e |
Requires: junit >= 3.8.2
|
|
|
f0134dd |
Requires: apache-commons-collections >= 3.1
|
|
|
f837e3e |
Requires: modello >= 1.0-0.a8
|
|
|
20d89cb |
Requires: jakarta-oro >= 2.0.8
|
|
|
f837e3e |
Requires: plexus-utils >= 1.2
|
|
|
f837e3e |
Requires: velocity >= 1.4
|
|
|
f0134dd |
Requires: maven
|
|
|
f837e3e |
|
|
|
f837e3e |
%description
|
|
|
f0134dd |
Maven SCM supports Maven plugins (e.g. maven-release-plugin) and other
|
|
|
066120b |
tools (e.g. Continuum) in providing them a common API for doing SCM operations.
|
|
|
f837e3e |
|
|
|
f837e3e |
%package test
|
|
|
f837e3e |
Summary: Tests for %{name}
|
|
Andrew Overholt |
e1f36ff |
Group: Development/Tools
|
|
|
a2be211 |
Requires: maven-scm = %{version}-%{release}
|
|
|
f837e3e |
|
|
|
f837e3e |
%description test
|
|
|
f837e3e |
Tests for %{name}.
|
|
|
f837e3e |
|
|
|
f837e3e |
%package javadoc
|
|
|
f837e3e |
Summary: Javadoc for %{name}
|
|
Andrew Overholt |
e1f36ff |
Group: Documentation
|
|
|
f0134dd |
Requires: jpackage-utils
|
|
|
f837e3e |
|
|
|
f837e3e |
%description javadoc
|
|
|
f837e3e |
Javadoc for %{name}.
|
|
|
f837e3e |
|
|
|
f837e3e |
%prep
|
|
Stanislav Ochotnicky |
a4a0859 |
%setup -q
|
|
|
ec5712d |
%patch0 -p1
|
|
|
ec5712d |
%patch1 -p1
|
|
|
f0134dd |
%patch2 -p1
|
|
|
ec5712d |
%patch3 -p1
|
|
Jaromir Capik |
b693f80 |
%patch4 -p1
|
|
|
f837e3e |
|
|
|
ec5712d |
# We dont have mockito, needed for accurev tests, disable for now
|
|
|
ec5712d |
find maven-scm-providers/maven-scm-provider-accurev/src/test/java/org/apache/maven/scm/provider/accurev -type f -name "*Test*" -exec rm -f '{}' \;
|
|
|
f837e3e |
|
|
Stanislav Ochotnicky |
aa5f38c |
|
|
|
a30fd7a |
%build
|
|
Jaromir Capik |
b693f80 |
|
|
|
61130b2 |
mvn-rpmbuild \
|
|
Stanislav Ochotnicky |
aa5f38c |
-Dmaven.test.skip=true \
|
|
|
f0134dd |
-Dmaven.local.depmap.file=%{SOURCE1} \
|
|
|
ec5712d |
install javadoc:aggregate
|
|
|
f837e3e |
|
|
|
f837e3e |
%install
|
|
|
f837e3e |
# jars/poms
|
|
|
f837e3e |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
|
|
|
f0134dd |
install -d -m 755 $RPM_BUILD_ROOT/%{_mavenpomdir}
|
|
|
f837e3e |
|
|
|
f837e3e |
for jar in `find . -type f -name "*.jar" | grep -E "target/.*.jar$"`; do
|
|
Stanislav Ochotnicky |
a4a0859 |
newname=`basename $jar`
|
|
Stanislav Ochotnicky |
a4a0859 |
newname=${newname/maven-scm-/}
|
|
Stanislav Ochotnicky |
a4a0859 |
versionless_jar=${newname/-%{version}/}
|
|
Stanislav Ochotnicky |
a4a0859 |
install -pm 644 $jar $RPM_BUILD_ROOT%{_javadir}/%{name}/$versionless_jar
|
|
|
f837e3e |
done
|
|
|
f837e3e |
|
|
|
61130b2 |
#remove maven-scm CLI jar-with-dependencies created by maven-assembly-plugin
|
|
|
61130b2 |
rm $RPM_BUILD_ROOT%{_javadir}/%{name}/client-jar-with-dependencies.jar
|
|
|
61130b2 |
|
|
|
61130b2 |
#poms (exclude the svn/cvs test poms. They are unnecessary)
|
|
Stanislav Ochotnicky |
a4a0859 |
# ignore
|
|
|
f837e3e |
# 1) poms in target/ (they are either copies, or temps)
|
|
|
f837e3e |
# 2) poms in src/test/ (they are poms needed for tests only)
|
|
|
f837e3e |
for i in `find . -name pom.xml | grep -v \\\./pom.xml | \
|
|
|
f837e3e |
grep -v target | grep -v src/test`; do
|
|
|
f837e3e |
artifactname=`basename \`dirname $i\``
|
|
|
f837e3e |
jarname=`echo $artifactname | sed -e s:^maven-scm-::g`
|
|
Stanislav Ochotnicky |
a4a0859 |
cp -p $i $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.$artifactname.pom
|
|
|
f0134dd |
%add_to_maven_depmap org.apache.maven.scm $artifactname %{version} JPP/%{name} $jarname
|
|
|
f837e3e |
done
|
|
Stanislav Ochotnicky |
a4a0859 |
cp -p pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.maven-scm-scm.pom
|
|
|
f0134dd |
%add_to_maven_depmap org.apache.maven.scm maven-scm %{version} JPP/maven-scm scm
|
|
|
f837e3e |
|
|
|
f0134dd |
%add_to_maven_depmap org.apache.maven.plugins maven-scm-plugin %{version} JPP/maven-scm plugin
|
|
|
6cc4d58 |
|
|
|
f837e3e |
# javadoc
|
|
|
b56a6ff |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
b56a6ff |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
61130b2 |
# we dont want this distributed
|
|
|
61130b2 |
rm $RPM_BUILD_ROOT%{_javadocdir}/%{name}/javadoc.sh
|
|
|
f837e3e |
|
|
|
f837e3e |
%files
|
|
|
f837e3e |
%dir %{_javadir}/%{name}
|
|
|
f837e3e |
%{_javadir}/%{name}/api*
|
|
|
f837e3e |
%{_javadir}/%{name}/client*
|
|
|
f837e3e |
%{_javadir}/%{name}/manager-plexus*
|
|
|
f837e3e |
%{_javadir}/%{name}/plugin*
|
|
|
a30fd7a |
%{_javadir}/%{name}/provider-*
|
|
|
8617ec0 |
%{_mavenpomdir}/*
|
|
|
8617ec0 |
%{_mavendepmapfragdir}/*
|
|
|
f837e3e |
|
|
|
f837e3e |
%files test
|
|
|
f837e3e |
%{_javadir}/%{name}/provider-cvstest*
|
|
|
f837e3e |
%{_javadir}/%{name}/provider-svntest*
|
|
|
f837e3e |
%{_javadir}/%{name}/test*
|
|
|
f837e3e |
|
|
|
f837e3e |
%files javadoc
|
|
|
f837e3e |
%{_javadocdir}/*
|
|
|
f837e3e |
|
|
|
f837e3e |
%changelog
|
|
|
61130b2 |
* Mon Apr 23 2012 Guido Grazioli <guido.grazioli@gmail.com> - 1.6-2
|
|
|
61130b2 |
- Remove -client-with-dependencies jar to get rid of duplicate libraries
|
|
|
61130b2 |
- Switch off maven execution debug output
|
|
|
61130b2 |
|
|
|
066120b |
* Mon Apr 09 2012 Guido Grazioli <guido.grazioli@gmail.com> - 1.6-1
|
|
|
066120b |
- Update to 1.6 release
|
|
|
066120b |
- Fix typo in description
|
|
|
066120b |
- Remove unused patches 001 (mockito now available), 004 and 006
|
|
|
066120b |
- Update patch 007 (plexus-containers-component-metadata)
|
|
|
066120b |
- Move source encoding setting to separate patch
|
|
|
066120b |
|
|
Stanislav Ochotnicky |
aa5f38c |
* Fri Feb 3 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.5-5
|
|
Stanislav Ochotnicky |
aa5f38c |
- Remove cvsjava provider to get rid of netbeans-cvsclient dep
|
|
Stanislav Ochotnicky |
aa5f38c |
|
|
|
0b063a0 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4
|
|
|
0b063a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
0b063a0 |
|
|
|
a2be211 |
* Fri Nov 18 2011 Bruno Wolff III <bruno@wolff.to> 1.5-3
|
|
|
a2be211 |
- Fix issue with bad requires by maven-scm-test
|
|
|
a2be211 |
|
|
Jaromir Capik |
b693f80 |
* Tue Nov 15 2011 Jaromir Capik <jcapik@redhat.com> 1.5-2
|
|
Jaromir Capik |
b693f80 |
- Migration from plexus-maven-plugin to plexus-containers-component-metadata
|
|
Jaromir Capik |
b693f80 |
|
|
|
f0134dd |
* Tue Apr 5 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.5-1
|
|
|
f0134dd |
- Update to upstream 1.5 release.
|
|
|
f0134dd |
- Build with maven 3.
|
|
|
f0134dd |
|
|
|
7e9eb69 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-6
|
|
|
7e9eb69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
7e9eb69 |
|
|
Stanislav Ochotnicky |
a4a0859 |
* Tue Jan 11 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.4-5
|
|
Stanislav Ochotnicky |
a4a0859 |
- Drop buildroot definition
|
|
Stanislav Ochotnicky |
a4a0859 |
- Use mavenpomdir macro
|
|
Stanislav Ochotnicky |
a4a0859 |
- Make jars versionless (for real)
|
|
Stanislav Ochotnicky |
a4a0859 |
|
|
|
b56a6ff |
* Mon Jan 3 2011 Alexander Kurtakov <akurtako@redhat.com> 0:1.4-4
|
|
|
b56a6ff |
- Drop tomcat BRs.
|
|
|
b56a6ff |
- No more versioned jar and javadoc.
|
|
|
b56a6ff |
|
|
|
2d5adcb |
* Wed Sep 08 2010 Guido Grazioli <guido.grazioli@gmail.com> 0:1.4-2
|
|
|
2d5adcb |
- Fix BR
|
|
|
2d5adcb |
- Remove unused patch
|
|
|
2d5adcb |
|
|
|
ec5712d |
* Tue Sep 07 2010 Guido Grazioli <guido.grazioli@gmail.com> 0:1.4-1
|
|
|
2d5adcb |
- Update to upstream 1.4 (#626455)
|
|
|
ec5712d |
- Require netbeans-cvsclient instead of netbeans-ide (#572165)
|
|
|
ec5712d |
|
|
|
8617ec0 |
* Mon May 10 2010 Guido Grazioli <guido.grazioli@gmail.com> 0:1.2-6
|
|
|
8617ec0 |
- Link netbeans-lib-cvsclient jar in the right place.
|
|
|
8617ec0 |
- Switch to xz compression.
|
|
|
8617ec0 |
- Sanitize files owned.
|
|
|
8617ec0 |
- Use %%global.
|
|
|
8617ec0 |
|
|
|
20d89cb |
* Mon Feb 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-5
|
|
|
20d89cb |
- Fix BR/Rs for netbeans-ide[version] to netbeans-ide rename.
|
|
|
20d89cb |
|
|
|
6cc4d58 |
* Thu Sep 17 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-4
|
|
|
6cc4d58 |
- Fix maven-scm-plugin depmap.
|
|
|
6cc4d58 |
|
|
|
000a6ba |
* Sat Sep 12 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-3
|
|
|
000a6ba |
- BR maven-surefire-provider-junit.
|
|
|
2a43966 |
- BR plexus-maven-plugin.
|
|
|
85b2614 |
- BR maven2-plugin-assembly.
|
|
|
000a6ba |
|
|
|
f3e3674 |
* Sat Sep 12 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-2
|
|
|
f3e3674 |
- Add doxia-sitetools BR.
|
|
|
f3e3674 |
|
|
|
a30fd7a |
* Sat Sep 12 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-1
|
|
|
a30fd7a |
- Update to upstream 1.2.
|
|
|
a30fd7a |
|
|
Andrew Overholt |
77de9b2 |
* Tue Sep 01 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.5.rc1.2
|
|
Andrew Overholt |
77de9b2 |
- Bump release
|
|
Andrew Overholt |
77de9b2 |
|
|
Andrew Overholt |
22c9331 |
* Tue Sep 01 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.5.rc1.1
|
|
Andrew Overholt |
78ab0f7 |
- Add tomcat5, tomcat5-servlet-2.4-api,
|
|
Andrew Overholt |
78ab0f7 |
maven-shared-plugin-testing-harness, and tomcat5-jsp-2.0-api BRs
|
|
Andrew Overholt |
22c9331 |
|
|
Andrew Overholt |
e1f36ff |
* Mon Aug 31 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.5.rc1
|
|
Andrew Overholt |
e1f36ff |
- 1.0 RC1 (courtesy Deepak Bhole)
|
|
Andrew Overholt |
e1f36ff |
- Remove gcj support
|
|
Andrew Overholt |
e1f36ff |
- Add netbeans-ide11 requirement
|
|
Andrew Overholt |
e1f36ff |
- Change name on surefire plugin BR
|
|
Andrew Overholt |
e1f36ff |
|
|
|
5fb1f85 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.4.b3.1.7
|
|
|
5fb1f85 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
5fb1f85 |
|
|
|
798da44 |
* Mon Mar 23 2009 Deepak Bhole <dbhole@redhat.com> - 0:1.0-0.3.b3.1.7
|
|
|
798da44 |
- Remove ppc64 arch exclusion
|
|
|
798da44 |
|
|
|
8c85d0c |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.3.b3.1.6
|
|
|
8c85d0c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
8c85d0c |
|
|
|
3f631cc |
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.2.b3.1.6
|
|
|
3f631cc |
- drop repotag
|
|
|
3f631cc |
|
|
|
5c6c4f6 |
* Thu Jun 26 2008 Deepak Bhole <dbhole@redhat.com> 1.0-0.2.b3.1jpp.5
|
|
|
5c6c4f6 |
- Fix mapping for the scm plugin
|
|
|
5c6c4f6 |
|
|
|
2191e0e |
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-0.2.b3.1jpp.4
|
|
|
2191e0e |
- fix license tag
|
|
|
2191e0e |
|
|
|
4f23a82 |
* Thu Feb 28 2008 Deepak Bhole <dbhole@redhat.com> 1.0-0.2.b3.1jpp.3
|
|
|
4f23a82 |
- Rebuild
|
|
|
7493525 |
|
|
|
49354bd |
* Fri Sep 21 2007 Deepak Bhole <dbhole@redhat.com> 0:1.0-0.1.b3.2jpp.2
|
|
|
49354bd |
- Rebuild with excludearch for ppc64
|
|
|
49354bd |
|
|
|
f837e3e |
* Tue Feb 27 2007 Tania Bento <tbento@redhat.com> 0:1.0-0.1.b3.2jpp.1
|
|
|
f837e3e |
- Fixed %%Release.
|
|
|
f837e3e |
- Fixed %%BuildRoot.
|
|
|
f837e3e |
- Removed %%Vendor.
|
|
|
f837e3e |
- Removed %%Distribution.
|
|
|
f837e3e |
- Removed %%post and %%postun sections for javadoc.
|
|
|
f837e3e |
- Fixed instructions on how to generate source drop.
|
|
|
f837e3e |
- Marked documentation files as %%doc in %%files section.
|
|
|
f837e3e |
- Fixed %%Summary.
|
|
|
f837e3e |
- Fixed %%description.
|
|
|
f837e3e |
|
|
|
f837e3e |
* Tue Oct 17 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.0-0.b3.2jpp
|
|
|
f837e3e |
- Update for maven 9jpp.
|
|
|
f837e3e |
|
|
|
f837e3e |
* Tue Sep 18 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.0-0.b3.1jpp
|
|
|
f837e3e |
- Initial build
|