Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP2Location C library added. #329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions specs/ip2location-c/ip2location-c.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# $Id$
# Authority: ip2location

%define real_name ip2location-c

Summary: IP2Location C Library
Name: ip2location-c
Version: 6.0.2
Release: 1%{?dist}
License: GPL
Group: Development/Libraries
URL: http://www.ip2location.com/developers/c

Source: http://ip2location.com/downloads/ip2location-c-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: zlib-devel
Obsoletes: IP2Location-C < %{version}-%{release}
Provides: IP2Location-C = %{version}-%{release}

%description
IP2Location C library enables the user to find the country, region, city, coordinates,
zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC,
mobile brand name, elevation and usage type that any IP address or hostname originates
from. It has been optimized for speed and memory utilization. Developers can use the
API to query all IP2Locatio(TM) binary databases for applications written in C or
supporting static/dynamic library. Commercial databases are available from
http://www.ip2location.com/

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Obsoletes: IP2Location-C-devel < %{version}-%{release}
Provides: IP2Location-C-devel = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -n %{real_name}-%{version}

%build
%configure --disable-static --disable-dependency-tracking
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING INSTALL README
%{_libdir}/libIP2Location.so
%exclude %{_includedir}/IP2Loc_DBInterface.h
%exclude %{_includedir}/IP2Location.h
%exclude %{_includedir}/imath.h
%exclude %{_libdir}/libIP2Location.a
%exclude %{_libdir}/libIP2Location.la

%changelog
* Fri Mar 07 2014 IP2Location <support@ip2location.com> - 6.0.2-1
- Initial package.