Update bnd invocation

This commit is contained in:
Michael Simacek 2015-07-09 16:50:16 +02:00
parent 1f78662e61
commit 641c5c3ad2
2 changed files with 10 additions and 10 deletions

View File

@ -1,3 +1,3 @@
Bundle-Name= Java code generation library
Bundle-SymbolicName= net.sf.cglib.core
Bundle-Version= ${cglib.bundle.version}
Export-Package=net.*

View File

@ -1,9 +1,8 @@
Name: cglib
Version: 3.1
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Code Generation Library for Java
License: ASL 2.0 and BSD
Group: Development/Tools
Url: http://cglib.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
@ -27,7 +26,7 @@ at runtime.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation
%description javadoc
Documentation for the cglib code generation library.
@ -44,10 +43,8 @@ sed -i "/<taskdef name=.jarjar/,/<.jarjar>/d" build.xml
export OPT_JAR_LIST=objectweb-asm
ant jar javadoc
# Convert to OSGi bundle
pushd dist
java -Dcglib.bundle.version="%{version}" \
-jar $(build-classpath aqute-bnd) wrap -output %{name}-%{version}.bar -properties %{SOURCE2} %{name}-%{version}.jar
popd
bnd wrap --output dist/%{name}-%{version}.bar --properties %{SOURCE2} \
--version %{version} dist/%{name}-%{version}.jar
%install
install -d -m 755 %{buildroot}%{_javadir}
@ -69,6 +66,9 @@ cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}
%{_javadocdir}/%{name}
%changelog
* Thu Jul 09 2015 Michael Simacek <msimacek@redhat.com> - 3.1-7
- Update bnd invocation
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild