1 Star 0 Fork 8

chxssg/ipcalc

forked from src-openEuler/ipcalc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ipcalc.spec 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
hexiaowen 提交于 2019-09-30 10:53 . Package init
Name: ipcalc
Version: 0.2.5
Release: 1
Summary: IP network address calculator
License: GPLv2+
URL: https://gitlab.com/ipcalc/%{name}
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc libmaxminddb-devel
%description
ipcalc provides a simple way to calculate IP information for a host.
The various options specify what information ipcalc should display on standard out.
Multiple options may be specified. An IP address to operate on must always
be specified. Most operations also require a netmask or a CIDR prefix as well.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
CFLAGS="${CFLAGS:-%optflags} $RPM_LD_FLAGS" \
USE_RUNTIME_LINKING=yes USE_GEOIP=no USE_MAXMIND=yes LIBPATH=%{_libdir}
%make_build
%install
install -d %{buildroot}%{_bindir}
install -p -m 0755 ipcalc %{buildroot}%{_bindir}/
install -d -m 0755 %{buildroot}%{_mandir}/man1
install -p -m 0644 ipcalc.1 %{buildroot}%{_mandir}/man1
%check
make check
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/*
%files help
%defattr(-,root,root)
%doc README.md
%{_mandir}/man1/*
%changelog
* Fri Aug 30 2019 openEuler Buildteam <[email protected]> - 0.2.5-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chxssg/ipcalc.git
[email protected]:chxssg/ipcalc.git
chxssg
ipcalc
ipcalc
master

搜索帮助