nispor package is retired on branch c10s for CS-2057

This commit is contained in:
David Fan 2024-04-11 13:50:04 +00:00
parent a80772d8fd
commit 49a36936a2
7 changed files with 1 additions and 221 deletions

22
.gitignore vendored
View File

@ -1,22 +0,0 @@
/nispor-0.4.0.tar.gz
/nispor-0.5.0.tar.gz
/nispor-0.5.1.tar.gz
/nispor-0.6.1.tar.gz
/nispor-1.0.0.tar.gz
/nispor-1.0.1.tar.gz
/nispor-1.1.1.tar.gz
/nispor-1.2.2.tar.gz
/nispor-1.2.3.tar.gz
/nispor-1.2.5.tar.gz
/nispor-1.2.7.tar.gz
/nispor-1.2.8.tar.gz
/nispor-1.2.9.tar.gz
/nispor-1.2.10.tar.gz
/nispor-1.2.11.tar.gz
/nispor-vendor-1.2.11.tar.xz
/nispor-1.2.12.tar.gz
/nispor-vendor-1.2.12.tar.xz
/nispor-1.2.15.tar.gz
/nispor-vendor-1.2.15.tar.xz
/nispor-1.2.16.tar.gz
/nispor-vendor-1.2.16.tar.xz

View File

@ -1,29 +0,0 @@
---
downstream_package_name: nispor
upstream_project_url: https://github.com/nispor/nispor
issue_repository: https://github.com/nispor/nispor
update_release: false
upstream_package_name: nispor
upstream_tag_template: v{version}
copy_upstream_release_description: true
jobs:
# This is triggered by https://release-monitoring.org/
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-all
# This is triggered at Fedora dist-git for creating koji build after
# PR in src.fedoraproject.org been merged.
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit-stg", "packit"]
dist_git_branches:
- fedora-all
# This is triggered at Fedora messaging bus about koji build finished.
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched

View File

@ -1,3 +0,0 @@
# nispor
The nispor package

View File

@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.87.1.post1.dev11+gd1f7091b.

1
dead.package Normal file
View File

@ -0,0 +1 @@
nispor package is retired on branch c10s for CS-2057

View File

