diff --git a/_service:download_files:index.0c5913925d40.txt b/index.0c5913925d40.txt similarity index 100% rename from _service:download_files:index.0c5913925d40.txt rename to index.0c5913925d40.txt diff --git a/_service:download_files:juniversalchardet-1.0.3-sources.jar b/juniversalchardet-1.0.3-sources.jar similarity index 100% rename from _service:download_files:juniversalchardet-1.0.3-sources.jar rename to juniversalchardet-1.0.3-sources.jar diff --git a/_service:download_files:juniversalchardet-1.0.3.pom b/juniversalchardet-1.0.3.pom similarity index 100% rename from _service:download_files:juniversalchardet-1.0.3.pom rename to juniversalchardet-1.0.3.pom diff --git a/juniversalchardet.spec b/juniversalchardet.spec index 1e0fbdc..e759458 100644 --- a/juniversalchardet.spec +++ b/juniversalchardet.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 Version: 1.0.3 Release: 0 -Summary: Encoding detector library +Summary: Encoding detector library License: MPL-1.1 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 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 -Source3: README.txt +Source2: https://www.mozilla.org/media/MPL/1.1/index.0c5913925d40.txt +Source3: README.txt +BuildRequires: fdupes BuildRequires: java-devel >= 11 BuildRequires: java-javadoc >= 11 BuildRequires: maven-local BuildRequires: xmvn -BuildRequires: fdupes -BuildArch: noarch +BuildArch: noarch %description JUNIVERSALCHARDET is a Java port of 'universalchardet', that is the encoding @@ -39,15 +40,16 @@ detector library of Mozilla. %package javadoc Summary: API documentation for %{name} + %description javadoc API documentation for %{name}. %prep -%setup -T -c +%setup -q -T -c mkdir -p src/main/java -env -C src/main/java jar -xvf %{S:0} -cp %{S:2} LICENSE.txt -cp %{S:3} . +env -C src/main/java jar -xvf %{SOURCE0} +cp %{SOURCE2} LICENSE.txt +cp %{SOURCE3} . %build mkdir -p target/classes @@ -61,18 +63,15 @@ javadoc -encoding UTF-8 \ org.mozilla.universalchardet %install -%mvn_artifact %{S:1} %{name}-%{version}.jar +%{mvn_artifact} %{SOURCE1} %{name}-%{version}.jar %mvn_install -J target/apidocs/ %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles -%defattr(-,root,root) %doc README.txt %license LICENSE.txt %files javadoc -f .mfiles-javadoc -%defattr(-,root,root) %license LICENSE.txt %changelog -