Группа :: Разработка/Прочее
Пакет: jnr-enxio
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jnr-enxio
Version: 0.19
Release: alt1_8jpp11
Summary: Unix sockets for Java
# src/main/java/jnr/enxio/channels/PollSelectionKey.java is LGPLv3
# rest of the source code is ASL 2.0
License: ASL 2.0 and LGPLv3
URL: https://github.com/jnr/%{name}/
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
# Avoid split-package situation, this patch submitted upstream here: https://github.com/jnr/jnr-enxio/pull/26
Patch0: 0001-Add-enxio-classes-from-jnr-unixsocket.patch
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(com.github.jnr:jnr-constants)
BuildRequires: mvn(com.github.jnr:jnr-ffi)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
Source44: import.info
%description
Unix sockets for Java.
%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}-%{name}-%{version}
%patch0 -p1
find ./ -name '*.jar' -delete
find ./ -name '*.class' -delete
# remove unnecessary dependency on parent POM
%pom_remove_parent
# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%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 --no-dereference LICENSE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jnr-enxio
Version: 0.19
Release: alt1_8jpp11
Summary: Unix sockets for Java
# src/main/java/jnr/enxio/channels/PollSelectionKey.java is LGPLv3
# rest of the source code is ASL 2.0
License: ASL 2.0 and LGPLv3
URL: https://github.com/jnr/%{name}/
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
# Avoid split-package situation, this patch submitted upstream here: https://github.com/jnr/jnr-enxio/pull/26
Patch0: 0001-Add-enxio-classes-from-jnr-unixsocket.patch
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(com.github.jnr:jnr-constants)
BuildRequires: mvn(com.github.jnr:jnr-ffi)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
Source44: import.info
%description
Unix sockets for Java.
%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}-%{name}-%{version}
%patch0 -p1
find ./ -name '*.jar' -delete
find ./ -name '*.class' -delete
# remove unnecessary dependency on parent POM
%pom_remove_parent
# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%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 --no-dereference LICENSE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE
%changelog
…
Полный changelog можно просмотреть здесь