Bug 1873302 - Review Request: IP2Location - IP2location library
Summary: Review Request: IP2Location - IP2location library
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1081434 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-27 19:43 UTC by Peter Bieringer
Modified: 2020-09-09 07:17 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-09-08 16:36:43 UTC
Type: Bug
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)

Description Peter Bieringer 2020-08-27 19:43:05 UTC
Spec URL: https://raw.githubusercontent.com/chrislim2888/IP2Location-C-Library/master/contrib/IP2Location.spec

SRPM URL: ftp://ftp.bieringer.de/pub/linux/IP2Location/IP2Location-8.0.9-5.fc34.src.rpm


Description :
IP2Location C library enables the user to get the country, region, city,
coordinates, ZIP code, time zone, ISP, domain name, connection type,
area code, weather info, mobile carrier, elevation and usage type from any IP
address or hostname. This library has been optimized for speed and memory
utilization. The library contains API to query all IP2Location LITE and
commercial binary databases.

Users can download the latest LITE database from IP2Location web site using e.g.
the included downloader.



Prebuilds fine on fc32/fc34/el8


Fedora Account System Username: pbiering

Comment 1 Peter Bieringer 2020-08-27 19:43:34 UTC
*** Bug 1081434 has been marked as a duplicate of this bug. ***

Comment 2 Robert-André Mauchin 🐧 2020-08-27 22:40:23 UTC
 - Use a better name for your archive:

Source0:	https://github.com/chrislim2888/IP2Location-C-Library/archive/%{version}.tar.gz

→

Source0:	https://github.com/chrislim2888/IP2Location-C-Library/archive/%{version}/%{name}-%{version}.tar.gz


 - Not needed:

Group:		System Environment/Libraries

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Group:		Development/C

rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%clean
rm -rf %{buildroot}

%defattr(644,root,root,755)


%defattr(-,root,root)

%attr(755,-,-) 

 - autoreconf -fi → autoreconf -fiv

 - make %{?_smp_mflags} → make_build

 - make clean shouldn't be needed

 - make install DESTDIR=%{buildroot} → make_install

 - Be more specific:

%{_includedir}/*

  - Licenses must be installed with %license in %files and INSTALL shouldn't be provided

%doc AUTHORS ChangeLog README.md NEWS
%license COPYING LICENSE.TXT

 - In order to avoid unintentional soname bump, we recommend not globbing the major     soname version, be more specific instead:

%{_libdir}/*.so*

 - Own %{_datadir}/%{name}/tools/ by removing the glob

%{_datadir}/%{name}/tools/

 - don't use cp but install -p:

cp tools/download.pl %{buildroot}%{_datadir}/%{name}/tools

→

install -pm 0755 tools/download.pl %{buildroot}%{_datadir}/%{name}/tools

Comment 3 Peter Bieringer 2020-08-28 06:06:20 UTC
Thank you for reviewing, hopefully all changes applied, please check:

https://raw.githubusercontent.com/pbiering/IP2Location-C-Library/spec-file-fixes-bz1873302/contrib/IP2Location.spec

once fine I will create PR for upstream and can use the same on the Fedora build system

Comment 4 Robert-André Mauchin 🐧 2020-08-28 08:58:16 UTC
 - This should be in the devel package:

%{_libdir}/libIP2Location.so

See https://docs.fedoraproject.org/en-US/packaging-guidelines/#_devel_packages

 - You have not removed these:

%defattr(644,root,root,755)

%defattr(-,root,root)

%attr(755,-,-)

 If there is issues with the permissions of the libraries, chmod them in install and send a patch to fix upstream build system.

Comment 5 Peter Bieringer 2020-08-28 16:00:12 UTC
> - This should be in the devel package:
Ok, checked with GeoIP, here it is also the case -> fixed

other forgotten/overseen issues are fixed and pushed to github again

Please check again

Comment 6 Robert-André Mauchin 🐧 2020-08-28 18:38:33 UTC
LGTM, package approved.

Comment 7 Peter Bieringer 2020-09-08 05:35:25 UTC
executed: fedpkg request-repo IP2Location 1873302
will now wait for approval

Comment 8 Igor Raits 2020-09-08 09:43:11 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/IP2Location

Comment 9 Peter Bieringer 2020-09-08 16:36:43 UTC
repo exists, will start working now on building packages, so this ticket can be closed...but who is interest can keep watching https://koji.fedoraproject.org/koji/packageinfo?packageID=32132

Comment 10 Peter Bieringer 2020-09-09 05:42:30 UTC
initial packages for f31...34 and el7..8 are now available, feel free to test, if any issues found, send e-mail or create a ticket:
https://koji.fedoraproject.org/koji/packageinfo?packageID=32132

Comment 11 Michael C 2020-09-09 06:23:03 UTC
Do we need to update the repository manually? I can only see f34 stable release.

https://src.fedoraproject.org/rpms/IP2Location

Comment 12 Peter Bieringer 2020-09-09 06:28:01 UTC
will push next to updates-testing, had to run initial tests first.

Comment 13 Peter Bieringer 2020-09-09 07:17:19 UTC
watch this now: https://bodhi.fedoraproject.org/updates/?search=IP2Location


Note You need to log in before you can comment on or make changes to this bug.