53 lines
1.8 KiB
RPMSpec
53 lines
1.8 KiB
RPMSpec
Name: bcel
|
|
Version: 6.5.0
|
|
Release: 1
|
|
Summary: Byte Code Engineering Library
|
|
License: ASL 2.0
|
|
URL: http://commons.apache.org/proper/commons-bcel/
|
|
Source0: http://archive.apache.org/dist/commons/bcel/source/bcel-%{version}-src.tar.gz
|
|
Patch0: 0001-add-javadoc-plugin.patch
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local maven java-1.8.0-openjdk-devel
|
|
Requires: java-1.8.0-openjdk
|
|
Obsoletes: bcel-javadoc < %{version}-%{release}
|
|
Provides: bcel-javadoc = %{version}-%{release}
|
|
|
|
%description
|
|
The Byte Code Engineering Library (formerly known as JavaClass) is intended to
|
|
give users a convenient possibility to analyze, create, and manipulate (binary)
|
|
Java class files (those ending with .class).
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{name}-%{version}-src
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_remove_plugin :spotbugs-maven-plugin
|
|
%mvn_alias : bcel: apache:
|
|
%mvn_file : %{name}
|
|
|
|
%build
|
|
mvn -DskipTests -Drat.skip=true package
|
|
|
|
%install
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
|
install -d -m 0755 %{buildroot}%{_mavenpomdir}
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
install -pm 0644 target/bcel-%{version}-javadoc.jar %{buildroot}%{_javadocdir}/%{name}
|
|
install -pm 0644 target/bcel-%{version}.jar %{buildroot}%{_javadir}/bcel.jar
|
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/bcel.pom
|
|
%add_maven_depmap bcel.pom bcel.jar
|
|
|
|
%files
|
|
%attr(0644,root,root) %{_datadir}/maven-metadata/bcel.xml
|
|
%attr(0644,root,root) %{_datadir}/java/bcel.jar
|
|
%attr(0644,root,root) %{_datadir}/maven-poms/bcel.pom
|
|
%doc RELEASE-NOTES.txt
|
|
%license LICENSE.txt NOTICE.txt
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|
|
* Wed Jan 19 2022 SimpleUpdate Robot <tc@openeuler.org> - 6.5.0-1
|
|
- Upgrade to version 6.5.0
|
|
|
|
* Thu Dec 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 6.2-4
|
|
- Package init
|