Blame SPECS/geoipupdate.spec

42e9c8
%global _hardened_build 1
42e9c8
42e9c8
Name:		geoipupdate
42e9c8
Version:	2.5.0
42e9c8
Release:	1%{?dist}
42e9c8
Summary:	Update GeoIP2 and GeoIP Legacy binary databases from MaxMind
42e9c8
License:	GPLv2
42e9c8
URL:		http://dev.maxmind.com/geoip/geoipupdate/
42e9c8
Source0:	http://github.com/maxmind/geoipupdate/releases/download/v%{version}/geoipupdate-%{version}.tar.gz
42e9c8
Source1:	geoipupdate.cron
42e9c8
BuildRequires:	coreutils
42e9c8
BuildRequires:	gcc
42e9c8
BuildRequires:	libcurl-devel
42e9c8
BuildRequires:	make
42e9c8
BuildRequires:	zlib-devel
42e9c8
Conflicts:		GeoIP <= 1.5.0-13
42e9c8
42e9c8
%description
42e9c8
The GeoIP Update program performs automatic updates of GeoIP2 and GeoIP
42e9c8
Legacy binary databases.
42e9c8
42e9c8
%package cron
42e9c8
Summary:	Cron job to do weekly updates of GeoIP databases
42e9c8
BuildArch:	noarch
42e9c8
Requires:	%{name} = %{version}-%{release}
42e9c8
Requires:	crontabs
42e9c8
Obsoletes:	GeoIP-update < 1.6.0
42e9c8
Provides:	GeoIP-update = 1.6.0
42e9c8
42e9c8
%description cron
42e9c8
Cron job for weekly updates to GeoIP Legacy database from MaxMind.
42e9c8
42e9c8
%prep
42e9c8
%setup -q
42e9c8
42e9c8
%build
42e9c8
%configure --disable-static --disable-dependency-tracking
42e9c8
make %{?_smp_mflags}
42e9c8
42e9c8
%install
42e9c8
make install DESTDIR=%{buildroot}
42e9c8
42e9c8
# We'll package the documentation ourselves
42e9c8
rm -rf %{buildroot}%{_datadir}/doc/geoipupdate
42e9c8
42e9c8
install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
42e9c8
42e9c8
%files
42e9c8
%if 0%{?_licensedir:1}
42e9c8
%license LICENSE
42e9c8
%else
42e9c8
%doc LICENSE
42e9c8
%endif
42e9c8
%doc conf/GeoIP.conf.default README.md ChangeLog.md
42e9c8
%config(noreplace) %{_sysconfdir}/GeoIP.conf
42e9c8
%{_bindir}/geoipupdate
42e9c8
%{_mandir}/man1/geoipupdate.1*
42e9c8
%{_mandir}/man5/GeoIP.conf.5*
42e9c8
42e9c8
%files cron
42e9c8
%config(noreplace) %{_sysconfdir}/cron.weekly/geoipupdate
42e9c8
42e9c8
%changelog
42e9c8
* Fri Feb 08 2019 Michal Ruprich <mruprich@redhat.com> - 2.5.0-1
42e9c8
- Resolves: #1643470 - Add geoipupdate package
42e9c8
- Initial commit
42e9c8
42e9c8
* Tue Oct 31 2017 Paul Howarth <paul@city-fan.org> - 2.5.0-1
42e9c8
- Update to 2.5.0
42e9c8
  - Replace use of strnlen() due to lack of universal availability (GH#71)
42e9c8
  - Document the 'LockFile' option in the 'GeoIP.conf' man page (GH#64)
42e9c8
  - Remove unused base64 library (GH#68)
42e9c8
  - Add the new configuration option 'PreserveFileTimes'; if set, the
42e9c8
    downloaded files will get the same modification times as their original on
42e9c8
    the server (default is '0') (GH#63)
42e9c8
  - Use the correct types when calling 'curl_easy_setopt()'; this fixes
42e9c8
    warnings generated by libcurl's 'typecheck-gcc.h' (GH#61)
42e9c8
  - In 'GeoIP.conf', the 'UserId' option was renamed to 'AccountID' and the
42e9c8
    'ProductIds' option was renamed to 'EditionIDs'; the old options will
42e9c8
    continue to work, but upgrading to the new names is recommended for
42e9c8
    forward compatibility
42e9c8
42e9c8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
42e9c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
42e9c8
42e9c8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
42e9c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
42e9c8
42e9c8
* Fri May 26 2017 Paul Howarth <paul@city-fan.org> - 2.4.0-1
42e9c8
- Update to 2.4.0
42e9c8
  - geoipupdate now checks that the database directory is writable: if it is
42e9c8
    not, it reports the problem and aborts
42e9c8
  - geoipupdate now acquires a lock when starting up to ensure only one
42e9c8
    instance may run at a time: a new option, 'LockFile', exists to set the
42e9c8
    file to use as a lock ('.geoipupdate.lock' in the database directory by
42e9c8
    default)
42e9c8
  - geoipupdate now prints out additional information from the server when a
42e9c8
    download request results in something other than HTTP status 2xx; this
42e9c8
    provides more information when the API does not respond with a database
42e9c8
    file
42e9c8
  - ${datarootdir}/GeoIP is now created on 'make install' (GH#29)
42e9c8
  - Previously, a variable named 'ERROR' was used, which caused issues building
42e9c8
    on Windows (GH#36)
42e9c8
- Drop EL-5 support
42e9c8
  - Drop BuildRoot: and Group: tags
42e9c8
  - Drop explicit buildroot cleaning in %%install section
42e9c8
  - Drop explicit %%clean section
42e9c8
  - noarch subpackages always available now
42e9c8
  - libcurl-devel always available now
42e9c8
42e9c8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
42e9c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
42e9c8
42e9c8
* Thu Jan  5 2017 Paul Howarth <paul@city-fan.org> - 2.3.1-1
42e9c8
- Update to 2.3.1
42e9c8
  - geoipupdate now uses TCP keep-alive when compiled with cURL 7.25 or
42e9c8
    greater
42e9c8
  - Previously, on an invalid gzip file, geoipupdate would output binary data
42e9c8
    to stderr; it now displays an appropriate error message
42e9c8
  - Install README, ChangeLog, GeoIP.conf.default etc. into docdir (GH#33)
42e9c8
  - $(sysconfdir) is now created if it doesn't exist (GH#33)
42e9c8
  - The sample config file is now usable (GH#33)
42e9c8
42e9c8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
42e9c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
42e9c8
42e9c8
* Fri Jan 22 2016 Paul Howarth <paul@city-fan.org> - 2.2.2-1
42e9c8
- Update to 2.2.2
42e9c8
  - geoipupdate now calls fsync on the database directory after a rename to
42e9c8
    make it durable in the event of a crash
42e9c8
- Update autotools patch
42e9c8
42e9c8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
42e9c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
42e9c8
42e9c8
* Mon Apr 13 2015 Paul Howarth <paul@city-fan.org> - 2.2.1-2
42e9c8
- Split patch for upstream issue #26 into separate patches for upstream changes
42e9c8
  and effect of running autotools
42e9c8
42e9c8
* Wed Mar  4 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.2.1-1
42e9c8
- Update to 2.2.1
42e9c8
  - geoipupdate now verifies the MD5 of the new database before deploying it;
42e9c8
    if the database MD5 does not match the expected MD5, geoipupdate will exit
42e9c8
    with an error
42e9c8
  - The copy of 'base64.c' and 'base64.h' was switched to a version under
42e9c8
    GPLv2+ to prevent a license conflict
42e9c8
  - The 'LICENSE' file was added to the distribution
42e9c8
  - Several issues in the documentation were fixed
42e9c8
- Use interim fix for upstream issue #26 until it's accepted:
42e9c8
  https://github.com/maxmind/geoipupdate/issues/26
42e9c8
- Add buildroot and clean, BR: curl-devel rather than libcurl-devel for
42e9c8
  EL-5 compatibility
42e9c8
42e9c8
* Tue Feb 10 2015 Paul Howarth <paul@city-fan.org> - 2.1.0-4
42e9c8
- New geoipupdate6 cron script written in Perl that doesn't download the data
42e9c8
  if it hasn't changed
42e9c8
42e9c8
* Fri Feb  6 2015 Paul Howarth <paul@city-fan.org> - 2.1.0-3
42e9c8
- Add cron6 subpackage, equivalent to old GeoIP-update6 package
42e9c8
- Revise obsoletes/provides
42e9c8
42e9c8
* Sun Feb  1 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.1.0-2
42e9c8
- Remove architecture-specific dependency in noarch subpackage
42e9c8
42e9c8
* Mon Jan 26 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.1.0-1
42e9c8
- Initial review package (generated by rpmdev-newspec)
42e9c8