2011-09-26 17:55:15 +00:00
|
|
|
Name: aqute-bnd
|
2016-05-26 16:18:57 +00:00
|
|
|
Version: 3.2.0
|
2016-09-26 08:23:47 +00:00
|
|
|
Release: 4%{?dist}
|
2011-09-26 17:55:15 +00:00
|
|
|
Summary: BND Tool
|
|
|
|
License: ASL 2.0
|
2016-09-26 06:39:05 +00:00
|
|
|
URL: http://bnd.bndtools.org/
|
2011-09-26 17:55:15 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-05-26 16:18:57 +00:00
|
|
|
Source0: %{version}.REL.tar.gz
|
|
|
|
# removes bundled jars from upstream tarball
|
|
|
|
# run as:
|
|
|
|
# ./repack-tarball.sh
|
|
|
|
Source1: repack-tarball.sh
|
|
|
|
|
|
|
|
Source2: parent.pom
|
|
|
|
Source3: https://repo1.maven.org/maven2/biz/aQute/bnd/aQute.libg/%{version}/aQute.libg-%{version}.pom
|
|
|
|
Source4: https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd/%{version}/biz.aQute.bnd-%{version}.pom
|
|
|
|
Source5: https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/%{version}/biz.aQute.bndlib-%{version}.pom
|
|
|
|
Source6: https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd.annotation/%{version}/biz.aQute.bnd.annotation-%{version}.pom
|
2011-09-26 17:55:15 +00:00
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
Patch0: 0001-Port-to-Java-8.patch
|
2016-05-26 16:18:57 +00:00
|
|
|
Patch1: 0002-Remove-unavailable-parts.patch
|
2016-09-26 08:23:47 +00:00
|
|
|
Patch2: 0003-Use-felix-annotations.patch
|
2015-07-08 13:07:19 +00:00
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(ant:ant)
|
2016-09-26 08:23:47 +00:00
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
BuildRequires: mvn(org.apache.felix:org.apache.felix.framework)
|
|
|
|
BuildRequires: mvn(org.apache.felix:org.apache.felix.scr.annotations)
|
|
|
|
BuildRequires: mvn(org.apache.felix:org.osgi.compendium)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-artifact)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-compat)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-core)
|
|
|
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
2016-09-14 15:55:28 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
|
2016-09-26 08:23:47 +00:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
|
|
|
BuildRequires: mvn(org.eclipse.aether:aether-api)
|
|
|
|
BuildRequires: mvn(org.osgi:org.osgi.annotation)
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
|
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
|
|
|
|
|
2011-09-26 17:55:15 +00:00
|
|
|
|
|
|
|
%description
|
2015-07-08 13:07:19 +00:00
|
|
|
The bnd tool helps you create and diagnose OSGi bundles.
|
2011-09-26 17:55:15 +00:00
|
|
|
The key functions are:
|
|
|
|
- Show the manifest and JAR contents of a bundle
|
|
|
|
- Wrap a JAR so that it becomes a bundle
|
|
|
|
- Create a Bundle from a specification and a class path
|
|
|
|
- Verify the validity of the manifest entries
|
|
|
|
The tool is capable of acting as:
|
|
|
|
- Command line tool
|
|
|
|
- File format
|
|
|
|
- Directives
|
|
|
|
- Use of macros
|
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
%package -n aqute-bndlib
|
|
|
|
Summary: BND library
|
|
|
|
|
|
|
|
%description -n aqute-bndlib
|
|
|
|
%{summary}.
|
|
|
|
|
2016-09-14 15:55:28 +00:00
|
|
|
%package -n bnd-maven-plugin
|
|
|
|
Summary: BND Maven plugin
|
|
|
|
|
|
|
|
%description -n bnd-maven-plugin
|
|
|
|
%{summary}.
|
|
|
|
|
2011-09-26 17:55:15 +00:00
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
2015-07-08 13:07:19 +00:00
|
|
|
API documentation for %{name}.
|
2011-09-26 17:55:15 +00:00
|
|
|
|
|
|
|
%prep
|
2015-07-08 13:07:19 +00:00
|
|
|
%setup -q -n bnd-%{version}.REL
|
|
|
|
|
|
|
|
rm gradlew*
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2016-09-26 08:23:47 +00:00
|
|
|
%patch2 -p1
|
2016-05-26 16:18:57 +00:00
|
|
|
|
|
|
|
# unavailable dependencies
|
|
|
|
rm -r biz.aQute.bndlib/src/aQute/bnd/{metatype,service/message,osgi/repository}
|
|
|
|
rm biz.aQute.bnd/src/aQute/bnd/main/{RemoteCommand,ReporterLogger,ResolveCommand}.java
|
|
|
|
|
|
|
|
find -name package-info.java -delete
|
2015-07-08 13:07:19 +00:00
|
|
|
|
|
|
|
# reference to Base64 is ambiguous
|
2016-05-26 16:18:57 +00:00
|
|
|
#find -name '*.java' -not -name 'Base64.java' | xargs sed -i 's/\<Base64\>/aQute.lib.base64.Base64/g'
|
2015-07-08 13:07:19 +00:00
|
|
|
|
2016-05-26 16:18:57 +00:00
|
|
|
sed 's/@VERSION@/%{version}/' %SOURCE2 > pom.xml
|
|
|
|
sed -i 's|${Bundle-Version}|%{version}|' biz.aQute.bndlib/src/aQute/bnd/osgi/bnd.info
|
|
|
|
|
|
|
|
# libg
|
|
|
|
pushd aQute.libg
|
|
|
|
cp -p %{SOURCE3} pom.xml
|
|
|
|
%pom_add_parent biz.aQute.bnd:parent:%{version}
|
|
|
|
popd
|
|
|
|
|
|
|
|
# bnd
|
2015-07-08 13:07:19 +00:00
|
|
|
pushd biz.aQute.bnd
|
2016-05-26 16:18:57 +00:00
|
|
|
cp -p %{SOURCE4} pom.xml
|
2015-07-08 13:07:19 +00:00
|
|
|
%pom_add_parent biz.aQute.bnd:parent:%{version}
|
|
|
|
|
|
|
|
%pom_add_dep ant:ant
|
|
|
|
%pom_add_dep biz.aQute.bnd:biz.aQute.bndlib:%{version}
|
2011-09-26 17:55:15 +00:00
|
|
|
popd
|
|
|
|
|
2016-05-26 16:18:57 +00:00
|
|
|
# bndlib
|
2015-07-08 13:07:19 +00:00
|
|
|
pushd biz.aQute.bndlib
|
2016-05-26 16:18:57 +00:00
|
|
|
cp -p %{SOURCE5} pom.xml
|
2015-07-08 13:07:19 +00:00
|
|
|
%pom_add_parent biz.aQute.bnd:parent:%{version}
|
|
|
|
|
2016-09-26 08:23:47 +00:00
|
|
|
%pom_add_dep org.apache.felix:org.apache.felix.scr.annotations
|
|
|
|
%pom_add_dep org.apache.felix:org.osgi.compendium
|
2016-05-26 16:18:57 +00:00
|
|
|
%pom_add_dep org.osgi:org.osgi.annotation
|
2016-09-26 08:23:47 +00:00
|
|
|
%pom_add_dep org.apache.felix:org.apache.felix.framework
|
2016-05-26 16:18:57 +00:00
|
|
|
%pom_add_dep org.slf4j:slf4j-api
|
|
|
|
%pom_add_dep biz.aQute.bnd:aQute.libg:%{version}
|
|
|
|
%pom_add_dep biz.aQute.bnd:biz.aQute.bnd.annotation:%{version}
|
|
|
|
popd
|
2015-07-08 13:07:19 +00:00
|
|
|
|
2016-05-26 16:18:57 +00:00
|
|
|
# bndlib.annotations
|
|
|
|
pushd biz.aQute.bnd.annotation
|
|
|
|
cp -p %{SOURCE6} pom.xml
|
|
|
|
%pom_add_parent biz.aQute.bnd:parent:%{version}
|
2011-09-26 17:55:15 +00:00
|
|
|
popd
|
|
|
|
|
2016-09-14 15:55:28 +00:00
|
|
|
# maven-plugins
|
|
|
|
%pom_xpath_inject pom:modules "<module>maven</module>"
|
|
|
|
# Unavailable reactor dependency - org.osgi.impl.bundle.repoindex.cli
|
|
|
|
%pom_disable_module bnd-indexer-maven-plugin maven
|
|
|
|
# Integration tests require Internet access
|
|
|
|
%pom_remove_plugin -r :maven-invoker-plugin maven
|
|
|
|
|
2016-05-26 16:18:57 +00:00
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
%mvn_alias biz.aQute.bnd:biz.aQute.bnd :bnd biz.aQute:bnd
|
|
|
|
%mvn_alias biz.aQute.bnd:biz.aQute.bndlib :bndlib biz.aQute:bndlib
|
2011-09-26 17:55:15 +00:00
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
%mvn_package biz.aQute.bnd:biz.aQute.bndlib bndlib
|
2016-05-26 16:18:57 +00:00
|
|
|
%mvn_package biz.aQute.bnd:biz.aQute.bnd.annotation bndlib
|
|
|
|
%mvn_package biz.aQute.bnd:aQute.libg bndlib
|
2016-09-14 15:55:28 +00:00
|
|
|
%mvn_package biz.aQute.bnd:bnd-maven-plugin maven
|
|
|
|
%mvn_package biz.aQute.bnd:bnd-baseline-maven-plugin maven
|
2015-07-08 13:07:19 +00:00
|
|
|
%mvn_package biz.aQute.bnd:parent __noinstall
|
2016-09-14 15:55:28 +00:00
|
|
|
%mvn_package biz.aQute.bnd:bnd-plugin-parent __noinstall
|
2011-09-26 17:55:15 +00:00
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
%build
|
|
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
2011-09-26 17:55:15 +00:00
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
2016-06-01 08:53:04 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/ant.d
|
2016-09-26 08:23:47 +00:00
|
|
|
echo "aqute-bnd slf4j/api slf4j/simple" >%{buildroot}%{_sysconfdir}/ant.d/%{name}
|
2016-06-01 08:53:04 +00:00
|
|
|
|
2016-05-26 16:18:57 +00:00
|
|
|
%jpackage_script aQute.bnd.main.bnd "" "" aqute-bnd:slf4j/slf4j-api:slf4j/slf4j-simple bnd 1
|
2011-09-26 17:55:15 +00:00
|
|
|
|
2014-05-29 09:07:47 +00:00
|
|
|
%files -f .mfiles
|
2016-05-26 16:18:57 +00:00
|
|
|
%license LICENSE
|
2015-07-08 13:07:19 +00:00
|
|
|
%{_bindir}/bnd
|
2016-06-01 08:53:04 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/*
|
2011-09-26 17:55:15 +00:00
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
%files -n aqute-bndlib -f .mfiles-bndlib
|
2016-05-26 16:18:57 +00:00
|
|
|
%license LICENSE
|
2015-07-08 13:07:19 +00:00
|
|
|
|
2016-09-14 15:55:28 +00:00
|
|
|
%files -n bnd-maven-plugin -f .mfiles-maven
|
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2016-05-26 16:18:57 +00:00
|
|
|
%license LICENSE
|
2011-09-26 17:55:15 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-09-26 08:23:47 +00:00
|
|
|
* Mon Sep 26 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-4
|
|
|
|
- Use felix-annotations
|
|
|
|
|
2016-09-14 15:55:28 +00:00
|
|
|
* Wed Sep 14 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-3
|
|
|
|
- Build and install Maven plugins
|
|
|
|
- Resolves: rhbz#1375904
|
|
|
|
|
2016-06-01 08:53:04 +00:00
|
|
|
* Wed Jun 1 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-2
|
|
|
|
- Install ant.d config files
|
|
|
|
|
2016-05-26 16:18:57 +00:00
|
|
|
* Tue May 24 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-1
|
|
|
|
- Update to upstream version 3.2.0
|
|
|
|
|
2016-02-03 16:24:52 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-17 10:43:52 +00:00
|
|
|
* Fri Jul 17 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-2
|
|
|
|
- Fix Tool header generation
|
|
|
|
|
2015-07-08 13:07:19 +00:00
|
|
|
* Wed Jul 08 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-1
|
|
|
|
- Update to upstream version 2.4.1
|
|
|
|
|
2015-06-17 00:54:02 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-14 05:07:00 +00:00
|
|
|
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-15
|
|
|
|
- Disable javadoc doclint
|
|
|
|
|
2014-06-07 01:17:18 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-29 09:07:47 +00:00
|
|
|
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-13
|
|
|
|
- Use .mfiles generated during build
|
|
|
|
|
2014-05-09 17:15:32 +00:00
|
|
|
* Fri May 09 2014 Jaromir Capik <jcapik@redhat.com> - 0.0.363-12
|
|
|
|
- Fixing ambiguous base64 class
|
|
|
|
|
|
|
|
* Fri May 09 2014 Gil Cattaneo <puntogil@libero.it> 0.0.363-11
|
|
|
|
- fix rhbz#991985
|
|
|
|
- add source compatibility with ant 1.9
|
|
|
|
- remove and rebuild from source aQute.runtime.jar
|
|
|
|
- update to current packaging guidelines
|
|
|
|
|
2014-03-04 08:06:03 +00:00
|
|
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-10
|
|
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
|
|
|
2013-08-03 01:47:36 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-13 16:59:45 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-18 16:31:52 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-04-25 16:35:27 +00:00
|
|
|
* Wed Apr 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-6
|
|
|
|
- Get rid of unusable eclipse plugins to simplify dependencies
|
|
|
|
|
2012-03-02 16:26:01 +00:00
|
|
|
* Fri Mar 02 2012 Jaromir Capik <jcapik@redhat.com> - 0.0.363-5
|
|
|
|
- Fixing build failures on f16 and later
|
|
|
|
|
2012-01-12 21:42:22 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-12 13:46:06 +00:00
|
|
|
* Thu Sep 22 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-3
|
|
|
|
- Resurrection of bundled non-class files
|
|
|
|
|
2011-09-26 17:55:15 +00:00
|
|
|
* Thu Sep 22 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-2
|
|
|
|
- Bundled classes removed
|
|
|
|
- jpackage-utils dependency added to the javadoc subpackage
|
|
|
|
|
|
|
|
* Wed Sep 21 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-1
|
|
|
|
- Initial version (cloned from aqute-bndlib 0.0.363)
|