summaryrefslogtreecommitdiffstats
path: root/IP2Location.spec
diff options
context:
space:
mode:
Diffstat (limited to 'IP2Location.spec')
-rw-r--r--IP2Location.spec17
1 files changed, 16 insertions, 1 deletions
diff --git a/IP2Location.spec b/IP2Location.spec
index d7cd116..87e021e 100644
--- a/IP2Location.spec
+++ b/IP2Location.spec
@@ -21,7 +21,7 @@
Name: IP2Location
Summary: C library for mapping IP address to geolocation information
Version: %{version}
-Release: 10%{?gittag}%{?dist}
+Release: 0%{?gittag}%{?dist}
License: MIT
URL: http://www.ip2location.com/
%if 0%{?gitcommit:1}
@@ -117,7 +117,12 @@ sh ./bootstrap
autoreconf -fiv
%configure --disable-static
+%if 0%{?make_build:1}
%make_build COPTS="$RPM_OPT_FLAGS"
+%else
+make %{?_smp_mflags} COPTS="$RPM_OPT_FLAGS"
+%endif
+
# convert CSV to BIN
make -C data convert
@@ -128,7 +133,11 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH make check
%install
+%if 0%{?make_install:1}
%make_install
+%else
+make install DESTDIR=%{buildroot}
+%endif
# cleanup
rm -f %{buildroot}%{_libdir}/*.*a
@@ -146,6 +155,7 @@ install -p data/IPV6-COUNTRY.BIN %{buildroot}%{_datadir}/%{name}/IPV6-COUNTRY.SA
%files
+%{!?_licensedir:%global license %%doc}
%license COPYING LICENSE.TXT
%doc AUTHORS ChangeLog README.md NEWS
@@ -170,6 +180,11 @@ install -p data/IPV6-COUNTRY.BIN %{buildroot}%{_datadir}/%{name}/IPV6-COUNTRY.SA
%changelog
+* Thu Sep 24 2020 Remi Collet <remi@remirepo.net> - 8.0.9-0
+- sync with Fedora and rename to IP2location
+- rebuild for #remirepo with release = 0
+ to manage update from old version
+
* Thu Sep 24 2020 Peter Bieringer <pb@bieringer.de> - 8.0.9-10
- add additional Obsoletes/Provides/BuildRequires