Name: jnr-netdb
Version: 1.1.6
Release: 8%{?dist}
Summary: Network services database access for java
License: ASL 2.0
URL: https://github.com/jnr/%{name}/
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(com.github.jnr:jnr-ffi)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
%description
jnr-netdb is a java interface to getservbyname(3), getservbyport(3)
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
find ./ -name '*.jar' -exec rm -f '{}' \;
find ./ -name '*.class' -exec rm -f '{}' \;
# Fix javadoc generation on java 11
%pom_xpath_inject pom:project "
maven-javadoc-plugin
false
"
%build
%mvn_build -- -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Wed Jun 24 2020 Roland Grunberg - 1.1.6-8
- Use source/target of 1.6 to build against Java 11.
- Also disable detectJavaApiLink to avoid javadoc errors.
* Wed Jan 29 2020 Fedora Release Engineering - 1.1.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering - 1.1.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering - 1.1.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering - 1.1.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering - 1.1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering - 1.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jun 30 2017 Mat Booth - 1.1.6-1
- Update to latest release
* Fri Feb 10 2017 Fedora Release Engineering - 1.1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Dec 16 2016 Merlin Mathesius - 1.1.5-2
- Add missing BuildRequires to fix FTBFS (BZ#1405596).
* Fri Feb 5 2016 Alexander Kurtakov 1.1.5-1
- Update to upstream 1.1.5 release.
* Thu Feb 04 2016 Fedora Release Engineering - 1.1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering - 1.1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue May 5 2015 Alexander Kurtakov 1.1.4-1
- Update to upstream 1.1.4 release.
* Sat Aug 02 2014 Mo Morsi - 1.1.1-5
- Fix rawhide build
- Update to latest java packaging guidelines
* Sun Jun 08 2014 Fedora Release Engineering - 1.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Mar 28 2014 Michael Simacek - 1.1.1-3
- Use Requires: java-headless rebuild (#1067528)
* Sat Aug 03 2013 Fedora Release Engineering - 1.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Feb 05 2013 Bohuslav Kabrda - 1.1.1-1
- Updated to version 1.1.1.
* Thu Jul 19 2012 Fedora Release Engineering - 1.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 13 2012 Fedora Release Engineering - 1.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Jun 28 2011 Alexander Kurtakov 1.0.1-5
- Fix FTBFS.
- Adapt to current guidelines.
* Wed Feb 09 2011 Fedora Release Engineering
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 02 2010 - 1.0.1-3
- updates to conform to pkging guidelines
* Mon Oct 25 2010 - 1.0.1-2
- include javadocs
* Mon Oct 25 2010 - 1.0.1-1
- initial package