2 # - fix makefile to use CC and *FLAGS
3 # - fix desc - it's just a library, not a program
4 Summary: A small static library for IPv4 CIDR operations
10 Source0: http://unixservice.com/source/libs/%{name}-%{version}.tar.gz
11 # Source0-md5: 7f19628e97ec2d212bc66cbd7b3f4fdc
12 Patch0: %{name}-include.patch
13 URL: http://openisp.net/ucidr
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 The ucidr program provides functions for determining if a given IPv4
18 is in a given IPv4 CIDR specified block among other basic CIDR
21 Current version provides these functions:
23 unsigned ExpandCIDR4(const char *cCIDR4, char *cIPs[]); unsigned
24 uIpv4InCIDR4(const char *cIPv4, const char *cCIDR4); unsigned
25 uInCIDR4Format(const char *cCIDR4,unsigned *uIPv4,unsigned
26 - *uCIDR4Mask); unsigned uInIpv4Format(const char *cIPv4,unsigned
27 - *uIPv4); unsigned uGetNumIPs(char *cCIDR4); unsigned
39 rm -rf $RPM_BUILD_ROOT
42 DESTDIR=$RPM_BUILD_ROOT \
44 includedir=%{_includedir}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{_libdir}/openisp/libucidr.a
53 %{_includedir}/openisp/ucidr.h