c5bd88
%bcond_with bootstrap
c5bd88
c5bd88
Name:           aqute-bnd
c5bd88
Version:        5.2.0
c5bd88
Release:        5%{?dist}
c5bd88
Summary:        BND Tool
c5bd88
# Part of jpm is under BSD, but jpm is not included in binary RPM
c5bd88
License:        ASL 2.0 or EPL-2.0
c5bd88
URL:            https://bnd.bndtools.org/
c5bd88
BuildArch:      noarch
c5bd88
c5bd88
Source0:        %{name}-%{version}.tar.gz
c5bd88
# removes bundled jars from upstream tarball
c5bd88
# run as:
c5bd88
# ./generate-tarball.sh
c5bd88
Source1:        generate-tarball.sh
c5bd88
c5bd88
Source2:        parent.pom
c5bd88
Source3:        https://repo1.maven.org/maven2/biz/aQute/bnd/aQute.libg/%{version}/aQute.libg-%{version}.pom
c5bd88
Source4:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd/%{version}/biz.aQute.bnd-%{version}.pom
c5bd88
Source5:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/%{version}/biz.aQute.bndlib-%{version}.pom
c5bd88
Source6:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd.annotation/%{version}/biz.aQute.bnd.annotation-%{version}.pom
c5bd88
c5bd88
Patch1:         0001-Disable-removed-commands.patch
c5bd88
Patch2:         0002-Port-to-OSGI-7.0.0.patch
c5bd88
c5bd88
BuildRequires:  maven-local
c5bd88
%if %{with bootstrap}
c5bd88
BuildRequires:  javapackages-bootstrap
c5bd88
%else
c5bd88
BuildRequires:  mvn(org.osgi:osgi.annotation)
c5bd88
BuildRequires:  mvn(org.osgi:osgi.cmpn)
c5bd88
BuildRequires:  mvn(org.osgi:osgi.core)
c5bd88
BuildRequires:  mvn(org.slf4j:slf4j-api)
c5bd88
BuildRequires:  mvn(org.slf4j:slf4j-simple)
c5bd88
%endif
c5bd88
c5bd88
# Explicit javapackages-tools requires since bnd script uses
c5bd88
# /usr/share/java-utils/java-functions
c5bd88
Requires:       javapackages-tools
c5bd88
c5bd88
%description
c5bd88
The bnd tool helps you create and diagnose OSGi bundles.
c5bd88
The key functions are:
c5bd88
- Show the manifest and JAR contents of a bundle
c5bd88
- Wrap a JAR so that it becomes a bundle
c5bd88
- Create a Bundle from a specification and a class path
c5bd88
- Verify the validity of the manifest entries
c5bd88
The tool is capable of acting as:
c5bd88
- Command line tool
c5bd88
- File format
c5bd88
- Directives
c5bd88
- Use of macros
c5bd88
c5bd88
%package -n aqute-bndlib
c5bd88
Summary:        BND library
c5bd88
c5bd88
%description -n aqute-bndlib
c5bd88
%{summary}.
c5bd88
c5bd88
%package javadoc
c5bd88
Summary:        Javadoc for %{name}
c5bd88
c5bd88
%description javadoc
c5bd88
API documentation for %{name}.
c5bd88
c5bd88
%prep
c5bd88
%setup -q
c5bd88
c5bd88
%patch1 -p1
c5bd88
%patch2 -p1
c5bd88
c5bd88
# the commands pull in more dependencies than we want (felix-resolver, jetty)
c5bd88
rm biz.aQute.bnd/src/aQute/bnd/main/{RemoteCommand,ResolveCommand}.java
c5bd88
c5bd88
sed 's/@VERSION@/%{version}/' %SOURCE2 > pom.xml
c5bd88
sed -i 's|${Bundle-Version}|%{version}|' biz.aQute.bndlib/src/aQute/bnd/osgi/bnd.info
c5bd88
c5bd88
# libg
c5bd88
pushd aQute.libg
c5bd88
cp -p %{SOURCE3} pom.xml
c5bd88
%pom_add_parent biz.aQute.bnd:parent:%{version}
c5bd88
%pom_add_dep org.osgi:osgi.core
c5bd88
%pom_add_dep org.osgi:osgi.cmpn
c5bd88
popd
c5bd88
c5bd88
# bnd.annotation
c5bd88
pushd biz.aQute.bnd.annotation
c5bd88
cp -p %{SOURCE6} pom.xml
c5bd88
%pom_add_parent biz.aQute.bnd:parent:%{version}
c5bd88
%pom_add_dep org.osgi:osgi.core
c5bd88
%pom_add_dep org.osgi:osgi.cmpn
c5bd88
popd
c5bd88
c5bd88
# bndlib
c5bd88
pushd biz.aQute.bndlib
c5bd88
cp -p %{SOURCE5} pom.xml
c5bd88
%pom_add_parent biz.aQute.bnd:parent:%{version}
c5bd88
%pom_add_dep org.osgi:osgi.core
c5bd88
%pom_add_dep org.osgi:osgi.cmpn
c5bd88
%pom_add_dep biz.aQute.bnd:aQute.libg:%{version}
c5bd88
%pom_add_dep biz.aQute.bnd:biz.aQute.bnd.annotation:%{version}
c5bd88
popd
c5bd88
c5bd88
# bnd
c5bd88
cp -r biz.aQute.bnd.exporters/src/aQute/bnd/exporter biz.aQute.bnd/src/aQute/bnd/
c5bd88
pushd biz.aQute.bnd
c5bd88
cp -p %{SOURCE4} pom.xml
c5bd88
%pom_remove_dep :biz.aQute.resolve
c5bd88
%pom_remove_dep :biz.aQute.bnd.ant
c5bd88
%pom_remove_dep :biz.aQute.repository
c5bd88
%pom_remove_dep :biz.aQute.bnd.exporters
c5bd88
%pom_remove_dep :biz.aQute.bnd.reporter
c5bd88
%pom_remove_dep :biz.aQute.remote.api
c5bd88
%pom_remove_dep :snakeyaml
c5bd88
%pom_remove_dep :jline
c5bd88
popd
c5bd88
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.namespace.contract
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.namespace.extender
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.namespace.implementation
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.namespace.service
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.resource
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.service.log
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.service.repository
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.service.serviceloader
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.util.function
c5bd88
%pom_remove_dep -r org.osgi:org.osgi.util.promise
c5bd88
c5bd88
%mvn_alias biz.aQute.bnd:biz.aQute.bnd :bnd biz.aQute:bnd
c5bd88
%mvn_alias biz.aQute.bnd:biz.aQute.bndlib :bndlib biz.aQute:bndlib
c5bd88
c5bd88
%mvn_package biz.aQute.bnd:biz.aQute.bndlib bndlib
c5bd88
%mvn_package biz.aQute.bnd:biz.aQute.bnd.annotation bndlib
c5bd88
%mvn_package biz.aQute.bnd:aQute.libg bndlib
c5bd88
%mvn_package biz.aQute.bnd:parent __noinstall
c5bd88
%mvn_package biz.aQute.bnd:bnd-plugin-parent __noinstall
c5bd88
c5bd88
%build
c5bd88
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
c5bd88
c5bd88
%install
c5bd88
%mvn_install
c5bd88
c5bd88
install -d -m 755 %{buildroot}%{_sysconfdir}/ant.d
c5bd88
echo "aqute-bnd slf4j/api slf4j/simple osgi-annotation osgi-core osgi-compendium" >%{buildroot}%{_sysconfdir}/ant.d/%{name}
c5bd88
c5bd88
%jpackage_script aQute.bnd.main.bnd "" "" aqute-bnd:slf4j/slf4j-api:slf4j/slf4j-simple:osgi-annotation:osgi-core:osgi-compendium bnd 1
c5bd88
c5bd88
%files -f .mfiles
c5bd88
%license LICENSE
c5bd88
%{_bindir}/bnd
c5bd88
%config(noreplace) %{_sysconfdir}/ant.d/*
c5bd88
c5bd88
%files -n aqute-bndlib -f .mfiles-bndlib
c5bd88
%license LICENSE
c5bd88
c5bd88
%files javadoc -f .mfiles-javadoc
c5bd88
%license LICENSE
c5bd88
c5bd88
%changelog
c5bd88
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.2.0-5
c5bd88
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
c5bd88
  Related: rhbz#1991688
c5bd88
c5bd88
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.2.0-4
c5bd88
- Rebuild to workaround DistroBaker issue
c5bd88
c5bd88
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.2.0-3
c5bd88
- Bootstrap Maven for CentOS Stream 9
c5bd88
c5bd88
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.2.0-2
c5bd88
- Bootstrap build
c5bd88
- Non-bootstrap build
c5bd88
c5bd88
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.1-4
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c5bd88
c5bd88
* Wed Jan 20 2021 Marian Koncek <mkoncek@redhat.com> - 5.2.0-1
c5bd88
- Update to upstream version 5.2.0
c5bd88
c5bd88
* Mon Dec 14 2020 Jerry James <loganjerry@gmail.com> - 4.3.1-3
c5bd88
- Update jansi path for jansi 1.x and jline path for jline 2.x
c5bd88
c5bd88
* Wed Nov 25 2020 Mat Booth <mat.booth@redhat.com> - 4.3.1-2
c5bd88
- Add OSGi metadata
c5bd88
c5bd88
* Tue Sep 29 2020 Marian Koncek <mkoncek@redhat.com> - 5.1.2-1
c5bd88
- Update to upstream version 5.1.2
c5bd88
c5bd88
* Tue Jul 28 2020 Mat Booth <mat.booth@redhat.com> - 4.3.1-1
c5bd88
- Update to latest 4.x release
c5bd88
c5bd88
* Mon Jul 27 2020 Mat Booth <mat.booth@redhat.com> - 4.3.0-1
c5bd88
- Update to upstream version 4.3.0
c5bd88
c5bd88
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-11
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c5bd88
c5bd88
* Tue Jul 21 2020 Mat Booth <mat.booth@redhat.com> - 3.5.0-10
c5bd88
- Fix NIO linkage error when running on Java 8 due to incorrect cross-compilation
c5bd88
c5bd88
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.5.0-9
c5bd88
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
c5bd88
c5bd88
* Tue Jun 23 2020 Marian Koncek <mkoncek@redhat.com> - 5.1.1-1
c5bd88
- Update to upstream version 5.1.1
c5bd88
c5bd88
* Fri Apr 24 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-2
c5bd88
- Disable bnd-maven-plugin
c5bd88
c5bd88
* Wed Jan 29 2020 Marian Koncek <mkoncek@redhat.com> - 5.0.0-1
c5bd88
- Update to upstream version 5.0.0
c5bd88
c5bd88
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-8
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c5bd88
c5bd88
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.3.0-2
c5bd88
- Mass rebuild for javapackages-tools 201902
c5bd88
c5bd88
* Wed Oct 09 2019 Marian Koncek <mkoncek@redhat.com> - 4.3.0-1
c5bd88
- Update to upstream version 4.3.0
c5bd88
c5bd88
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-7
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c5bd88
c5bd88
* Thu Jul 04 2019 Marian Koncek <mkoncek@redhat.com> - 4.2.0-1
c5bd88
- Update to upstream version 4.2.0
c5bd88
c5bd88
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.0-6
c5bd88
- Mass rebuild for javapackages-tools 201901
c5bd88
c5bd88
* Fri Apr 12 2019 Marian Koncek <mkoncek@redhat.com> - 3.5.0-6
c5bd88
- Port to OSGI 7.0.0
c5bd88
c5bd88
* Fri Apr 12 2019 Marian Koncek <mkoncek@redhat.com> - 3.5.0-5
c5bd88
- Port to OSGI 7.0.0
c5bd88
c5bd88
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-5
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c5bd88
c5bd88
* Mon Jul 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 3.5.0-4
c5bd88
- Add requirement on javapackages-tools for bnd script.
c5bd88
c5bd88
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c5bd88
c5bd88
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c5bd88
c5bd88
* Fri Oct 13 2017 Michael Simacek <msimacek@redhat.com> - 3.5.0-1
c5bd88
- Update to upstream version 3.5.0
c5bd88
c5bd88
* Mon Oct 02 2017 Troy Dawson <tdawson@redhat.com> - 3.4.0-3
c5bd88
- Cleanup spec file conditionals
c5bd88
c5bd88
* Sat Sep 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.0-2
c5bd88
- Remove unneeded javadoc plugin
c5bd88
c5bd88
* Tue Sep 12 2017 Michael Simacek <msimacek@redhat.com> - 3.4.0-1
c5bd88
- Update to upstream version 3.4.0
c5bd88
c5bd88
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-7
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c5bd88
c5bd88
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c5bd88
c5bd88
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-5
c5bd88
- Don't use legacy Ant artifact coordinates
c5bd88
c5bd88
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-4
c5bd88
- Allow conditional builds without Ant tasks
c5bd88
c5bd88
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-3
c5bd88
- Allow conditional builds without Maven plugin
c5bd88
c5bd88
* Thu Oct 06 2016 Michael Simacek <msimacek@redhat.com> - 3.3.0-2
c5bd88
- Fix ant.d classpath
c5bd88
c5bd88
* Thu Sep 29 2016 Michael Simacek <msimacek@redhat.com> - 3.3.0-1
c5bd88
- Update to upstream version 3.3.0
c5bd88
- Build against osgi-{core,compendium}
c5bd88
c5bd88
* Tue Sep 27 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-5
c5bd88
- Add felix-scr-annotations to classpath
c5bd88
c5bd88
* Mon Sep 26 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-4
c5bd88
- Use felix-annotations
c5bd88
c5bd88
* Wed Sep 14 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-3
c5bd88
- Build and install Maven plugins
c5bd88
- Resolves: rhbz#1375904
c5bd88
c5bd88
* Wed Jun  1 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-2
c5bd88
- Install ant.d config files
c5bd88
c5bd88
* Tue May 24 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-1
c5bd88
- Update to upstream version 3.2.0
c5bd88
c5bd88
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c5bd88
c5bd88
* Fri Jul 17 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-2
c5bd88
- Fix Tool header generation
c5bd88
c5bd88
* Wed Jul 08 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-1
c5bd88
- Update to upstream version 2.4.1
c5bd88
c5bd88
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-16
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c5bd88
c5bd88
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-15
c5bd88
- Disable javadoc doclint
c5bd88
c5bd88
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-14
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c5bd88
c5bd88
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-13
c5bd88
- Use .mfiles generated during build
c5bd88
c5bd88
* Fri May 09 2014 Jaromir Capik <jcapik@redhat.com> - 0.0.363-12
c5bd88
- Fixing ambiguous base64 class
c5bd88
c5bd88
* Fri May 09 2014 Gil Cattaneo <puntogil@libero.it> 0.0.363-11
c5bd88
- fix rhbz#991985
c5bd88
- add source compatibility with ant 1.9
c5bd88
- remove and rebuild from source aQute.runtime.jar
c5bd88
- update to current packaging guidelines
c5bd88
c5bd88
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-10
c5bd88
- Use Requires: java-headless rebuild (#1067528)
c5bd88
c5bd88
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-9
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c5bd88
c5bd88
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-8
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c5bd88
c5bd88
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-7
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c5bd88
c5bd88
* Wed Apr 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-6
c5bd88
- Get rid of unusable eclipse plugins to simplify dependencies
c5bd88
c5bd88
* Fri Mar 02 2012 Jaromir Capik <jcapik@redhat.com> - 0.0.363-5
c5bd88
- Fixing build failures on f16 and later
c5bd88
c5bd88
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-4
c5bd88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c5bd88
c5bd88
* Thu Sep 22 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-3
c5bd88
- Resurrection of bundled non-class files
c5bd88
c5bd88
* Thu Sep 22 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-2
c5bd88
- Bundled classes removed
c5bd88
- jpackage-utils dependency added to the javadoc subpackage
c5bd88
c5bd88
* Wed Sep 21 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-1
c5bd88
- Initial version (cloned from aqute-bndlib 0.0.363)