aqute-bnd/aqute-bnd.spec

186 lines
5.8 KiB
RPMSpec
Raw Normal View History

2011-09-26 17:55:15 +00:00
Name: aqute-bnd
2015-07-08 13:07:19 +00:00
Version: 2.4.1
Release: 1%{?dist}
2011-09-26 17:55:15 +00:00
Summary: BND Tool
License: ASL 2.0
2015-07-08 13:07:19 +00:00
URL: http://www.aqute.biz/Bnd/Bnd
2011-09-26 17:55:15 +00:00
BuildArch: noarch
2015-07-08 13:07:19 +00:00
Source0: https://github.com/bndtools/bnd/archive/%{version}.REL.tar.gz
# Auxiliary parent pom, packager-written
Source1: parent.pom
Source2: https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd/%{version}/biz.aQute.bnd-%{version}.pom
Source3: https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/%{version}/biz.aQute.bndlib-%{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
Patch1: 0002-Inline-namespace-constants.patch
Patch2: 0003-Use-equinox-s-annotations.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)
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}.
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*
find -name '*.jar' -delete
find -name '*.class' -delete
%patch0 -p1
%patch1 -p1
%patch2 -p1
# reference to Base64 is ambiguous
find -name '*.java' -not -name 'Base64.java' | xargs sed -i 's/\<Base64\>/aQute.lib.base64.Base64/g'
cp -p %{SOURCE1} pom.xml
build_section='
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src/</directory>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/packageinfo</exclude>
</excludes>
</resource>
</resources>
</build>'
pushd biz.aQute.bnd
cp -p %{SOURCE2} pom.xml
%pom_add_parent biz.aQute.bnd:parent:%{version}
%pom_xpath_inject /pom:project "$build_section"
%pom_add_dep ant:ant
%pom_add_dep biz.aQute.bnd:biz.aQute.bndlib:%{version}
%pom_add_dep org.eclipse.osgi:org.eclipse.osgi
%pom_add_dep org.eclipse.osgi:org.eclipse.osgi.services
# The common library is expected to be included in all artifacts
cp -r ../aQute.libg/src/* src/
2011-09-26 17:55:15 +00:00
popd
2015-07-08 13:07:19 +00:00
pushd biz.aQute.bndlib
cp -p %{SOURCE3} pom.xml
%pom_add_parent biz.aQute.bnd:parent:%{version}
%pom_xpath_inject /pom:project "$build_section"
%pom_add_dep org.eclipse.osgi:org.eclipse.osgi
%pom_add_dep org.eclipse.osgi:org.eclipse.osgi.services
# The common library is expected to be included in all artifacts
cp -r ../aQute.libg/src/* src/
# We don't have metatype-annotations and I haven't found any proper release of it
rm -r src/aQute/bnd/metatype
2011-09-26 17:55:15 +00:00
popd
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
%mvn_package biz.aQute.bnd: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
%jpackage_script bnd "" "" aqute-bnd bnd 1
2011-09-26 17:55:15 +00:00
2014-05-29 09:07:47 +00:00
%files -f .mfiles
2015-07-08 13:07:19 +00:00
%doc biz.aQute.bnd/LICENSE
%{_bindir}/bnd
2011-09-26 17:55:15 +00:00
2015-07-08 13:07:19 +00:00
%files -n aqute-bndlib -f .mfiles-bndlib
%doc biz.aQute.bnd/LICENSE
%files javadoc -f .mfiles-javadoc
%doc biz.aQute.bnd/LICENSE
2011-09-26 17:55:15 +00:00
%changelog
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
* 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
* 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
* 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
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
* 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
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)