Группа :: Разработка/Java
Пакет: java-xmlbuilder
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: rpm-build-java
# END SourceDeps(oneline)
BuildRequires: /proc
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: java-xmlbuilder
Version: 1.1
Release: alt1_8jpp11
Summary: XML Builder Java library for creating XML documents
License: ASL 2.0
Url: https://github.com/jmurty/java-xmlbuilder
Source0: https://github.com/jmurty/java-xmlbuilder/archive/v%{version}.tar.gz
BuildRequires: sonatype-oss-parent
BuildRequires: base64
# test deps
BuildRequires: junit
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildArch: noarch
Source44: import.info
%description
XML Builder is a utility that creates simple XML documents using relatively
sparse Java code.
It is intended to allow for quick and painless creation of XML documents
where you might otherwise be tempted to use concatenated strings, and
where you would rather not face the tedium and verbosity of coding with JAXP.
%package javadoc
Group: Development/Documentation
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
# Unwanted
%pom_remove_plugin :maven-gpg-plugin
# Unwanted - disable source jar
%pom_remove_plugin :maven-source-plugin
# Unwanted - disable javadoc jar
%pom_remove_plugin :maven-javadoc-plugin
# Fix CRLF
sed -i 's/\r//' LICENSE-2.0.txt
#pom_xpath_remove "pom:build/pom:pluginManagement"
%mvn_file :%{name} %{name}
%build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%doc CHANGES.md README.md
%doc --no-dereference LICENSE-2.0.txt
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE-2.0.txt
%changelog
…
Полный changelog можно просмотреть здесь
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: rpm-build-java
# END SourceDeps(oneline)
BuildRequires: /proc
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: java-xmlbuilder
Version: 1.1
Release: alt1_8jpp11
Summary: XML Builder Java library for creating XML documents
License: ASL 2.0
Url: https://github.com/jmurty/java-xmlbuilder
Source0: https://github.com/jmurty/java-xmlbuilder/archive/v%{version}.tar.gz
BuildRequires: sonatype-oss-parent
BuildRequires: base64
# test deps
BuildRequires: junit
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildArch: noarch
Source44: import.info
%description
XML Builder is a utility that creates simple XML documents using relatively
sparse Java code.
It is intended to allow for quick and painless creation of XML documents
where you might otherwise be tempted to use concatenated strings, and
where you would rather not face the tedium and verbosity of coding with JAXP.
%package javadoc
Group: Development/Documentation
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
# Unwanted
%pom_remove_plugin :maven-gpg-plugin
# Unwanted - disable source jar
%pom_remove_plugin :maven-source-plugin
# Unwanted - disable javadoc jar
%pom_remove_plugin :maven-javadoc-plugin
# Fix CRLF
sed -i 's/\r//' LICENSE-2.0.txt
#pom_xpath_remove "pom:build/pom:pluginManagement"
%mvn_file :%{name} %{name}
%build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%doc CHANGES.md README.md
%doc --no-dereference LICENSE-2.0.txt
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE-2.0.txt
%changelog
…
Полный changelog можно просмотреть здесь