diff --git a/bcel-6.2-src.tar.gz b/bcel-6.2-src.tar.gz new file mode 100644 index 0000000..be2f8b5 Binary files /dev/null and b/bcel-6.2-src.tar.gz differ diff --git a/bcel.spec b/bcel.spec new file mode 100644 index 0000000..99f8715 --- /dev/null +++ b/bcel.spec @@ -0,0 +1,41 @@ +Name: bcel +Version: 6.2 +Release: 4 +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 +BuildArch: noarch +BuildRequires: maven-local mvn(org.apache.commons:commons-parent:pom:) mvn(junit:junit) +BuildRequires: mvn(net.java.dev.jna:jna) mvn(net.java.dev.jna:jna-platform) mvn(org.apache.commons:commons-lang3) +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 -n %{name}-%{version}-src +%pom_remove_plugin :maven-source-plugin +%mvn_alias : bcel: apache: +%mvn_file : %{name} + +%build +%mvn_build + +%install +%mvn_install + +%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 +* Thu Dec 7 2019 openEuler Buildteam - 6.2-4 +- Package init