Группа :: Разработка/Java
Пакет: jnr-posix
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jnr-posix
Version: 3.0.47
Release: alt1_8jpp11
Summary: Java Posix layer
License: CPL or GPLv2+ or LGPLv2+
URL: http://github.com/jnr/jnr-posix
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
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)
BuildArch: noarch
Source44: import.info
%description
jnr-posix is a lightweight cross-platform POSIX emulation layer for Java,
written in Java and is part of the JNR project
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
# fix test which assumes that there is a group named "nogroup"
sed -i 's|"nogroup"|"root"|' src/test/java/jnr/posix/GroupTest.java
# remove unnecessary dependency on parent POM
%pom_remove_parent
# Remove useless wagon extension.
%pom_xpath_remove "pom:build/pom:extensions"
# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%build
%mvn_build -f
%install
%mvn_install
%files -f .mfiles
%doc README.md
%doc --no-dereference LICENSE.txt
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE.txt
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jnr-posix
Version: 3.0.47
Release: alt1_8jpp11
Summary: Java Posix layer
License: CPL or GPLv2+ or LGPLv2+
URL: http://github.com/jnr/jnr-posix
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
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)
BuildArch: noarch
Source44: import.info
%description
jnr-posix is a lightweight cross-platform POSIX emulation layer for Java,
written in Java and is part of the JNR project
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
# fix test which assumes that there is a group named "nogroup"
sed -i 's|"nogroup"|"root"|' src/test/java/jnr/posix/GroupTest.java
# remove unnecessary dependency on parent POM
%pom_remove_parent
# Remove useless wagon extension.
%pom_xpath_remove "pom:build/pom:extensions"
# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%build
%mvn_build -f
%install
%mvn_install
%files -f .mfiles
%doc README.md
%doc --no-dereference LICENSE.txt
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE.txt
%changelog
…
Полный changelog можно просмотреть здесь