Репозитории ALT
S: | 3.3.0-alt1_7jpp11 |
5.1: | 2.1.3-alt5_4jpp5 |
4.1: | 2.1.3-alt5_2jpp1.7 |
4.0: | 2.1.3-alt5_2jpp1.7 |
Группа :: Разработка/Java
Пакет: cglib
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# %%version is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define version 3.3.0
%bcond_with bootstrap
%global tarball_name RELEASE_%(echo '%{version}' | tr . _)
Name: cglib
Version: 3.3.0
Release: alt1_7jpp11
Summary: Code Generation Library for Java
# ASM MethodVisitor is based on ASM code and therefore
# BSD-licensed. Everything else is ASL 2.0.
License: ASL 2.0 and BSD
URL: https://github.com/cglib/cglib
BuildArch: noarch
Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
Patch0: 0001-Remove-unused-import.patch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
%endif
Source44: import.info
%description
cglib is a powerful, high performance and quality code generation library
for Java. It is used to extend Java classes and implements interfaces
at run-time.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
Documentation for the cglib code generation library.
%prep
%setup -q -n %{name}-%{tarball_name}
%patch0 -p1
# remove unnecessary dependency on parent POM
%pom_remove_parent
%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
%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib"
%build
# 5 tests fail with OpenJDK 11
# Forwarded upstream: https://github.com/cglib/cglib/issues/119
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Djava.version.source=1.7 -Djava.version.target=1.7
%install
%mvn_install
%files -f .mfiles
%doc --no-dereference LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE NOTICE
%changelog
…
Полный changelog можно просмотреть здесь
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# %%version is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define version 3.3.0
%bcond_with bootstrap
%global tarball_name RELEASE_%(echo '%{version}' | tr . _)
Name: cglib
Version: 3.3.0
Release: alt1_7jpp11
Summary: Code Generation Library for Java
# ASM MethodVisitor is based on ASM code and therefore
# BSD-licensed. Everything else is ASL 2.0.
License: ASL 2.0 and BSD
URL: https://github.com/cglib/cglib
BuildArch: noarch
Source0: https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
Patch0: 0001-Remove-unused-import.patch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
%endif
Source44: import.info
%description
cglib is a powerful, high performance and quality code generation library
for Java. It is used to extend Java classes and implements interfaces
at run-time.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
Documentation for the cglib code generation library.
%prep
%setup -q -n %{name}-%{tarball_name}
%patch0 -p1
# remove unnecessary dependency on parent POM
%pom_remove_parent
%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
%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib"
%build
# 5 tests fail with OpenJDK 11
# Forwarded upstream: https://github.com/cglib/cglib/issues/119
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Djava.version.source=1.7 -Djava.version.target=1.7
%install
%mvn_install
%files -f .mfiles
%doc --no-dereference LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE NOTICE
%changelog
…
Полный changelog можно просмотреть здесь