From 93e92edfae73ce12fd500467488bda56021b420d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 24 Sep 2020 14:59:26 +0200 Subject: sync with Fedora and rename to IP2location rebuild for #remirepo with release = 0 to manage update from old version --- IP2Location.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'IP2Location.spec') 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 - 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 - 8.0.9-10 - add additional Obsoletes/Provides/BuildRequires -- cgit