commit
55fe4ee377
22
jFormatString-2.0.2.pom
Normal file
22
jFormatString-2.0.2.pom
Normal file
@ -0,0 +1,22 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jFormatString</artifactId>
|
||||
<version>2.0.2</version>
|
||||
<packaging>jar</packaging>
|
||||
<url>http://findbugs.sourceforge.net/</url>
|
||||
<name>FindBugs-jFormatString</name>
|
||||
<description>jFormatString for Findbugs</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:svn:http://findbugs.googlecode.com/svn/trunk/</connection>
|
||||
<developerConnection>scm:svn:https://findbugs.googlecode.com/svn/trunk/</developerConnection>
|
||||
<url>http://findbugs.googlecode.com/svn/trunk/</url>
|
||||
</scm>
|
||||
</project>
|
||||
12
jFormatString-build.patch
Normal file
12
jFormatString-build.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/build.xml b/build.xml
|
||||
index 8334226..51930c5 100644
|
||||
--- a/build.xml
|
||||
+++ b/build.xml
|
||||
@@ -18,7 +18,6 @@
|
||||
<javac destdir="build/classes" source="1.5" target="1.5" debug="on"
|
||||
includeantruntime="false">
|
||||
<src path="src/java" />
|
||||
- <src path="src/junit" />
|
||||
<classpath>
|
||||
<pathelement location="build/classes" />
|
||||
</classpath>
|
||||
68
jFormatString.spec
Normal file
68
jFormatString.spec
Normal file
@ -0,0 +1,68 @@
|
||||
Name: jFormatString
|
||||
Version: 0
|
||||
Release: 0.31.20131227gitf159b88
|
||||
Summary: A checker for Java format string when compile-time
|
||||
License: GPLv2 with exceptions
|
||||
URL: http://code.google.com/p/j-format-string/
|
||||
|
||||
Source0: https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/j-format-string/source-archive.zip
|
||||
#specify project information and configuration
|
||||
Source1: http://search.maven.org/remotecontent?filepath=com/google/code/findbugs/jFormatString/2.0.2/jFormatString-2.0.2.pom
|
||||
#change build path
|
||||
Patch0001: jFormatString-build.patch
|
||||
BuildRequires: javapackages-local ant java-devel java-1.8.0-javadoc jpackage-utils junit
|
||||
Requires: java-headless jpackage-utils
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
A checker for Java format string when compile-time.
|
||||
|
||||
%package help
|
||||
Summary: Help documentation for jFormatString
|
||||
Requires: java-1.8.0-javadoc
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
Help documentation forjFormatString.
|
||||
|
||||
%prep
|
||||
%autosetup -n j-format-string-f159b88a16be -p1
|
||||
|
||||
cp %{SOURCE1} pom.xml
|
||||
|
||||
rm -rfv src/junit lib/*
|
||||
|
||||
%build
|
||||
ant jarFile
|
||||
|
||||
mkdir docs
|
||||
javadoc -d docs -source 1.5 -sourcepath src/java -classpath build/classes \
|
||||
-link file://%{_javadocdir}/java edu.umd.cs.findbugs.formatStringChecker
|
||||
|
||||
%install
|
||||
install -Dp build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||
|
||||
install -d %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%pretrans help -p <lua>
|
||||
path = "%{_javadocdir}/%{name}"
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "link" then
|
||||
os.remove(path)
|
||||
end
|
||||
|
||||
%files -f .mfiles
|
||||
|
||||
%files help
|
||||
%{_javadocdir}/%{name}*
|
||||
|
||||
%changelog
|
||||
* Thu Mar 5 2020 wutao<wutao61@huawei.com> - 0.31.20131227gitf159b88
|
||||
- Package init
|
||||
BIN
source-archive.zip
Normal file
BIN
source-archive.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user