xmvn/xmvn.spec

102 lines
2.9 KiB
RPMSpec
Raw Normal View History

2012-11-28 13:06:25 +00:00
Name: xmvn
2012-12-07 14:09:27 +00:00
Version: 0.1.2
2012-11-29 10:33:25 +00:00
Release: 1%{?dist}
2012-11-28 13:06:25 +00:00
Summary: Local Extensions for Apache Maven
Group: Development/Libraries
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
2012-11-28 13:06:25 +00:00
BuildRequires: jpackage-utils
BuildRequires: maven
BuildRequires: plexus-classworlds
Requires: jpackage-utils
Requires: maven
Requires: plexus-classworlds
%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}
Group: Documentation
Requires: jpackage-utils
%description javadoc
This package provides %{summary}.
%prep
%setup -q
%build
mvn-rpmbuild verify javadoc:aggregate
%install
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -d -m 755 %{buildroot}%{_javadir}/%{name}
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
# POMs, JARs, depmaps
for dir in $(find -name pom.xml -exec dirname {} \;); do
pushd $dir
aid=$(sed -n '/^ <artifactId/{s/[^>]*>//;s/<.*//;p}' pom.xml)
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-${aid}.pom
if [ -f target/*.jar ]; then
install -p -m 644 target/*.jar %{buildroot}%{_javadir}/%{name}/${aid}.jar
%add_maven_depmap JPP.%{name}-${aid}.pom %{name}/${aid}.jar
else
%add_maven_depmap JPP.%{name}-${aid}.pom
fi
popd
done
# API documentation
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
2012-11-28 14:27:28 +00:00
# /usr/bin/xmvn script
%jpackage_script org.fedoraproject.maven.Launcher "" "" %{name}/%{name}-launcher:plexus/classworlds %{name} false
# /usr/bin/xmvn-resolve script
%jpackage_script org.fedoraproject.maven.tools.resolver.ResolverCli "" "" %{name}/%{name}-core:%{name}/%{name}-resolve %{name}-resolve true
2012-11-28 13:06:25 +00:00
%files
%doc LICENSE NOTICE
%doc AUTHORS README
2012-11-28 14:27:28 +00:00
%{_bindir}/*
2012-11-28 13:06:25 +00:00
%{_mavenpomdir}/*
%{_javadir}/%{name}
%{_mavendepmapfragdir}/%{name}
%files javadoc
%doc LICENSE NOTICE
%{_javadocdir}/%{name}
%changelog
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