2022-03-07 22:48:55 +00:00
|
|
|
#
|
|
|
|
# spec file for package IPAddress
|
|
|
|
#
|
2025-07-16 22:31:45 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2022-03-07 22:48:55 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: IPAddress
|
2024-11-06 20:33:24 +00:00
|
|
|
Version: 5.5.1
|
2022-03-07 22:48:55 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for handling IP addresses and subnets, both IPv4 and IPv6
|
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/seancfoley/IPAddress
|
|
|
|
Source0: https://github.com/seancfoley/IPAddress/archive/v%{version}.tar.gz
|
2022-03-11 07:42:07 +00:00
|
|
|
Patch0: IPAddress-encoding.patch
|
|
|
|
Patch1: IPAddress-doclet.patch
|
2025-07-16 22:31:45 +00:00
|
|
|
Patch2: IPAddress-reproducible.patch
|
2022-03-07 22:48:55 +00:00
|
|
|
BuildRequires: ant
|
2022-03-11 07:42:07 +00:00
|
|
|
BuildRequires: aqute-bnd
|
|
|
|
BuildRequires: fdupes
|
2024-02-21 09:19:55 +00:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2022-03-07 22:48:55 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Library for handling IP addresses and subnets, both IPv4 and IPv6
|
|
|
|
|
2022-03-11 07:42:07 +00:00
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package provides API documentation for xbean.
|
|
|
|
|
2022-03-07 22:48:55 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-02-21 09:19:55 +00:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 1 -p1
|
2025-07-16 22:31:45 +00:00
|
|
|
%patch -P 2 -p1
|
2022-03-11 07:42:07 +00:00
|
|
|
find -name \*.jar -delete
|
|
|
|
find -name \*.class -delete
|
2022-03-07 22:48:55 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
pushd IPAddress
|
|
|
|
mkdir bin
|
2025-07-16 22:31:45 +00:00
|
|
|
ant "create dist jar" "create javadoc" "create pom"
|
2022-03-07 22:48:55 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
install -dm 755 %{buildroot}%{_javadir}
|
|
|
|
install -m 0644 IPAddress/dist/IPAddress*.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2024-11-06 20:33:24 +00:00
|
|
|
%{mvn_install_pom} IPAddress/dist/mavenlib/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
2022-03-07 22:48:55 +00:00
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
|
|
|
2022-03-11 07:42:07 +00:00
|
|
|
# javadoc
|
|
|
|
install -dm 755 %{buildroot}/%{_javadocdir}/%{name}
|
|
|
|
cp -a IPAddress/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
2022-03-07 22:48:55 +00:00
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
|
2022-03-11 07:42:07 +00:00
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
2022-03-07 22:48:55 +00:00
|
|
|
%changelog
|