[packages/ip2location-c] Up to 8.7.0
arekm
arekm at pld-linux.org
Sat Nov 28 17:52:38 CET 2026
commit df09bf887d6fb21a4919936b849935030132c581
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 16:25:48 2026 +0100
Up to 8.7.0
ip2location-c.spec | 33 ++++++++++++++++++++++-----------
1 file changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/ip2location-c.spec b/ip2location-c.spec
index db64d03..116a92b 100644
--- a/ip2location-c.spec
+++ b/ip2location-c.spec
@@ -1,14 +1,16 @@
Summary: IP2Location C library
Summary(pl.UTF-8): Biblioteka C IP2Location
Name: ip2location-c
-Version: 6.0.3
-Release: 2
+Version: 8.7.0
+Release: 1
License: LGPL v3+
Group: Libraries
-#Source0Download: http://www.ip2location.com/developers/c
-Source0: http://www.ip2location.com/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: a391adf7fb4e846ffe864d48832714e1
-URL: http://www.ip2location.com/
+Source0: https://github.com/ip2location/IP2Location-C-Library/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: f26d65c717835644af827ed3755f341d
+URL: https://www.ip2location.com/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
+BuildRequires: libtool
BuildRequires: perl-base
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -62,9 +64,14 @@ Free data for IP2Location library.
Darmowe dane dla biblioteki IP2Location.
%prep
-%setup -q
+%setup -q -n IP2Location-C-Library-%{version}
%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure
%{__make} -C data convert
@@ -76,6 +83,9 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/IP2Loc
+install -p -m644 data/IP-COUNTRY.BIN data/IPV6-COUNTRY.BIN $RPM_BUILD_ROOT%{_datadir}/IP2Loc
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -85,17 +95,18 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
-%attr(755,root,root) %{_libdir}/libIP2Location.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libIP2Location.so.1
+%attr(755,root,root) %{_bindir}/ip2location
+%{_mandir}/man1/ip2location.1*
+%{_libdir}/libIP2Location.so.*.*.*
+%ghost %{_libdir}/libIP2Location.so.3
%dir %{_datadir}/IP2Loc
%files devel
%defattr(644,root,root,755)
%doc Developers_Guide.txt
-%attr(755,root,root) %{_libdir}/libIP2Location.so
+%{_libdir}/libIP2Location.so
%{_libdir}/libIP2Location.la
%{_includedir}/IP2Location.h
-%{_includedir}/IP2Loc_DBInterface.h
%files static
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ip2location-c.git/commitdiff/df09bf887d6fb21a4919936b849935030132c581
More information about the pld-cvs-commit
mailing list