Upgrade to latest 3.2.4 release.
- Resolves RHBZ#1352315
This commit is contained in:
parent
70b9db7e27
commit
2f9576fd90
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@ cglib-src-2.2.jar
|
|||||||
/cglib-3.0.pom
|
/cglib-3.0.pom
|
||||||
/cglib-src-3.1.jar
|
/cglib-src-3.1.jar
|
||||||
/cglib-3.1.pom
|
/cglib-3.1.pom
|
||||||
|
/RELEASE_3_2_4.tar.gz
|
||||||
|
/cglib-RELEASE_3_2_4
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
Bundle-Name= Java code generation library
|
|
||||||
Bundle-SymbolicName= net.sf.cglib.core
|
|
||||||
Export-Package=net.*
|
|
||||||
Import-Package=org.apache.tools.*;resolution:=optional,*
|
|
68
cglib.spec
68
cglib.spec
@ -1,18 +1,20 @@
|
|||||||
|
%global tarball_name RELEASE_3_2_4
|
||||||
|
|
||||||
Name: cglib
|
Name: cglib
|
||||||
Version: 3.1
|
Version: 3.2.4
|
||||||
Release: 10%{?dist}
|
Release: 1%{?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
|
||||||
Url: http://cglib.sourceforge.net/
|
Url: https://github.com/cglib/cglib
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar
|
Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
|
||||||
Source1: https://repo1.maven.org/maven2/cglib/cglib/%{version}/cglib-%{version}.pom
|
|
||||||
Source2: bnd.properties
|
|
||||||
|
|
||||||
BuildRequires: ant
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: maven-plugin-bundle
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: objectweb-asm
|
BuildRequires: mvn(org.apache.ant:ant)
|
||||||
BuildRequires: unzip
|
BuildRequires: mvn(org.ow2.asm:asm)
|
||||||
BuildRequires: aqute-bnd
|
BuildRequires: mvn(junit:junit)
|
||||||
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -27,33 +29,35 @@ Summary: Javadoc for %{name}
|
|||||||
Documentation for the cglib code generation library.
|
Documentation for the cglib code generation library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c %{name}-%{version}
|
%setup -q -n %{name}-%{tarball_name}
|
||||||
cp -p %{SOURCE1} pom.xml
|
|
||||||
|
|
||||||
rm lib/*.jar
|
%pom_disable_module cglib-nodep
|
||||||
build-jar-repository -s lib objectweb-asm ant
|
%pom_disable_module cglib-integration-test
|
||||||
|
%pom_disable_module cglib-jmh
|
||||||
|
%pom_xpath_set pom:packaging 'bundle' cglib
|
||||||
|
%pom_xpath_inject pom:build/pom:plugins '<plugin>
|
||||||
|
<groupId>org.apache.felix</groupId>
|
||||||
|
<artifactId>maven-bundle-plugin</artifactId>
|
||||||
|
<version>1.4.0</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<instructions>
|
||||||
|
<Bundle-SymbolicName>net.sf.cglib.core</Bundle-SymbolicName>
|
||||||
|
<Export-Package>net.*</Export-Package>
|
||||||
|
<Import-Package>org.apache.tools.*;resolution:=optional,*</Import-Package>
|
||||||
|
</instructions>
|
||||||
|
</configuration>
|
||||||
|
</plugin>' cglib
|
||||||
|
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
|
||||||
|
%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin cglib-sample
|
||||||
|
|
||||||
# Remove the repackaging step that includes other jars into the final thing
|
|
||||||
sed -i "/<taskdef name=.jarjar/,/<.jarjar>/d" build.xml
|
|
||||||
sed -i '/doctitle/a additionalparam="-Xdoclint:none"' build.xml
|
|
||||||
|
|
||||||
%pom_xpath_remove "pom:dependency[pom:artifactId = 'asm-util']/pom:optional"
|
|
||||||
%pom_xpath_set "pom:dependency[pom:groupId = 'ant']/pom:groupId" "org.apache.ant"
|
|
||||||
|
|
||||||
%mvn_file :cglib cglib
|
|
||||||
%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib"
|
%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
ant jar javadoc
|
%mvn_build
|
||||||
# Convert to OSGi bundle
|
|
||||||
bnd wrap --output dist/cglib-%{version}.bar --properties %{SOURCE2} \
|
|
||||||
--version %{version} dist/cglib-%{version}.jar
|
|
||||||
|
|
||||||
mv dist/cglib-%{version}.bar dist/cglib-%{version}.jar
|
|
||||||
%mvn_artifact pom.xml dist/cglib-%{version}.jar
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install -J docs
|
%mvn_install
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
@ -62,6 +66,10 @@ mv dist/cglib-%{version}.bar dist/cglib-%{version}.jar
|
|||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 07 2016 Severin Gehwolf <sgehwolf@redhat.com> - 3.2.4-1
|
||||||
|
- Upgrade to latest 3.2.4 release.
|
||||||
|
- Resolves RHBZ#1352315
|
||||||
|
|
||||||
* Mon Feb 22 2016 Mat Booth <mat.booth@redhat.com> - 3.1-10
|
* Mon Feb 22 2016 Mat Booth <mat.booth@redhat.com> - 3.1-10
|
||||||
- Make ant an optional dependency
|
- Make ant an optional dependency
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user