diff --git a/bcel-20140707svn1547656.tgz b/bcel-20140707svn1547656.tgz new file mode 100644 index 0000000..f63bd3f Binary files /dev/null and b/bcel-20140707svn1547656.tgz differ diff --git a/bcel-findbugs-6.0.pom b/bcel-findbugs-6.0.pom new file mode 100644 index 0000000..8866dec --- /dev/null +++ b/bcel-findbugs-6.0.pom @@ -0,0 +1,152 @@ + + + 4.0.0 + com.google.code.findbugs + bcel-findbugs + 6.0 + jar + http://findbugs.sourceforge.net/ + FindBugs-bcel + Modified BCEL for Findbugs + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + scm:git:http://code.google.com/p/findbugs/ + scm:git:https://code.google.com/p/findbugs/ + https://code.google.com/p/findbugs/ + + + + + bp + Bill Pugh + pugh at cs.umd.edu + http://www.cs.umd.edu/~pugh/ + + Project Lead + Primary Developer + + -5 + + + al + Andrey Loskutov + Loskutov@gmx.de + http://andrei.gmxhome.de/privat.html + + Eclipse plugin + + +1 + + + bp + Keith Lea + + http://keithlea.com/ + + web cloud + + -5 + + + + + Garvin LeClaire + garvin.leclaire@gmail.com + + + Maven + + -5 + + + David H. Hovemeyer + dhovemey@ycp.edu + http://goose.ycp.edu/~dhovemey/ + + project founder + + -5 + + + Nay Ayewah + + + + + + -5 + + + Ben Langmead + + + + + + -5 + + + Tomas Pollak + + + + Eclipse plugin tests + + -5 + + + Phil Crosby + + + + + + -5 + + + Peter Friese + + + + Eclipse plugin + + -5 + + + Dave Brosius + + + + + + -5 + + + Brian Goetz + + + + + + -5 + + + Rohan Lloyd + + + + + + -5 + + + + diff --git a/findbugs-bcel.spec b/findbugs-bcel.spec new file mode 100644 index 0000000..d4794e5 --- /dev/null +++ b/findbugs-bcel.spec @@ -0,0 +1,71 @@ +Name: findbugs-bcel +Version: 6.0 +Release: 0.13.20140707svn1547656 +Summary: A Library for FindBugs provides Byte Code + +License: ASL 2.0 +URL: http://commons.apache.org/proper/commons-bcel/ +#This archive was created with: +#svn export http://svn.apache.org/repos/asf/commons/_moved_to_git/bcel/trunk -r 1547656 bcel-6.0 +#tar -Jcf bcel-20140707svn1547656.tar.xz bcel-6.0 +Source0: bcel-20140707svn1547656.tgz +#specify project information and configuration +Source1: http://central.maven.org/maven2/com/google/code/findbugs/bcel-findbugs/%{version}/bcel-findbugs-%{version}.pom + +BuildRequires: javapackages-local java-devel, jpackage-utils +Requires: java-headless, jpackage-utils +BuildArch: noarch + +%description +This is a Byte Code Engineering Library (BCEL) provided for +FindBugs 3.0. + +%package help +Summary: Help documents for findbugs-bcel +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +Help documents for findbugs-bcel. + +%prep +%autosetup -n bcel-%{version} -p1 + +%build +mkdir classes +find src/main/java -type f -name '*.java' | xargs javac -g -d classes -source 1.5 -encoding ISO8859-1 +cd classes +jar cf findbugs-bcel.jar org +cd .. + +mkdir javadoc +find src/main/java -type f -name '*.java' | xargs javadoc -sourcepath src/main/java \ + -classpath classes -source 1.5 -encoding ISO8859-1 -d javadoc -Xdoclint:none + +%install +install -Dp classes/findbugs-bcel.jar $RPM_BUILD_ROOT%{_javadir}/findbugs-bcel.jar +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom + +%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "com.google.code.findbugs:bcel" + +install -d $RPM_BUILD_ROOT%{_javadocdir} +cp -a javadoc $RPM_BUILD_ROOT%{_javadocdir}/findbugs-bcel + +%pretrans help -p +path = "%{_javadocdir}/%{name}" +st = posix.stat(path) +if st and st.type == "link" then + os.remove(path) +end + +%files -f .mfiles +%doc LICENSE.txt + +%files help +%doc LICENSE.txt NOTICE.txt README.txt +%{_javadocdir}/findbugs-bcel* + +%changelog +* Thu Mar 5 2020 wutao - 6.0-0.13.20140707svn1547656 +- Package init