Группа :: Разработка/Java
Пакет: relaxngDatatype2011.1
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define oldname relaxngDatatype
Epoch: 0
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: relaxngDatatype2011.1
Version: 2011.1
Release: alt2_15jpp11
Summary: RELAX NG Datatype API
License: BSD
URL: https://github.com/java-schema-utilities/relaxng-datatype-java
BuildArch: noarch
Source0: https://github.com/java-schema-utilities/relaxng-datatype-java/archive/relaxngDatatype-%{version}.tar.gz
# License is not available in the tarball, this copy fetched from the tarball on the old sourceforge.net site
Source1: copying.txt
BuildRequires: maven-local
Source44: import.info
%description
RELAX NG is a public space for test cases and other ancillary software
related to the construction of the RELAX NG language and its
implementations.
%package javadoc
Group: Development/Documentation
Summary: API documentation for %{oldname}
BuildArch: noarch
%description javadoc
This package provides %{summary}.
%prep
%setup -q -n relaxng-datatype-java-relaxngDatatype-%{version}
cp -p %{SOURCE1} .
# remove unnecessary dependency on parent POM
%pom_remove_parent
%pom_xpath_remove "pom:build/pom:extensions"
# For compatibility
%mvn_alias "com.github.relaxng:relaxngDatatype" "relaxngDatatype:relaxngDatatype"
# remove maven-compiler-plugin configuration that is broken with Java 11
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration'
%mvn_compat_version : 20020414 %{version}
%build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%dir %{_javadir}/%name
%doc copying.txt
%files javadoc -f .mfiles-javadoc
%doc copying.txt
%changelog
…
Полный changelog можно просмотреть здесь
Epoch: 0
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: relaxngDatatype2011.1
Version: 2011.1
Release: alt2_15jpp11
Summary: RELAX NG Datatype API
License: BSD
URL: https://github.com/java-schema-utilities/relaxng-datatype-java
BuildArch: noarch
Source0: https://github.com/java-schema-utilities/relaxng-datatype-java/archive/relaxngDatatype-%{version}.tar.gz
# License is not available in the tarball, this copy fetched from the tarball on the old sourceforge.net site
Source1: copying.txt
BuildRequires: maven-local
Source44: import.info
%description
RELAX NG is a public space for test cases and other ancillary software
related to the construction of the RELAX NG language and its
implementations.
%package javadoc
Group: Development/Documentation
Summary: API documentation for %{oldname}
BuildArch: noarch
%description javadoc
This package provides %{summary}.
%prep
%setup -q -n relaxng-datatype-java-relaxngDatatype-%{version}
cp -p %{SOURCE1} .
# remove unnecessary dependency on parent POM
%pom_remove_parent
%pom_xpath_remove "pom:build/pom:extensions"
# For compatibility
%mvn_alias "com.github.relaxng:relaxngDatatype" "relaxngDatatype:relaxngDatatype"
# remove maven-compiler-plugin configuration that is broken with Java 11
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration'
%mvn_compat_version : 20020414 %{version}
%build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%dir %{_javadir}/%name
%doc copying.txt
%files javadoc -f .mfiles-javadoc
%doc copying.txt
%changelog
…
Полный changelog можно просмотреть здесь