@ -1,162 +0,0 @@
# The check need root privilege hence disabled by default
%bcond_with check
Name: nispor
Version: 1.2.16
Release: %autorelease
Summary: Unified interface for Linux network state querying
License: Apache-2.0
URL: https://github.com/nispor/nispor
Source: https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: https://github.com/nispor/nispor/releases/download/v%{version}/nispor-vendor-%{version}.tar.xz
BuildRequires: make
BuildRequires: pkg-config
BuildRequires: python3-devel
BuildRequires: python-setuptools
BuildRequires: systemd-devel
BuildRequires: systemd-rpm-macros
BuildRequires: patchelf
%if 0%{?rhel}
BuildRequires: rust-toolset
%else
BuildRequires: rust-packaging
BuildRequires: (crate(clap/cargo) >= 4.2.0 with crate(clap/cargo) < 5.0)
BuildRequires: (crate(clap/default) >= 4.2.0 with crate(clap/default) < 5.0)
BuildRequires: (crate(env_logger/default) >= 0.10 with crate(env_logger/default) < 0.11)
BuildRequires: (crate(ethtool/default) >= 0.2.5 with crate(ethtool/default) < 0.3)
BuildRequires: (crate(futures/default) >= 0.3 with crate(futures/default) < 0.4)
BuildRequires: (crate(libc/default) >= 0.2.126 with crate(libc/default) < 0.3)
BuildRequires: (crate(log/default) >= 0.4 with crate(log/default) < 0.5)
BuildRequires: (crate(mptcp-pm/default) >= 0.1.3 with crate(mptcp-pm/default) < 0.2)
BuildRequires: (crate(netlink-packet-route/default) >= 0.18.0 with crate(netlink-packet-route/default) < 0.19)
BuildRequires: (crate(netlink-packet-utils/default) >= 0.5.2 with crate(netlink-packet-utils/default) < 0.6)
BuildRequires: (crate(netlink-sys/default) >= 0.8.4 with crate(netlink-sys/default) < 0.9)
BuildRequires: (crate(rtnetlink/default) >= 0.14.0 with crate(rtnetlink/default) < 0.15)
BuildRequires: (crate(serde/default) >= 1.0 with crate(serde/default) < 2.0)
BuildRequires: (crate(serde/derive) >= 1.0 with crate(serde/derive) < 2.0)
BuildRequires: (crate(serde_json/default) >= 1.0 with crate(serde_json/default) < 2.0)
BuildRequires: (crate(serde_yaml/default) >= 0.9 with crate(serde_yaml/default) < 0.10)
BuildRequires: (crate(tokio/macros) >= 1.18 with crate(tokio/macros) < 2.0)
BuildRequires: (crate(tokio/rt) >= 1.18 with crate(tokio/rt) < 2.0)
%endif
%description
Unified interface for Linux network state querying.
%if ! 0%{?rhel}
%package -n rust-%{name}-devel
Summary: %{summary}
BuildArch: noarch
%description -n rust-%{name}-devel
This package contains library source intended for building other packages
which use "%{name}" crate.
%package -n rust-%{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n rust-%{name}+default-devel
This package contains library source intended for building other packages
which use "%{name}" crate with default feature.
%endif
%package -n python3-%{name}
Summary: %{summary}
Requires: nispor = %{?epoch:%{epoch}:}%{version}-%{release}
BuildArch: noarch
%description -n python3-%{name}
This package contains python3 binding of %{name}.
%package devel
Summary: %{summary}
Requires: nispor%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
This package contains C binding of %{name}.
%prep
%autosetup -n %{name}-%{version_no_tilde} -p1 %{?rhel:-a1}
# Drop the upstream fix on SONAME as fedora %cargo_xxx marcos override it,
# we use patchelf to set the SONAME.
rm .cargo/config.toml
%if 0%{?rhel}
%cargo_prep -v vendor
%else
%cargo_prep
%endif
%build
%cargo_build
%cargo_license_summary
%{cargo_license} > LICENSE.dependencies
%if 0%{?rhel}
%cargo_vendor_manifest
%endif
pushd src/python
%py3_build
popd
%install
%if ! 0%{?rhel}
# cargo_install has problem on detecting library when running in workspace
# due to bug https://pagure.io/fedora-rust/cargo2rpm/issue/5
# Removing the workspace Cargo.toml will workaround this problem.
rm Cargo.toml
pushd src/lib
%cargo_install
popd
%endif
env SKIP_PYTHON_INSTALL=1 PREFIX=%{_prefix} LIBDIR=%{_libdir} %make_install
pushd src/python
%py3_install
popd
patchelf --set-soname libnispor.so.1 \
%{buildroot}/%{_libdir}/libnispor.so.%{version}
%if %{with check}
%check
%cargo_test
%endif
%files
%doc AUTHORS CHANGELOG DEVEL.md README.md
%license LICENSE
%license LICENSE.dependencies
%if 0%{?rhel}
%license cargo-vendor.txt
%endif
%{_bindir}/npc
%{_libdir}/libnispor.so.*
%files -n python3-%{name}
%license LICENSE
%{python3_sitelib}/nispor*
%files devel
%license LICENSE
%{_libdir}/libnispor.so
%{_includedir}/nispor.h
%{_libdir}/pkgconfig/nispor.pc
%if ! 0%{?rhel}
%files -n rust-%{name}-devel
%license LICENSE
%{cargo_registry}/%{name}-%{version_no_tilde}/
%files -n rust-%{name}+default-devel
%ghost %{cargo_registry}/%{name}-%{version_no_tilde}/Cargo.toml
%endif
%changelog
%autochangelog

View File

@ -1,2 +0,0 @@
SHA512 (nispor-1.2.16.tar.gz) = df716fd2c36e9cef7f533434af75f73ac35a1bbe495c9ba0c874b7889a87cdf685a34d58f36f307dd2fd27d104bfdd909487519e40970744a73365de838d69e9
SHA512 (nispor-vendor-1.2.16.tar.xz) = c74a71e989b9ba5e88a7daa462785779681db787e55cb02b67c8b4975a2197d87e56348f5af0aac8afe31b143ae8cf06348c80762672ccba8e2e5dd2d281fd18