Blame SPECS/aqute-bnd.spec

a67099
%{?scl:%scl_package aqute-bnd}
a67099
%{!?scl:%global pkg_name %{name}}
a67099
a67099
%bcond_without ant_tasks
a67099
%if 0%{?fedora}
a67099
%bcond_without maven_plugin
a67099
%endif
a67099
a67099
Name:           %{?scl_prefix}aqute-bnd
a67099
Version:        3.3.0
a67099
Release:        6.2%{?dist}
a67099
Summary:        BND Tool
a67099
License:        ASL 2.0
a67099
URL:            http://bnd.bndtools.org/
a67099
BuildArch:      noarch
a67099
a67099
Source0:        %{version}.REL.tar.gz
a67099
# removes bundled jars from upstream tarball
a67099
# run as:
a67099
# ./repack-tarball.sh
a67099
Source1:        repack-tarball.sh
a67099
a67099
Source2:        parent.pom
a67099
Source3:        https://repo1.maven.org/maven2/biz/aQute/bnd/aQute.libg/%{version}/aQute.libg-%{version}.pom
a67099
Source4:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd/%{version}/biz.aQute.bnd-%{version}.pom
a67099
Source5:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/%{version}/biz.aQute.bndlib-%{version}.pom
a67099
Source6:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd.annotation/%{version}/biz.aQute.bnd.annotation-%{version}.pom
a67099
a67099
Patch0:         0001-Port-to-Java-8.patch
a67099
Patch1:         0002-Disable-removed-commands.patch
a67099
a67099
BuildRequires:  %{?scl_prefix}maven-local
a67099
BuildRequires:  %{?scl_prefix}mvn(org.osgi:osgi.annotation)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.osgi:osgi.cmpn)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.osgi:osgi.core)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.slf4j:slf4j-api)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.slf4j:slf4j-simple)
a67099
%if %{with ant_tasks}
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.ant:ant)
a67099
%endif
a67099
%if %{with maven_plugin}
a67099
BuildRequires:  %{?scl_prefix}mvn(junit:junit)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-artifact)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-compat)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-core)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven:maven-plugin-api)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-plugin-plugin)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugins:maven-source-plugin)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.eclipse.aether:aether-api)
a67099
BuildRequires:  %{?scl_prefix}mvn(org.sonatype.plexus:plexus-build-api)
a67099
%endif
a67099
a67099
%description
a67099
The bnd tool helps you create and diagnose OSGi bundles.
a67099
The key functions are:
a67099
- Show the manifest and JAR contents of a bundle
a67099
- Wrap a JAR so that it becomes a bundle
a67099
- Create a Bundle from a specification and a class path
a67099
- Verify the validity of the manifest entries
a67099
The tool is capable of acting as:
a67099
- Command line tool
a67099
- File format
a67099
- Directives
a67099
- Use of macros
a67099
a67099
%package -n %{?scl_prefix}aqute-bndlib
a67099
Summary:        BND library
a67099
a67099
%description -n %{?scl_prefix}aqute-bndlib
a67099
%{summary}.
a67099
a67099
%if %{with maven_plugin}
a67099
a67099
%package -n %{?scl_prefix}bnd-maven-plugin
a67099
Summary:        BND Maven plugin
a67099
a67099
%description -n %{?scl_prefix}bnd-maven-plugin
a67099
%{summary}.
a67099
%endif
a67099
a67099
%package javadoc
a67099
Summary:        Javadoc for %{pkg_name}
a67099
a67099
%description javadoc
a67099
API documentation for %{pkg_name}.
a67099
a67099
%prep
a67099
%setup -q -n bnd-%{version}.REL
a67099
a67099
rm gradlew*
a67099
a67099
%patch0 -p1
a67099
%patch1 -p1
a67099
a67099
# the commands pull in more dependencies than we want (felix-resolver, jetty)
a67099
rm biz.aQute.bnd/src/aQute/bnd/main/{RemoteCommand,ResolveCommand}.java
a67099
a67099
sed 's/@VERSION@/%{version}/' %SOURCE2 > pom.xml
a67099
sed -i 's|${Bundle-Version}|%{version}|' biz.aQute.bndlib/src/aQute/bnd/osgi/bnd.info
a67099
a67099
%if %{without ant_tasks}
a67099
rm -rf biz.aQute.bnd/src/aQute/bnd/ant
a67099
%endif
a67099
a67099
%if %{without maven_plugin}
a67099
%pom_disable_module maven
a67099
%endif
a67099
a67099
# libg
a67099
pushd aQute.libg
a67099
cp -p %{SOURCE3} pom.xml
a67099
%pom_add_parent biz.aQute.bnd:parent:%{version}
a67099
%pom_add_dep org.osgi:osgi.cmpn
a67099
%pom_add_dep org.slf4j:slf4j-api
a67099
popd
a67099
a67099
# bndlib.annotations
a67099
pushd biz.aQute.bnd.annotation
a67099
cp -p %{SOURCE6} pom.xml
a67099
%pom_add_parent biz.aQute.bnd:parent:%{version}
a67099
popd
a67099
a67099
# bndlib
a67099
pushd biz.aQute.bndlib
a67099
cp -p %{SOURCE5} pom.xml
a67099
%pom_add_parent biz.aQute.bnd:parent:%{version}
a67099
a67099
%pom_add_dep org.osgi:osgi.annotation
a67099
%pom_add_dep org.osgi:osgi.core
a67099
%pom_add_dep org.osgi:osgi.cmpn
a67099
%pom_add_dep org.slf4j:slf4j-api
a67099
%pom_add_dep biz.aQute.bnd:aQute.libg:%{version}
a67099
%pom_add_dep biz.aQute.bnd:biz.aQute.bnd.annotation:%{version}
a67099
popd
a67099
a67099
# bnd
a67099
pushd biz.aQute.bnd
a67099
cp -p %{SOURCE4} pom.xml
a67099
%pom_add_parent biz.aQute.bnd:parent:%{version}
a67099
a67099
%pom_add_dep biz.aQute.bnd:biz.aQute.bndlib:%{version}
a67099
%pom_add_dep biz.aQute.bnd:aQute.libg:%{version}
a67099
%pom_add_dep biz.aQute.bnd:biz.aQute.bnd.annotation:%{version}
a67099
%if %{with ant_tasks}
a67099
%pom_add_dep org.apache.ant:ant
a67099
%endif
a67099
%pom_add_dep org.osgi:osgi.annotation
a67099
%pom_add_dep org.osgi:osgi.core
a67099
%pom_add_dep org.osgi:osgi.cmpn
a67099
%pom_add_dep org.slf4j:slf4j-api
a67099
a67099
%pom_add_dep org.slf4j:slf4j-simple:runtime
a67099
popd
a67099
a67099
# maven-plugins
a67099
a67099
# Unavailable reactor dependency - org.osgi.impl.bundle.repoindex.cli
a67099
%pom_disable_module bnd-indexer-maven-plugin maven
a67099
# Requires unbuilt parts of bnd
a67099
%pom_disable_module bnd-export-maven-plugin maven
a67099
# Integration tests require Internet access
a67099
%pom_remove_plugin -r :maven-invoker-plugin maven
a67099
a67099
a67099
%mvn_alias biz.aQute.bnd:biz.aQute.bnd :bnd biz.aQute:bnd
a67099
%mvn_alias biz.aQute.bnd:biz.aQute.bndlib :bndlib biz.aQute:bndlib
a67099
a67099
%mvn_package biz.aQute.bnd:biz.aQute.bndlib bndlib
a67099
%mvn_package biz.aQute.bnd:biz.aQute.bnd.annotation bndlib
a67099
%mvn_package biz.aQute.bnd:aQute.libg bndlib
a67099
%mvn_package biz.aQute.bnd:bnd-maven-plugin maven
a67099
%mvn_package biz.aQute.bnd:bnd-baseline-maven-plugin maven
a67099
%mvn_package biz.aQute.bnd:parent __noinstall
a67099
%mvn_package biz.aQute.bnd:bnd-plugin-parent __noinstall
a67099
a67099
%build
a67099
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
a67099
a67099
%install
a67099
%mvn_install
a67099
a67099
%if %{with ant_tasks}
a67099
install -d -m 755 %{buildroot}%{_sysconfdir}/ant.d
a67099
echo "aqute-bnd slf4j/api slf4j/simple osgi-annotation osgi-core osgi-compendium" >%{buildroot}%{_sysconfdir}/ant.d/%{pkg_name}
a67099
%endif
a67099
a67099
%jpackage_script aQute.bnd.main.bnd "" "" aqute-bnd:slf4j/slf4j-api:slf4j/slf4j-simple:osgi-annotation:osgi-core:osgi-compendium bnd 1
a67099
a67099
%files -f .mfiles
a67099
%license LICENSE
a67099
%{_bindir}/bnd
a67099
%if %{with ant_tasks}
a67099
%config(noreplace) %{_sysconfdir}/ant.d/*
a67099
%endif
a67099
a67099
%files -n %{?scl_prefix}aqute-bndlib -f .mfiles-bndlib
a67099
%license LICENSE
a67099
a67099
%if %{with maven_plugin}
a67099
a67099
%files -n %{?scl_prefix}bnd-maven-plugin -f .mfiles-maven
a67099
%endif
a67099
a67099
%files javadoc -f .mfiles-javadoc
a67099
%license LICENSE
a67099
a67099
%changelog
a67099
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 3.3.0-6.2
a67099
- Mass rebuild 2017-06-22
a67099
a67099
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 3.3.0-6.1
a67099
- Automated package import and SCL-ization
a67099
a67099
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a67099
a67099
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-5
a67099
- Don't use legacy Ant artifact coordinates
a67099
a67099
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-4
a67099
- Allow conditional builds without Ant tasks
a67099
a67099
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-3
a67099
- Allow conditional builds without Maven plugin
a67099
a67099
* Thu Oct 06 2016 Michael Simacek <msimacek@redhat.com> - 3.3.0-2
a67099
- Fix ant.d classpath
a67099
a67099
* Thu Sep 29 2016 Michael Simacek <msimacek@redhat.com> - 3.3.0-1
a67099
- Update to upstream version 3.3.0
a67099
- Build against osgi-{core,compendium}
a67099
a67099
* Tue Sep 27 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-5
a67099
- Add felix-scr-annotations to classpath
a67099
a67099
* Mon Sep 26 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-4
a67099
- Use felix-annotations
a67099
a67099
* Wed Sep 14 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-3
a67099
- Build and install Maven plugins
a67099
- Resolves: rhbz#1375904
a67099
a67099
* Wed Jun  1 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.2.0-2
a67099
- Install ant.d config files
a67099
a67099
* Tue May 24 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-1
a67099
- Update to upstream version 3.2.0
a67099
a67099
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a67099
a67099
* Fri Jul 17 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-2
a67099
- Fix Tool header generation
a67099
a67099
* Wed Jul 08 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-1
a67099
- Update to upstream version 2.4.1
a67099
a67099
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-16
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a67099
a67099
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-15
a67099
- Disable javadoc doclint
a67099
a67099
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-14
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a67099
a67099
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-13
a67099
- Use .mfiles generated during build
a67099
a67099
* Fri May 09 2014 Jaromir Capik <jcapik@redhat.com> - 0.0.363-12
a67099
- Fixing ambiguous base64 class
a67099
a67099
* Fri May 09 2014 Gil Cattaneo <puntogil@libero.it> 0.0.363-11
a67099
- fix rhbz#991985
a67099
- add source compatibility with ant 1.9
a67099
- remove and rebuild from source aQute.runtime.jar
a67099
- update to current packaging guidelines
a67099
a67099
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-10
a67099
- Use Requires: java-headless rebuild (#1067528)
a67099
a67099
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-9
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a67099
a67099
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-8
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a67099
a67099
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-7
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a67099
a67099
* Wed Apr 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-6
a67099
- Get rid of unusable eclipse plugins to simplify dependencies
a67099
a67099
* Fri Mar 02 2012 Jaromir Capik <jcapik@redhat.com> - 0.0.363-5
a67099
- Fixing build failures on f16 and later
a67099
a67099
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.363-4
a67099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a67099
a67099
* Thu Sep 22 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-3
a67099
- Resurrection of bundled non-class files
a67099
a67099
* Thu Sep 22 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-2
a67099
- Bundled classes removed
a67099
- jpackage-utils dependency added to the javadoc subpackage
a67099
a67099
* Wed Sep 21 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-1
a67099
- Initial version (cloned from aqute-bndlib 0.0.363)