File geoipupdate.spec of Package geoipupdate

#
# spec file for package geoipupdate
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           geoipupdate
Version:        2.5.0
Release:        0
Summary:        GeoIP update client code
License:        GPL-2.0
Group:          Productivity/Networking/System
Url:            https://www.maxmind.com
Source0:        https://github.com/maxmind/geoipupdate/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(zlib)
Conflicts:      GeoIP < 1.6.0

%description
The GeoIP Update program performs automatic updates of GeoIP2 and GeoIP
Legacy binary databases. Currently the program only supports Linux and
other Unix- like systems.

%prep
%setup -q

%build
%configure \
  --datadir=%{_localstatedir}/lib
make %{?_smp_mflags}

%install
%make_install
install -d %{buildroot}%{_localstatedir}/lib/GeoIP
install -D -p -m 0644 conf/GeoIP.conf.default \
  %{buildroot}%{_sysconfdir}/GeoIP.conf.default
rm -rf %{buildroot}%{_datadir}/doc/geoipupdate

%check
make check

%files
%doc README.md ChangeLog.md LICENSE
%config(noreplace) %{_sysconfdir}/GeoIP.conf
%config %{_sysconfdir}/GeoIP.conf.default
%dir %{_localstatedir}/lib/GeoIP
%{_bindir}/geoipupdate
%{_mandir}/man1/geoipupdate.1%{ext_man}
%{_mandir}/man5/GeoIP.conf.5%{ext_man}

%changelog
openSUSE Build Service is sponsored by