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-Name= Java code generation library
Bundle-SymbolicName= net.sf.cglib.core Bundle-SymbolicName= net.sf.cglib.core
Bundle-Version= ${cglib.bundle.version} Export-Package=net.*

View File

@ -1,9 +1,8 @@
Name: cglib Name: cglib
Version: 3.1 Version: 3.1
Release: 6%{?dist} Release: 7%{?dist}
Summary: Code Generation Library for Java Summary: Code Generation Library for Java
License: ASL 2.0 and BSD License: ASL 2.0 and BSD
Group: Development/Tools
Url: http://cglib.sourceforge.net/ Url: http://cglib.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
@ -21,13 +20,13 @@ BuildRequires: aqute-bnd
BuildArch: noarch BuildArch: noarch
%description %description
cglib is a powerful, high performance and quality code generation library cglib is a powerful, high performance and quality code generation library
for Java. It is used to extend Java classes and implements interfaces for Java. It is used to extend Java classes and implements interfaces
at runtime. at runtime.
%package javadoc %package javadoc
Summary: Javadoc for %{name} Summary: Javadoc for %{name}
Group: Documentation
%description javadoc %description javadoc
Documentation for the cglib code generation library. 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 export OPT_JAR_LIST=objectweb-asm
ant jar javadoc ant jar javadoc
# Convert to OSGi bundle # Convert to OSGi bundle
pushd dist bnd wrap --output dist/%{name}-%{version}.bar --properties %{SOURCE2} \
java -Dcglib.bundle.version="%{version}" \ --version %{version} dist/%{name}-%{version}.jar
-jar $(build-classpath aqute-bnd) wrap -output %{name}-%{version}.bar -properties %{SOURCE2} %{name}-%{version}.jar
popd
%install %install
install -d -m 755 %{buildroot}%{_javadir} install -d -m 755 %{buildroot}%{_javadir}
@ -69,6 +66,9 @@ cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}
%{_javadocdir}/%{name} %{_javadocdir}/%{name}
%changelog %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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild