forked from pool/juniversalchardet
This commit is contained in:
parent
08778067de
commit
02200d08eb
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 27 19:00:40 UTC 2021 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Do not use xmvn-install and xmvn-resolve, since this package
|
||||||
|
does not need them at all because its pom file is very simple
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 11 08:49:03 UTC 2021 - Anton Shvetz <shvetz.anton@gmail.com>
|
Fri Jun 11 08:49:03 UTC 2021 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||||
|
|
||||||
|
@ -28,10 +28,8 @@ Source1: https://repo1.maven.org/maven2/com/googlecode/%{name}/%{name}/%{
|
|||||||
Source2: https://www.mozilla.org/media/MPL/1.1/index.0c5913925d40.txt
|
Source2: https://www.mozilla.org/media/MPL/1.1/index.0c5913925d40.txt
|
||||||
Source3: README.txt
|
Source3: README.txt
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 11
|
BuildRequires: java-devel >= 1.6
|
||||||
BuildRequires: java-javadoc >= 11
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: maven-local
|
|
||||||
BuildRequires: xmvn
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -47,31 +45,41 @@ API documentation for %{name}.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -T -c
|
%setup -q -T -c
|
||||||
mkdir -p src/main/java
|
mkdir -p src/main/java
|
||||||
env -C src/main/java jar -xvf %{SOURCE0}
|
pushd src/main/java
|
||||||
|
jar -xvf %{SOURCE0}
|
||||||
|
popd
|
||||||
cp %{SOURCE2} LICENSE.txt
|
cp %{SOURCE2} LICENSE.txt
|
||||||
cp %{SOURCE3} .
|
cp %{SOURCE3} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p target/classes
|
mkdir -p target/classes
|
||||||
javac -encoding UTF-8 -sourcepath src/main/java -d target/classes $(find src/main/java -name \*.java)
|
javac -source 6 -target 6 -encoding UTF-8 -sourcepath src/main/java -d target/classes $(find src/main/java -name \*.java)
|
||||||
jar -cvf %{name}-%{version}.jar -C target/classes .
|
jar -cvf %{name}-%{version}.jar -C target/classes .
|
||||||
javadoc -encoding UTF-8 \
|
javadoc -source 6 -encoding UTF-8 \
|
||||||
-d target/apidocs \
|
-d target/apidocs \
|
||||||
-sourcepath src/main/java \
|
-sourcepath src/main/java \
|
||||||
-link file://%{_javadocdir}/java \
|
-link file://%{_javadocdir}/java \
|
||||||
-Xdoclint:none \
|
|
||||||
org.mozilla.universalchardet
|
org.mozilla.universalchardet
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{mvn_artifact} %{SOURCE1} %{name}-%{version}.jar
|
# jar
|
||||||
%mvn_install -J target/apidocs/
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||||
|
install -pm 0644 %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
||||||
|
# pom
|
||||||
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||||
|
install -pm 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||||
|
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
|
||||||
|
# javadoc
|
||||||
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -r target/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%doc README.txt
|
%doc README.txt
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user