Cleanup
OBS-URL: https://build.opensuse.org/package/show/Java:packages/juniversalchardet?expand=0&rev=2
This commit is contained in:
parent
fa541c87cd
commit
08778067de
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package juniversalchardet
|
# spec file for package juniversalchardet
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,26 +12,27 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: juniversalchardet
|
Name: juniversalchardet
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Encoding detector library
|
Summary: Encoding detector library
|
||||||
License: MPL-1.1
|
License: MPL-1.1
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
Url: https://code.google.com/archive/p/juniversalchardet/
|
URL: https://code.google.com/archive/p/juniversalchardet/
|
||||||
Source0: https://repo1.maven.org/maven2/com/googlecode/%{name}/%{name}/%{version}/%{name}-%{version}-sources.jar
|
Source0: https://repo1.maven.org/maven2/com/googlecode/%{name}/%{name}/%{version}/%{name}-%{version}-sources.jar
|
||||||
Source1: https://repo1.maven.org/maven2/com/googlecode/%{name}/%{name}/%{version}/%{name}-%{version}.pom
|
Source1: https://repo1.maven.org/maven2/com/googlecode/%{name}/%{name}/%{version}/%{name}-%{version}.pom
|
||||||
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: java-devel >= 11
|
BuildRequires: java-devel >= 11
|
||||||
BuildRequires: java-javadoc >= 11
|
BuildRequires: java-javadoc >= 11
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: xmvn
|
BuildRequires: xmvn
|
||||||
BuildRequires: fdupes
|
BuildArch: noarch
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JUNIVERSALCHARDET is a Java port of 'universalchardet', that is the encoding
|
JUNIVERSALCHARDET is a Java port of 'universalchardet', that is the encoding
|
||||||
@ -39,15 +40,16 @@ detector library of Mozilla.
|
|||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: API documentation for %{name}
|
Summary: API documentation for %{name}
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
API documentation for %{name}.
|
API documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -T -c
|
%setup -q -T -c
|
||||||
mkdir -p src/main/java
|
mkdir -p src/main/java
|
||||||
env -C src/main/java jar -xvf %{S:0}
|
env -C src/main/java jar -xvf %{SOURCE0}
|
||||||
cp %{S:2} LICENSE.txt
|
cp %{SOURCE2} LICENSE.txt
|
||||||
cp %{S:3} .
|
cp %{SOURCE3} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p target/classes
|
mkdir -p target/classes
|
||||||
@ -61,18 +63,15 @@ javadoc -encoding UTF-8 \
|
|||||||
org.mozilla.universalchardet
|
org.mozilla.universalchardet
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_artifact %{S:1} %{name}-%{version}.jar
|
%{mvn_artifact} %{SOURCE1} %{name}-%{version}.jar
|
||||||
%mvn_install -J target/apidocs/
|
%mvn_install -J target/apidocs/
|
||||||
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README.txt
|
%doc README.txt
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%defattr(-,root,root)
|
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user