Группа :: Разработка/Прочее
Пакет: xmltool
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
%define fedora 33
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: xmltool
Version: 3.3
Release: alt4_28jpp11
Summary: Tool to manage XML documents through a Fluent Interface
License: ASL 2.0
URL: http://code.google.com/p/xmltool
### upstream only provides binaries or source without build scripts
# tar creation instructions
# svn export http://xmltool.googlecode.com/svn/tags/xmltool-3.3 xmltool
# tar cfJ xmltool-3.3.tar.xz xmltool
Source0: %{name}-%{version}.tar.xz
Patch0: fix-deprecated-assembly-goal.patch
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: maven-assembly-plugin
BuildRequires: maven-local
BuildRequires: maven-remote-resources-plugin
BuildRequires: maven-source-plugin
BuildRequires: maven-surefire-provider-testng
BuildRequires: apache-resource-bundles
Source44: import.info
%description
XMLTool is a very simple Java library to be able to do all sorts of common
operations with an XML document. Java developers often end up writing the same
code for processing XML, transforming, etc. This easy to use class puts it all
together, using the Fluent Interface pattern to facilitate XML manipulations.
%package javadoc
Group: Development/Java
Summary: Javadocs for %{name}
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}
%if 0%{?fedora} >= 26
%patch0 -p0
%endif
# Fix end-of-line encoding
sed -i 's/\r//' LICENSE.txt
%mvn_file : %{name}
# Remove dep on maven-wagon and maven-license plugins
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin com.google.code.maven-license-plugin:maven-license-plugin
# remove maven-compiler-plugin configuration that is broken with Java 11
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration'
%build
# Disable tests because they require an internet connection to run!
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt
%changelog
…
Полный changelog можно просмотреть здесь
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
%define fedora 33
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: xmltool
Version: 3.3
Release: alt4_28jpp11
Summary: Tool to manage XML documents through a Fluent Interface
License: ASL 2.0
URL: http://code.google.com/p/xmltool
### upstream only provides binaries or source without build scripts
# tar creation instructions
# svn export http://xmltool.googlecode.com/svn/tags/xmltool-3.3 xmltool
# tar cfJ xmltool-3.3.tar.xz xmltool
Source0: %{name}-%{version}.tar.xz
Patch0: fix-deprecated-assembly-goal.patch
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: maven-assembly-plugin
BuildRequires: maven-local
BuildRequires: maven-remote-resources-plugin
BuildRequires: maven-source-plugin
BuildRequires: maven-surefire-provider-testng
BuildRequires: apache-resource-bundles
Source44: import.info
%description
XMLTool is a very simple Java library to be able to do all sorts of common
operations with an XML document. Java developers often end up writing the same
code for processing XML, transforming, etc. This easy to use class puts it all
together, using the Fluent Interface pattern to facilitate XML manipulations.
%package javadoc
Group: Development/Java
Summary: Javadocs for %{name}
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}
%if 0%{?fedora} >= 26
%patch0 -p0
%endif
# Fix end-of-line encoding
sed -i 's/\r//' LICENSE.txt
%mvn_file : %{name}
# Remove dep on maven-wagon and maven-license plugins
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin com.google.code.maven-license-plugin:maven-license-plugin
# remove maven-compiler-plugin configuration that is broken with Java 11
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration'
%build
# Disable tests because they require an internet connection to run!
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install
%mvn_install
%files -f .mfiles
%doc LICENSE.txt
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt
%changelog
…
Полный changelog можно просмотреть здесь