Blame SPECS/geoipupdate.spec

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