2012-11-28 13:06:25 +00:00
|
|
|
Name: xmvn
|
2013-09-20 10:53:59 +00:00
|
|
|
Version: 1.0.2
|
2013-09-23 15:09:40 +00:00
|
|
|
Release: 2%{?dist}
|
2012-11-28 13:06:25 +00:00
|
|
|
Summary: Local Extensions for Apache Maven
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://mizdebsk.fedorapeople.org/xmvn
|
|
|
|
BuildArch: noarch
|
2012-12-03 21:41:49 +00:00
|
|
|
Source0: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.xz
|
2013-09-23 15:09:40 +00:00
|
|
|
Patch0: 0001-Don-t-try-to-relativize-symlink-targets.patch
|
2013-09-23 15:50:17 +00:00
|
|
|
Patch1: 0002-Try-to-resolve-cannonical-artifact-files.patch
|
|
|
|
Patch2: 0003-Restotre-support-for-relative-symlinks.patch
|
2012-11-28 13:06:25 +00:00
|
|
|
|
2013-07-23 11:04:31 +00:00
|
|
|
BuildRequires: maven >= 3.1.0
|
2013-02-05 13:32:02 +00:00
|
|
|
BuildRequires: maven-local
|
2013-01-11 19:06:00 +00:00
|
|
|
BuildRequires: beust-jcommander
|
2013-03-15 14:52:04 +00:00
|
|
|
BuildRequires: cglib
|
2013-05-24 08:25:51 +00:00
|
|
|
BuildRequires: maven-dependency-plugin
|
2013-05-31 14:48:20 +00:00
|
|
|
BuildRequires: maven-plugin-build-helper
|
2013-05-31 15:00:19 +00:00
|
|
|
BuildRequires: maven-assembly-plugin
|
2013-09-09 12:40:08 +00:00
|
|
|
BuildRequires: maven-invoker-plugin
|
2012-11-28 13:06:25 +00:00
|
|
|
|
2013-07-23 13:20:10 +00:00
|
|
|
Requires: maven >= 3.1.0
|
2012-11-28 13:06:25 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides extensions for Apache Maven that can be used to
|
|
|
|
manage system artifact repository and use it to resolve Maven
|
|
|
|
artifacts in offline mode, as well as Maven plugins to help with
|
|
|
|
creating RPM packages containing Maven artifacts.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package provides %{summary}.
|
|
|
|
|
|
|
|
%prep
|
2013-03-15 15:28:01 +00:00
|
|
|
%setup -q
|
2013-09-23 15:09:40 +00:00
|
|
|
%patch0 -p1
|
2013-09-23 15:50:17 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2013-05-24 15:24:19 +00:00
|
|
|
|
2013-03-15 14:52:04 +00:00
|
|
|
# Add cglib test dependency as a workaround for rhbz#911365
|
2013-09-09 12:40:08 +00:00
|
|
|
#pom_add_dep cglib:cglib::test %{name}-core
|
|
|
|
%pom_add_dep cglib:cglib %{name}-core
|
|
|
|
%pom_add_dep aopalliance:aopalliance %{name}-core
|
2013-05-24 08:25:51 +00:00
|
|
|
|
2013-09-09 12:40:08 +00:00
|
|
|
# remove dependency plugin maven-binaries execution
|
|
|
|
# we provide apache-maven by symlink
|
|
|
|
%pom_xpath_remove "pom:executions/pom:execution[pom:id[text()='maven-binaries']]"
|
2013-05-24 08:25:51 +00:00
|
|
|
|
|
|
|
# get mavenVersion that is expected
|
|
|
|
mver=$(sed -n '/<mavenVersion>/{s/.*>\(.*\)<.*/\1/;p}' \
|
|
|
|
xmvn-parent/pom.xml)
|
|
|
|
mkdir -p target/dependency/
|
|
|
|
ln -s %{_datadir}/maven target/dependency/apache-maven-$mver
|
2012-11-28 13:06:25 +00:00
|
|
|
|
2013-09-09 12:40:08 +00:00
|
|
|
|
|
|
|
# skip ITs for now (mix of old & new XMvn config causes issues
|
|
|
|
rm -rf src/it
|
|
|
|
|
2012-11-28 13:06:25 +00:00
|
|
|
%build
|
2013-03-15 14:52:04 +00:00
|
|
|
%mvn_build -X
|
2012-11-28 13:06:25 +00:00
|
|
|
|
2013-05-24 08:25:51 +00:00
|
|
|
tar --delay-directory-restore -xvf target/*tar.bz2
|
|
|
|
chmod -R +rwX %{name}-%{version}*
|
|
|
|
|
|
|
|
|
2012-11-28 13:06:25 +00:00
|
|
|
%install
|
2013-02-05 13:32:02 +00:00
|
|
|
%mvn_install
|
2012-11-28 13:06:25 +00:00
|
|
|
|
2013-09-23 15:09:40 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/%{name}
|
2013-09-09 12:40:08 +00:00
|
|
|
cp -r %{name}-%{version}*/* %{buildroot}%{_datadir}/%{name}/
|
2013-03-12 12:51:53 +00:00
|
|
|
ln -sf %{_datadir}/maven/bin/mvn %{buildroot}%{_datadir}/%{name}/bin/mvn
|
|
|
|
ln -sf %{_datadir}/maven/bin/mvnDebug %{buildroot}%{_datadir}/%{name}/bin/mvnDebug
|
|
|
|
ln -sf %{_datadir}/maven/bin/mvnyjp %{buildroot}%{_datadir}/%{name}/bin/mvnyjp
|
2012-11-28 14:27:28 +00:00
|
|
|
|
2013-05-24 08:25:51 +00:00
|
|
|
|
|
|
|
# helper scripts
|
|
|
|
install -d -m 755 %{buildroot}%{_bindir}
|
|
|
|
install -m 755 xmvn-tools/src/main/bin/tool-script \
|
|
|
|
%{buildroot}%{_datadir}/%{name}/bin/
|
|
|
|
|
2013-09-09 12:40:08 +00:00
|
|
|
for tool in subst resolve bisect install;do
|
2013-05-24 08:25:51 +00:00
|
|
|
rm %{buildroot}%{_datadir}/%{name}/bin/%{name}-$tool
|
|
|
|
ln -s tool-script \
|
|
|
|
%{buildroot}%{_datadir}/%{name}/bin/%{name}-$tool
|
|
|
|
|
|
|
|
cat <<EOF >%{buildroot}%{_bindir}/%{name}-$tool
|
|
|
|
#!/bin/sh -e
|
|
|
|
exec %{_datadir}/%{name}/bin/%{name}-$tool "\${@}"
|
|
|
|
EOF
|
|
|
|
chmod +x %{buildroot}%{_bindir}/%{name}-$tool
|
2013-09-09 12:40:08 +00:00
|
|
|
|
2013-05-24 08:25:51 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# copy over maven lib directory
|
|
|
|
cp -r %{_datadir}/maven/lib/* %{buildroot}%{_datadir}/%{name}/lib/
|
|
|
|
|
2013-09-23 15:09:40 +00:00
|
|
|
# possibly recreate symlinks that can be automated with xmvn-subst
|
|
|
|
%{name}-subst %{buildroot}%{_datadir}/%{name}/
|
2013-09-10 14:45:21 +00:00
|
|
|
for jar in core connector;do
|
|
|
|
ln -sf %{_javadir}/%{name}/%{name}-$jar.jar %{buildroot}%{_datadir}/%{name}/lib
|
|
|
|
done
|
2013-09-09 12:40:08 +00:00
|
|
|
|
|
|
|
for tool in subst resolver bisect installer;do
|
|
|
|
# sisu doesn't contain pom.properties. Manually replace with symlinks
|
|
|
|
pushd %{buildroot}%{_datadir}/%{name}/lib/$tool
|
|
|
|
rm org.eclipse.sisu*jar sisu-guice*jar
|
|
|
|
build-jar-repository . org.eclipse.sisu.inject \
|
|
|
|
org.eclipse.sisu.plexus \
|
|
|
|
guice/google-guice
|
|
|
|
popd
|
2013-07-22 07:07:19 +00:00
|
|
|
done
|
|
|
|
|
2013-09-09 12:40:08 +00:00
|
|
|
if [[ `find %{buildroot}%{_datadir}/%{name}/lib -type f -name '*.jar' -not -name '*%{name}*' | wc -l` -ne 0 ]];then
|
|
|
|
echo "Some jar files were not symlinked during build. Aborting"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2013-07-23 13:03:47 +00:00
|
|
|
|
2013-03-12 12:51:53 +00:00
|
|
|
# /usr/bin/xmvn script
|
|
|
|
cat <<EOF >%{buildroot}%{_bindir}/%{name}
|
|
|
|
#!/bin/sh -e
|
|
|
|
export M2_HOME="\${M2_HOME:-%{_datadir}/%{name}}"
|
2013-03-13 07:59:37 +00:00
|
|
|
exec mvn "\${@}"
|
2013-03-12 12:51:53 +00:00
|
|
|
EOF
|
2012-11-28 14:27:28 +00:00
|
|
|
|
2013-05-24 08:25:51 +00:00
|
|
|
# make sure our conf is identical to maven so yum won't freak out
|
|
|
|
cp -P %{_datadir}/maven/conf/settings.xml %{buildroot}%{_datadir}/%{name}/conf/
|
|
|
|
|
2013-05-29 08:01:20 +00:00
|
|
|
%pretrans -p <lua>
|
|
|
|
-- we changed symlink to dir in 0.5.0-1, workaround RPM issues
|
2013-09-09 12:40:08 +00:00
|
|
|
for key, dir in pairs({"conf", "conf/logging", "boot"}) do
|
2013-05-29 08:01:20 +00:00
|
|
|
path = "%{_datadir}/%{name}/" .. dir
|
|
|
|
if posix.readlink(path) then
|
|
|
|
os.remove(path)
|
|
|
|
end
|
|
|
|
end
|
2012-11-28 13:06:25 +00:00
|
|
|
|
2013-02-05 13:32:02 +00:00
|
|
|
%files -f .mfiles
|
2012-11-28 13:06:25 +00:00
|
|
|
%doc LICENSE NOTICE
|
|
|
|
%doc AUTHORS README
|
2013-03-13 07:59:37 +00:00
|
|
|
%attr(755,-,-) %{_bindir}/*
|
2013-02-05 13:32:02 +00:00
|
|
|
%{_datadir}/%{name}
|
2012-11-28 13:06:25 +00:00
|
|
|
|
2013-02-05 13:32:02 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2012-11-28 13:06:25 +00:00
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
%changelog
|
2013-09-23 15:09:40 +00:00
|
|
|
* Mon Sep 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.2-2
|
|
|
|
- Don't try to relativize symlink targets
|
2013-09-23 15:50:17 +00:00
|
|
|
- Restotre support for relative symlinks
|
2013-09-23 15:09:40 +00:00
|
|
|
|
2013-09-20 10:53:59 +00:00
|
|
|
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.2-1
|
|
|
|
- Update to upstream version 1.0.2
|
|
|
|
|
2013-09-10 14:45:21 +00:00
|
|
|
* Tue Sep 10 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.0-2
|
|
|
|
- Workaround broken symlinks for core and connector (#986909)
|
|
|
|
|
2013-09-09 12:40:08 +00:00
|
|
|
* Mon Sep 09 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0.0-1
|
|
|
|
- Updating to upstream 1.0.0
|
|
|
|
|
|
|
|
* Tue Sep 3 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> 1.0.0-0.2.alpha1
|
|
|
|
- Update to upstream version 1.0.0 alpha1
|
|
|
|
|
2013-08-04 08:42:23 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-23 13:20:10 +00:00
|
|
|
* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.5.1-3
|
|
|
|
- Rebuild without bootstrapping
|
|
|
|
|
2013-07-23 13:03:47 +00:00
|
|
|
* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.5.1-2
|
|
|
|
- Install symlink to simplelogger.properties in %{_sysconfdir}
|
|
|
|
|
2013-07-23 08:41:38 +00:00
|
|
|
* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.5.1-1
|
|
|
|
- Update to upstream version 0.5.1
|
|
|
|
|
2013-07-23 06:05:04 +00:00
|
|
|
* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.5.0-7
|
|
|
|
- Allow installation of Eclipse plugins in javadir
|
|
|
|
|
2013-07-22 07:07:19 +00:00
|
|
|
* Mon Jul 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.5.0-6
|
|
|
|
- Remove workaround for plexus-archiver bug
|
|
|
|
- Use sonatype-aether symlinks
|
|
|
|
|
2013-06-05 16:11:26 +00:00
|
|
|
* Wed Jun 5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.5.0-5
|
|
|
|
- Fix resolution of tools.jar
|
|
|
|
|
2013-05-31 14:26:09 +00:00
|
|
|
* Fri May 31 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-4
|
|
|
|
- Fix handling of packages with dots in groupId
|
|
|
|
- Previous versions also fixed bug #948731
|
|
|
|
|
2013-05-29 08:01:20 +00:00
|
|
|
* Tue May 28 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-3
|
|
|
|
- Move pre scriptlet to pretrans and implement in lua
|
|
|
|
|
2013-05-24 15:24:19 +00:00
|
|
|
* Fri May 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-2
|
|
|
|
- Fix upgrade path scriptlet
|
|
|
|
- Add patch to fix NPE when debugging is disabled
|
|
|
|
|
2013-05-24 08:25:51 +00:00
|
|
|
* Fri May 24 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-1
|
|
|
|
- Update to upstream version 0.5.0
|
|
|
|
|
2013-05-17 05:24:33 +00:00
|
|
|
* Fri May 17 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.2-3
|
|
|
|
- Add patch: install MOJO fix
|
|
|
|
|
2013-04-17 16:54:37 +00:00
|
|
|
* Wed Apr 17 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.2-2
|
|
|
|
- Update plexus-containers-container-default JAR location
|
|
|
|
|
2013-04-09 18:32:47 +00:00
|
|
|
* Tue Apr 9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.2-1
|
|
|
|
- Update to upstream version 0.4.2
|
|
|
|
|
2013-03-21 11:54:24 +00:00
|
|
|
* Thu Mar 21 2013 Michal Srb <msrb@redhat.com> - 0.4.1-1
|
|
|
|
- Update to upstream version 0.4.1
|
|
|
|
|
2013-03-15 14:59:20 +00:00
|
|
|
* Fri Mar 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-1
|
|
|
|
- Update to upstream version 0.4.0
|
|
|
|
|
2013-03-15 14:52:04 +00:00
|
|
|
* Fri Mar 15 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.7
|
|
|
|
- Enable tests
|
|
|
|
|
2013-03-14 10:12:30 +00:00
|
|
|
* Thu Mar 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.6
|
|
|
|
- Update to newer snapshot
|
|
|
|
|
2013-03-13 15:32:46 +00:00
|
|
|
* Wed Mar 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.5
|
|
|
|
- Update to newer snapshot
|
|
|
|
|
2013-03-13 07:59:37 +00:00
|
|
|
* Wed Mar 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.4
|
|
|
|
- Set proper permissions for scripts in _bindir
|
|
|
|
|
2013-03-12 12:51:53 +00:00
|
|
|
* Tue Mar 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.3
|
|
|
|
- Update to new upstream snapshot
|
|
|
|
- Create custom /usr/bin/xmvn instead of using %%jpackage_script
|
|
|
|
- Mirror maven directory structure
|
|
|
|
- Add Plexus Classworlds config file
|
|
|
|
|
2013-03-06 15:52:10 +00:00
|
|
|
* Wed Mar 6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.2
|
|
|
|
- Update to newer snapshot
|
|
|
|
|
2013-03-06 08:54:04 +00:00
|
|
|
* Wed Mar 6 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.4.0-0.1
|
|
|
|
- Update to upstream snapshot of version 0.4.0
|
|
|
|
|
2013-02-25 07:35:27 +00:00
|
|
|
* Mon Feb 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.3.1-2
|
|
|
|
- Install effective POMs into a separate directory
|
|
|
|
|
2013-02-07 14:29:46 +00:00
|
|
|
* Thu Feb 7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.3.1-1
|
|
|
|
- Update to upstream version 0.3.1
|
|
|
|
|
2013-02-05 13:32:02 +00:00
|
|
|
* Tue Feb 5 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.3.0-1
|
|
|
|
- Update to upstream version 0.3.0
|
|
|
|
- Don't rely on JPP symlinks when resolving artifacts
|
|
|
|
- Blacklist more artifacts
|
|
|
|
- Fix dependencies
|
|
|
|
|
2013-01-24 13:05:08 +00:00
|
|
|
* Thu Jan 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.2.6-1
|
|
|
|
- Update to upstream version 0.2.6
|
|
|
|
|
2013-01-21 16:45:24 +00:00
|
|
|
* Mon Jan 21 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.2.5-1
|
|
|
|
- Update to upstream version 0.2.5
|
|
|
|
|
2013-01-11 19:06:00 +00:00
|
|
|
* Fri Jan 11 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.2.4-1
|
|
|
|
- Update to upstream version 0.2.4
|
|
|
|
|
2013-01-09 13:40:18 +00:00
|
|
|
* Wed Jan 9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.2.3-1
|
|
|
|
- Update to upstream version 0.2.3
|
|
|
|
|
2013-01-08 16:40:29 +00:00
|
|
|
* Tue Jan 8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.2.2-1
|
|
|
|
- Update to upstream version 0.2.2
|
|
|
|
|
2013-01-08 14:42:17 +00:00
|
|
|
* Tue Jan 8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.2.1-1
|
|
|
|
- Update to upstream version 0.2.1
|
|
|
|
|
2013-01-07 19:07:54 +00:00
|
|
|
* Mon Jan 7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.2.0-1
|
|
|
|
- Update to upstream version 0.2.0
|
|
|
|
- New major features: depmaps, compat symlinks, builddep MOJO
|
|
|
|
- Install effective POMs for non-POM artifacts
|
|
|
|
- Multiple major and minor bugfixes
|
|
|
|
- Drop support for resolving artifacts from %%_javajnidir
|
|
|
|
|
2012-12-07 17:13:24 +00:00
|
|
|
* Fri Dec 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.5-1
|
|
|
|
- Update to upstream version 0.1.5
|
|
|
|
|
2012-12-07 17:00:54 +00:00
|
|
|
* Fri Dec 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.4-1
|
|
|
|
- Update to upstream version 0.1.4
|
|
|
|
|
2012-12-07 16:22:37 +00:00
|
|
|
* Fri Dec 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.3-1
|
|
|
|
- Update to upstream version 0.1.3
|
|
|
|
|
2012-12-07 14:09:27 +00:00
|
|
|
* Fri Dec 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.2-1
|
|
|
|
- Update to upstream version 0.1.2
|
|
|
|
|
2012-12-07 12:53:06 +00:00
|
|
|
* Fri Dec 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.1-1
|
|
|
|
- Update to upstream version 0.1.1
|
|
|
|
|
2012-12-06 16:23:37 +00:00
|
|
|
* Thu Dec 6 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.1.0-1
|
|
|
|
- Update to upstream version 0.1.0
|
2012-12-07 12:53:06 +00:00
|
|
|
- Implement auto requires generator
|
2012-12-06 16:23:37 +00:00
|
|
|
|
2012-12-03 21:41:49 +00:00
|
|
|
* Mon Dec 3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.2-1
|
|
|
|
- Update to upstream version 0.0.2
|
|
|
|
|
2012-11-29 10:33:25 +00:00
|
|
|
* Thu Nov 29 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.1-1
|
|
|
|
- Update to upstream version 0.0.1
|
|
|
|
|
2012-11-28 14:27:28 +00:00
|
|
|
* Wed Nov 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-2
|
|
|
|
- Add jpackage scripts
|
|
|
|
|
2012-11-28 13:06:25 +00:00
|
|
|
* Mon Nov 5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-1
|
|
|
|
- Initial packaging
|