201 lines
6.4 KiB
RPMSpec
201 lines
6.4 KiB
RPMSpec
Name: aqute-bnd
|
|
Version: 3.2.0
|
|
Release: 1%{?dist}
|
|
Summary: BND Tool
|
|
License: ASL 2.0
|
|
URL: http://www.aqute.biz/Bnd/Bnd
|
|
BuildArch: noarch
|
|
|
|
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
|
|
|
|
Patch0: 0001-Port-to-Java-8.patch
|
|
Patch1: 0002-Remove-unavailable-parts.patch
|
|
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(ant:ant)
|
|
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
|
|
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi.services)
|
|
BuildRequires: mvn(org.osgi:org.osgi.annotation)
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
|
%description
|
|
The bnd tool helps you create and diagnose OSGi bundles.
|
|
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
|
|
|
|
%package -n aqute-bndlib
|
|
Summary: BND library
|
|
|
|
%description -n aqute-bndlib
|
|
%{summary}.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n bnd-%{version}.REL
|
|
|
|
rm gradlew*
|
|
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
# 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
|
|
|
|
# reference to Base64 is ambiguous
|
|
#find -name '*.java' -not -name 'Base64.java' | xargs sed -i 's/\<Base64\>/aQute.lib.base64.Base64/g'
|
|
|
|
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
|
|
pushd biz.aQute.bnd
|
|
cp -p %{SOURCE4} pom.xml
|
|
%pom_add_parent biz.aQute.bnd:parent:%{version}
|
|
|
|
%pom_add_dep ant:ant
|
|
%pom_add_dep biz.aQute.bnd:biz.aQute.bndlib:%{version}
|
|
popd
|
|
|
|
# bndlib
|
|
pushd biz.aQute.bndlib
|
|
cp -p %{SOURCE5} pom.xml
|
|
%pom_add_parent biz.aQute.bnd:parent:%{version}
|
|
|
|
%pom_add_dep org.eclipse.osgi:org.eclipse.osgi
|
|
%pom_add_dep org.eclipse.osgi:org.eclipse.osgi.services
|
|
%pom_add_dep org.osgi:org.osgi.annotation
|
|
%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
|
|
|
|
# bndlib.annotations
|
|
pushd biz.aQute.bnd.annotation
|
|
cp -p %{SOURCE6} pom.xml
|
|
%pom_add_parent biz.aQute.bnd:parent:%{version}
|
|
popd
|
|
|
|
|
|
%mvn_alias biz.aQute.bnd:biz.aQute.bnd :bnd biz.aQute:bnd
|
|
%mvn_alias biz.aQute.bnd:biz.aQute.bndlib :bndlib biz.aQute:bndlib
|
|
|
|
%mvn_package biz.aQute.bnd:biz.aQute.bndlib bndlib
|
|
%mvn_package biz.aQute.bnd:biz.aQute.bnd.annotation bndlib
|
|
%mvn_package biz.aQute.bnd:aQute.libg bndlib
|
|
%mvn_package biz.aQute.bnd:parent __noinstall
|
|
|
|
%build
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%jpackage_script aQute.bnd.main.bnd "" "" aqute-bnd:slf4j/slf4j-api:slf4j/slf4j-simple bnd 1
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
%{_bindir}/bnd
|
|
|
|
%files -n aqute-bndlib -f .mfiles-bndlib
|
|
%license LICENSE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Tue May 24 2016 Michael Simacek <msimacek@redhat.com> - 3.2.0-1
|
|
- Update to upstream version 3.2.0
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Fri Jul 17 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-2
|
|
- Fix Tool header generation
|
|
|
|
* Wed Jul 08 2015 Michael Simacek <msimacek@redhat.com> - 2.4.1-1
|
|
- Update to upstream version 2.4.1
|
|
|
|
* 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
|
|
|
|
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-15
|
|
- Disable javadoc doclint
|
|
|
|
* 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
|
|
|
|
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.0.363-13
|
|
- Use .mfiles generated during build
|
|
|
|
* 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
|
|
|
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-10
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* Wed Apr 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.363-6
|
|
- Get rid of unusable eclipse plugins to simplify dependencies
|
|
|
|
* Fri Mar 02 2012 Jaromir Capik <jcapik@redhat.com> - 0.0.363-5
|
|
- Fixing build failures on f16 and later
|
|
|
|
* 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
|
|
|
|
* Thu Sep 22 2011 Jaromir Capik <jcapik@redhat.com> - 0.0.363-3
|
|
- Resurrection of bundled non-class files
|
|
|
|
* 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)
|