2009-04-29 04:30:16 +02:00
|
|
|
#
|
2012-06-13 22:47:01 +02:00
|
|
|
# spec file for package cglib
|
2009-04-29 04:30:16 +02:00
|
|
|
#
|
2023-09-12 14:35:06 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2009-04-29 04:30:16 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-29 14:46:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-04-29 04:30:16 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-12-27 18:29:40 +01:00
|
|
|
%global tarball_name RELEASE_3_3_0
|
2009-04-29 04:30:16 +02:00
|
|
|
Name: cglib
|
2021-12-27 18:29:40 +01:00
|
|
|
Version: 3.3.0
|
2017-05-19 11:00:19 +02:00
|
|
|
Release: 0
|
2012-06-13 22:47:01 +02:00
|
|
|
Summary: Code Generation Library
|
2011-12-06 18:02:47 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 04:30:16 +02:00
|
|
|
Group: Development/Libraries/Java
|
2021-12-27 18:29:40 +01:00
|
|
|
URL: https://github.com/cglib/cglib
|
|
|
|
Source0: https://github.com/cglib/cglib/archive/refs/tags/%{tarball_name}.tar.gz
|
2019-03-05 13:22:09 +01:00
|
|
|
Source1: %{name}-%{version}-build.tar.xz
|
2012-06-13 22:47:01 +02:00
|
|
|
BuildRequires: ant >= 1.6
|
2017-09-18 08:31:32 +02:00
|
|
|
BuildRequires: fdupes
|
2018-05-16 11:08:01 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2023-09-12 14:32:48 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2018-12-11 13:30:13 +01:00
|
|
|
BuildRequires: objectweb-asm >= 5
|
2012-06-13 22:47:01 +02:00
|
|
|
Provides: %{name}-nohook = %{version}-%{release}
|
2013-08-28 15:30:09 +02:00
|
|
|
Obsoletes: %{name}-nohook < %{version}-%{release}
|
2017-05-19 11:00:19 +02:00
|
|
|
BuildArch: noarch
|
2009-04-29 04:30:16 +02:00
|
|
|
|
2012-06-13 22:47:01 +02:00
|
|
|
%description
|
2009-04-29 04:30:16 +02:00
|
|
|
cglib is a powerful, high performance and quality Code Generation
|
|
|
|
Library, It is used to extend JAVA classes and implements interfaces at
|
|
|
|
runtime.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Code Generation Library
|
2019-03-05 13:22:09 +01:00
|
|
|
Group: Documentation/HTML
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
cglib is a powerful, high performance and quality Code Generation
|
|
|
|
Library, It is used to extend JAVA classes and implements interfaces at
|
|
|
|
runtime.
|
|
|
|
|
|
|
|
%prep
|
2019-03-05 13:22:09 +01:00
|
|
|
%setup -q -n %{name}-%{tarball_name} -a1
|
|
|
|
|
|
|
|
%pom_disable_module cglib-nodep
|
|
|
|
%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
|
|
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
|
|
|
2022-04-27 09:46:01 +02:00
|
|
|
%pom_remove_dep -r junit:junit
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%build
|
2019-03-05 13:22:09 +01:00
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s -p lib objectweb-asm/asm ant/ant ant/ant-launcher
|
2022-04-27 09:46:01 +02:00
|
|
|
%{ant} \
|
2019-03-05 13:22:09 +01:00
|
|
|
-Dtest.skip=true \
|
|
|
|
-Dcompiler.target=1.8 -Dcompiler.source=1.8 \
|
|
|
|
package javadoc
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%install
|
2019-03-05 13:22:09 +01:00
|
|
|
|
2009-04-29 04:30:16 +02:00
|
|
|
# jars
|
2019-03-05 13:22:09 +01:00
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
install -pm 0644 %{name}/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
|
|
|
install -pm 0644 %{name}-sample/target/%{name}-sample-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}-sample.jar
|
|
|
|
|
|
|
|
# poms
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
2023-09-12 14:32:48 +02:00
|
|
|
%mvn_install_pom %{name}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
2019-03-05 13:22:09 +01:00
|
|
|
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar -a "net.sf.cglib:cglib,cglib:cglib-full,cglib:cglib-nodep,org.sonatype.sisu.inject:cglib"
|
2023-09-12 14:32:48 +02:00
|
|
|
%mvn_install_pom %{name}-sample/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-sample.pom
|
2019-03-05 13:22:09 +01:00
|
|
|
%add_maven_depmap %{name}/%{name}-sample.pom %{name}/%{name}-sample.jar
|
2012-06-13 22:47:01 +02:00
|
|
|
|
2009-04-29 04:30:16 +02:00
|
|
|
# javadoc
|
2019-03-05 13:22:09 +01:00
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -r %{name}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE NOTICE
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%files javadoc
|
2013-08-28 15:30:09 +02:00
|
|
|
%{_javadocdir}/%{name}
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%changelog
|