Projects
home:pandora:RobinOS23
ipset
_service:download_src_package:ipset.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:ipset.spec of Package ipset
%define anolis_release 3 Name: ipset Version: 7.15 Release: %{anolis_release}%{?dist} Summary: Manage Linux IP sets License: GPLv2 URL: https://ipset.netfilter.org Source0: %{url}/%{name}-%{version}.tar.bz2 Source1: %{name}.service Source2: %{name}.start-stop BuildRequires: libmnl-devel BuildRequires: automake BuildRequires: autoconf BuildRequires: make BuildRequires: libtool BuildRequires: libtool-ltdl-devel # An explicit requirement is needed here, to avoid cases where a user would # explicitly update only one of the two (e.g 'yum update ipset') Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description IP sets are a framework inside the Linux kernel since version 2.4.x, which can be administered by the ipset utility. Depending on the type, currently an IP set may store IP addresses, (TCP/UDP) port numbers or IP addresses with MAC addresses in a way, which ensures lightning speed when matching an entry against a set. If you want to: - store multiple IP addresses or port numbers and match against the collection by iptables at one swoop; - dynamically update iptables rules against IP addresses or ports without performance penalty; - express complex IP address and ports based rulesets with one single iptables rule and benefit from the speed of IP sets then ipset may be the proper tool for you. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package libs Summary: Shared library providing the IP sets functionality %description libs This package contains the libraries which provide the IP sets funcionality. %package devel Summary: Development files for %{name} Requires: %{name}-libs == %{version}-%{release} Requires: kernel-headers %description devel This package contains the files required to develop software using the %{name} libraries. %package service Summary: %{name} service for %{name}s Requires: %{name} = %{version}-%{release} BuildRequires: systemd Requires: iptables-services Requires(post): systemd Requires(preun): systemd Requires(postun): systemd BuildArch: noarch %description service This package provides the service %{name} that is split out of the base package since it is not active by default. %prep %autosetup -p1 %build ./autogen.sh %configure --enable-static=no --with-kmod=no # Just to make absolutely sure we are not building the bundled kernel module # I have to do it after the configure run unfortunately rm -fr kernel # Prevent libtool from defining rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build %install %make_install find %{buildroot} -name '*.la' -exec rm -f '{}' \; # install systemd unit file install -d -m 755 %{buildroot}/%{_unitdir} install -c -m 644 %{SOURCE1} %{buildroot}/%{_unitdir} # install supporting script install -d -m 755 %{buildroot}%{_libexecdir}/%{name} install -c -m 755 %{SOURCE2} %{buildroot}%{_libexecdir}/%{name} # Create directory for configuration mkdir -p %{buildroot}%{_sysconfdir}/%{name} %generate_compatibility_deps %preun if [[ $1 -eq 0 && -n $(lsmod | grep "^xt_set ") ]]; then rmmod xt_set 2>/dev/null [[ $? -ne 0 ]] && echo Current iptables configuration requires ipsets && exit 1 fi %ldconfig_scriptlets libs %post service %systemd_post %{name}.service %preun service if [[ $1 -eq 0 && -n $(lsmod | grep "^xt_set ") ]]; then rmmod xt_set 2>/dev/null [[ $? -ne 0 ]] && echo Current iptables configuration requires ipsets && exit 1 fi %systemd_preun %{name}.service %postun service %systemd_postun_with_restart %{name}.service %files %license COPYING %{_mandir}/man8/%{name}*.8.* %{_sbindir}/%{name} %{_sbindir}/%{name}-translate %{abidir}/%{name}-option.list %files doc %doc ChangeLog %files libs %dir %{abidir} %license COPYING %{_libdir}/lib%{name}.so.13* %{abidir}/lib%{name}.dump %files devel %{_includedir}/lib%{name} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/lib%{name}.pc %{_mandir}/man3/libipset.3.* %files service %{_unitdir}/%{name}.service %dir %{_libexecdir}/%{name} %attr(0755,root,root) %{_libexecdir}/%{name}/%{name}.start-stop %dir %{_sysconfdir}/%{name} %changelog * Wed Oct 26 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 7.15-3 - optimise spec file * Thu Sep 29 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 7.15-2 - add doc package * Thu Mar 10 2022 Mingyue Zhao <wb-zmy745940@alibaba-inc.com> - 7.15-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2