package init
This commit is contained in:
parent
6aa74b39df
commit
4c27c4faad
50
juniversalchardet-1.0.3-build.patch
Normal file
50
juniversalchardet-1.0.3-build.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
--- build.xml 2008-07-23 14:46:29.000000000 +0200
|
||||||
|
+++ build.xml-gil 2013-01-21 11:49:53.832802087 +0100
|
||||||
|
@@ -72,7 +72,7 @@
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
- <target name="example" depends="dist">
|
||||||
|
+ <target name="example">
|
||||||
|
<javac sourcepath=""
|
||||||
|
srcdir="${example}"
|
||||||
|
destdir="${example}"
|
||||||
|
@@ -83,6 +83,10 @@
|
||||||
|
<exclude name="**/.svn/"/>
|
||||||
|
<exclude name="**/*Test.java"/>
|
||||||
|
</javac>
|
||||||
|
+ <jar destfile="${dist}/juniversalchardet-example-${version}.jar"
|
||||||
|
+ basedir="${example}"
|
||||||
|
+ excludes="**/.svn/"
|
||||||
|
+ />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="dist" depends="compile">
|
||||||
|
@@ -100,4 +104,27 @@
|
||||||
|
</fileset>
|
||||||
|
</delete>
|
||||||
|
</target>
|
||||||
|
+
|
||||||
|
+ <target name="javadoc">
|
||||||
|
+ <mkdir dir="${dist}/docs"/>
|
||||||
|
+ <tstamp>
|
||||||
|
+ <format property="year" pattern="yyyy" />
|
||||||
|
+ </tstamp>
|
||||||
|
+ <javadoc
|
||||||
|
+ destdir="${dist}/docs"
|
||||||
|
+ sourcepath="${src}"
|
||||||
|
+ access="protected"
|
||||||
|
+ old="false"
|
||||||
|
+ source="1.5"
|
||||||
|
+ verbose="false"
|
||||||
|
+ version="true"
|
||||||
|
+ use="true"
|
||||||
|
+ author="true"
|
||||||
|
+ windowtitle="juniversalchardet ${version} API">
|
||||||
|
+ <classpath refid="example.classpath"/>
|
||||||
|
+ <doctitle><![CDATA[<h2>juniversalchardet ${version} API</h2>]]></doctitle>
|
||||||
|
+ <bottom><![CDATA[<i>Copyright © ${year}. All rights reserved</i>]]></bottom>
|
||||||
|
+ </javadoc>
|
||||||
|
+ </target>
|
||||||
|
+
|
||||||
|
</project>
|
||||||
46
juniversalchardet-1.0.3.pom
Normal file
46
juniversalchardet-1.0.3.pom
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>com.googlecode.juniversalchardet</groupId>
|
||||||
|
<artifactId>juniversalchardet</artifactId>
|
||||||
|
<version>1.0.3</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>juniversalchardet</name>
|
||||||
|
<description>Java port of universalchardet</description>
|
||||||
|
<url>http://juniversalchardet.googlecode.com/</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Mozilla Public License 1.1 (MPL 1.1)</name>
|
||||||
|
<url>http://www.mozilla.org/MPL/MPL-1.1.html</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<scm>
|
||||||
|
<connection>scm:svn:http://juniversalchardet.googlecode.com/svn/trunk/</connection>
|
||||||
|
<url>http://code.google.com/p/juniversalchardet/source/browse/</url>
|
||||||
|
</scm>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<id>takscape</id>
|
||||||
|
<email>takscape@gmail.com</email>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
<build>
|
||||||
|
<sourceDirectory>${basedir}/src</sourceDirectory>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>2.3.2</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.5</source>
|
||||||
|
<target>1.5</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>us-ascii</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
</project>
|
||||||
Binary file not shown.
52
juniversalchardet.spec
Normal file
52
juniversalchardet.spec
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
%global githash 3fd330c443272699cd8ba5d7da7e56c27a567ec1
|
||||||
|
Name: juniversalchardet
|
||||||
|
Version: 1.0.3
|
||||||
|
Release: 1
|
||||||
|
Summary: A Java port of Mozilla's universalchardet
|
||||||
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
||||||
|
URL: https://github.com/thkoch2001/juniversalchardet
|
||||||
|
Source0: https://github.com/thkoch2001/juniversalchardet/archive/%{githash}/%{name}-%{githash}.tar.gz
|
||||||
|
Source1: http://repo1.maven.org/maven2/com/googlecode/%{name}/%{name}/%{version}/%{name}-%{version}.pom
|
||||||
|
Patch0: %{name}-1.0.3-build.patch
|
||||||
|
BuildRequires: ant java-devel javapackages-local
|
||||||
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
juniversalchardet is a Java port of 'universalchardet',
|
||||||
|
that is the encoding detector library of Mozilla.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
Provides: %{name}-javadoc = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||||
|
%description help
|
||||||
|
This package contains javadoc for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{githash}
|
||||||
|
find . -name "*.class" -delete
|
||||||
|
find . -name "*.jar" -delete
|
||||||
|
%patch0 -p0
|
||||||
|
sed -i 's/1.5/1.6/' build.xml
|
||||||
|
sed -i 's/\r//' readme.txt
|
||||||
|
|
||||||
|
%build
|
||||||
|
%ant dist javadoc example
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_artifact %{SOURCE1} dist/%{name}-%{version}.jar
|
||||||
|
%mvn_file com.googlecode.%{name}:%{name} %{name}
|
||||||
|
%mvn_install -J dist/docs
|
||||||
|
install -pm 644 dist/%{name}-example-%{version}.jar \
|
||||||
|
%{buildroot}%{_javadir}/%{name}-example.jar
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%{_javadir}/%{name}-example.jar
|
||||||
|
%doc readme.txt
|
||||||
|
%license MPL-1.1.txt
|
||||||
|
|
||||||
|
%files help -f .mfiles-javadoc
|
||||||
|
%license MPL-1.1.txt
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 24 2020 wangyue <wangyue92@huawei.com> - 1.0.3-1
|
||||||
|
- package init
|
||||||
5
juniversalchardet.yaml
Normal file
5
juniversalchardet.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/thkoch2001/juniversalchardet
|
||||||
|
version_control: github
|
||||||
|
src_repo: thkoch2001/juniversalchardet
|
||||||
|
tag_prefix: "^juniversalchardet-"
|
||||||
|
seperator: "_"
|
||||||
Loading…
x
Reference in New Issue
Block a user