Blame SPECS/keepalived.spec

e92438
%bcond_without snmp
e92438
%bcond_without vrrp
7f924d
%bcond_without sha1
e92438
%bcond_with profile
e92438
%bcond_with debug
e92438
e92438
%global _hardened_build 1
e92438
e92438
Name: keepalived
53d163
Summary: Load balancer and high availability service
53d163
Version: 1.2.13
a91f95
Release: 7%{?dist}
e92438
License: GPLv2+
e92438
URL: http://www.keepalived.org/
e92438
Group: System Environment/Daemons
e92438
e92438
Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz
e92438
Source1: keepalived.service
e92438
53d163
Patch0: bz1085535-keepalived-man-snmp.patch
a91f95
Patch1: bz1181107-global-data-after-parse.patch
7f924d
e92438
Requires(post): systemd
e92438
Requires(preun): systemd
e92438
Requires(postun): systemd
e92438
e92438
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e92438
%if %{with snmp}
e92438
BuildRequires: net-snmp-devel
e92438
%endif
e92438
BuildRequires: systemd-units
e92438
BuildRequires: openssl-devel
7f924d
BuildRequires: libnl3-devel
e92438
BuildRequires: kernel-devel
e92438
BuildRequires: popt-devel
e92438
e92438
%description
e92438
Keepalived provides simple and robust facilities for load balancing
53d163
and high availability.  The load balancing framework relies on the
53d163
well-known and widely used Linux Virtual Server (IPVS) kernel module
53d163
providing layer-4 (transport layer) load balancing.  Keepalived
53d163
implements a set of checkers to dynamically and adaptively maintain
53d163
and manage a load balanced server pool according their health.
53d163
Keepalived also implements the Virtual Router Redundancy Protocol
53d163
(VRRPv2) to achieve high availability with director failover.
e92438
e92438
%prep
e92438
%setup -q
53d163
%patch0 -p1
a91f95
%patch1 -p1
e92438
e92438
%build
e92438
%configure \
e92438
    %{?with_debug:--enable-debug} \
e92438
    %{?with_profile:--enable-profile} \
e92438
    %{!?with_vrrp:--disable-vrrp} \
e92438
    %{?with_snmp:--enable-snmp} \
e92438
    %{?with_sha1:--enable-sha1}
e92438
%{__make} %{?_smp_mflags} STRIP=/bin/true
e92438
e92438
%install
53d163
%{__rm} -rf %{buildroot}
53d163
%{__rm} -rf doc/samples/*.pem
53d163
%{__make} install DESTDIR=%{buildroot}
53d163
%{__rm} -rf %{buildroot}%{_initrddir}/
53d163
%{__rm} -rf %{buildroot}%{_sysconfdir}/keepalived/samples/
e92438
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/keepalived.service
53d163
%{__mkdir_p} %{buildroot}%{_libexecdir}/keepalived
e92438
e92438
%if %{with snmp}
53d163
%{__mkdir_p} %{buildroot}%{_datadir}/snmp/mibs/
e92438
%{__install} -p -D -m 0644 doc/KEEPALIVED-MIB %{buildroot}%{_datadir}/snmp/mibs/KEEPALIVED-MIB.txt
e92438
%endif
e92438
e92438
%clean
53d163
%{__rm} -rf %{buildroot}
e92438
e92438
%post
e92438
%systemd_post keepalived.service
e92438
e92438
%preun
e92438
%systemd_preun keepalived.service
e92438
e92438
%postun
e92438
%systemd_postun_with_restart keepalived.service
e92438
e92438
%files
e92438
%defattr(-,root,root,-)
53d163
%doc AUTHOR ChangeLog CONTRIBUTORS COPYING README TODO VERSION
53d163
%doc doc/keepalived.conf.SYNOPSIS doc/NOTE_vrrp_vmac.txt doc/samples/
e92438
%dir %{_sysconfdir}/keepalived/
53d163
%dir %{_libexecdir}/keepalived/
53d163
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/keepalived/keepalived.conf
53d163
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/keepalived
53d163
%{_unitdir}/keepalived.service
e92438
%if %{with snmp}
e92438
%{_datadir}/snmp/mibs/KEEPALIVED-MIB.txt
e92438
%endif
53d163
%attr(0755,root,root) %{_bindir}/genhash
53d163
%attr(0755,root,root) %{_sbindir}/keepalived
e92438
%{_mandir}/man1/genhash.1*
e92438
%{_mandir}/man5/keepalived.conf.5*
e92438
%{_mandir}/man8/keepalived.8*
e92438
e92438
%changelog
a91f95
* Thu Jun 25 2015 Ryan O'Hara <rohara@redhat.com> - 1.2.13-7
a91f95
- Set global default values after parsing config file (#1181107)
a91f95
53d163
* Tue Nov 18 2014 Ryan O'Hara <rohara@redhat.com> - 1.2.13-6
53d163
- Fix typo in changelog
53d163
53d163
* Mon Nov 10 2014 Ryan O'Hara <rohara@redhat.com> - 1.2.13-5
53d163
- Bump release number (#1158114)
53d163
53d163
* Thu Nov 06 2014 Ryan O'Hara <rohara@redhat.com> - 1.2.13-4
53d163
- Create /usr/libexec/keepalived directory (#1158114)
53d163
53d163
* Tue Sep 30 2014 Ryan O'Hara <rohara@redhat.com> - 1.2.13-3
53d163
- Minor spec file modifications (#1067693, #1067145)
53d163
53d163
* Tue Sep 30 2014 Ryan O'Hara <rohara@redhat.com> - 1.2.13-2
53d163
- Add SNMP subsystem option to man page (#1085535)
53d163
53d163
* Thu Aug 07 2014 Ryan O'Hara <rohara@redhat.com> - 1.2.13-1
53d163
- Rebase to upstream version 1.2.13 (#1111716)
53d163
7f924d
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.2.10-2
7f924d
- Mass rebuild 2014-01-24
7f924d
7f924d
* Tue Jan 14 2014 Ryan O'Hara <rohara@redhat.com> - 1.2.10-1
7f924d
- Rebase to upstream version 1.2.10 (#1052359)
7f924d
7f924d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2.8-2
7f924d
- Mass rebuild 2013-12-27
7f924d
e92438
* Thu Sep 05 2013 Ryan O'Hara <rohara@redhat.com> - 1.2.8-1
e92438
- Update to 1.2.8.
e92438
e92438
* Mon Jul 22 2013 Ryan O'Hara <rohara@redhat.com> - 1.2.7-8
e92438
- Fix macro in keepalived.conf.5 man page.
e92438
e92438
* Mon Jul 22 2013 Ryan O'Hara <rohara@redhat.com> - 1.2.7-7
e92438
- Fix systemd requirements.
e92438
e92438
* Mon Jul 22 2013 Ryan O'Hara <rohara@redhat.com> - 1.2.7-6
e92438
- Install the systemd unit file, not the init script.
e92438
e92438
* Mon Apr 22 2013 Ryan O'Hara <rohara@redhat.com> - 1.2.7-5
e92438
- Build with PIE flags (#955150)
e92438
e92438
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-4
e92438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e92438
e92438
* Wed Jan 2 2013 Ryan O'Hara <rohara@redhat.com> - 1.2.7-3
e92438
- Update spec file.
e92438
- Add option to prevent respawn of child processes.
e92438
- Remove duplicate command-line option code.
e92438
- Use popt to generate usage message.
e92438
- Fix pointer arithmetic for VRRP packets.
e92438
- Fix comparison of primary IP address.
e92438
- Fix loading of SSL certificate.
e92438
- Fix typo in error message.
e92438
- Update FSF address in GPLv2 license.
e92438
- Remove debug message from if_get_by_ifname.
e92438
e92438
* Mon Sep 24 2012 Václav Pavlín <vpavlin@redhat.com> - 1.2.7-2
e92438
- Scriptlets replaced with new systemd macros (#850173).
e92438
e92438
* Tue Sep 04 2012 Ryan O'Hara <rohara@redhat.com> - 1.2.7-1
e92438
- Update to 1.2.7.
e92438
- Fix systemd service file (#769726).
e92438
e92438
* Mon Aug 20 2012 Ryan O'Hara <rohara@redhat.com> - 1.2.6-1
e92438
- Update to 1.2.6.
e92438
e92438
* Tue Aug 14 2012 Ryan O'Hara <rohara@redhat.com> - 1.2.5-2
e92438
- Install KEEPALIVED-MIB as KEEPALIVED-MIB.txt.
e92438
e92438
* Mon Aug 13 2012 Ryan O'Hara <rohara@redhat.com> - 1.2.5-1
e92438
- Update to 1.2.5.
e92438
e92438
* Wed Aug 01 2012 Ryan O'Hara <rohara@redhat.com> - 1.2.4-1
e92438
- Update to 1.2.4.
e92438
e92438
* Mon Jul 23 2012 Ryan O'Hara <rohara@redhat.com> - 1.2.3-1
e92438
- Update to 1.2.3.
e92438
e92438
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-6
e92438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e92438
e92438
* Tue May 08 2012 Ryan O'Hara <rohara@redhat.com> - 1.2.2-5
e92438
- Fix IPv4 address comparison (#768119).
e92438
e92438
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
e92438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e92438
e92438
* Mon Sep 19 2011 Tom Callaway <spot@fedoraproject.org> - 1.2.2-3
e92438
- convert to systemd
e92438
- fix ip_vs.h path searching in configure
e92438
53d163
* Sat Jul 23 2011 Matthias Saou <http://freshrpms.net/> 1.2.2-2
e92438
- Build against libnl for Fedora. RHEL's libnl is too old.
e92438
e92438
* Sat May 21 2011 Matthias Saou <http://freshrpms.net/> 1.2.2-1
e92438
- Update to 1.2.2.
e92438
e92438
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.20-3
e92438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e92438
e92438
* Sun Jan 16 2011 Dan Horák <dan[at]danny.cz> 1.1.20-2
e92438
- exclude arches where we don't provide 32-bit kernel
e92438
e92438
* Tue Jan 11 2011 Matthias Saou <http://freshrpms.net/> 1.2.1-1
e92438
- Update to 1.2.1, now with IPv6 support.
e92438
e92438
* Sun May 23 2010 Matthias Saou <http://freshrpms.net/> 1.1.20-1
e92438
- Update to 1.1.20 (#589923).
e92438
- Update BR conditional for RHEL6.
e92438
- No longer include goodies/arpreset.pl, it's gone from the sources.
e92438
e92438
* Tue Dec  8 2009 Matthias Saou <http://freshrpms.net/> 1.1.19-3
e92438
- Update init script to have keepalived start after the local MTA (#526512).
e92438
- Simplify the kernel source detection, to avoid running rpm from rpmbuild.
e92438
e92438
* Tue Nov 24 2009 Matthias Saou <http://freshrpms.net/> 1.1.19-2
e92438
- Include patch to remove obsolete -k option to modprobe (#528465).
e92438
e92438
* Wed Oct 21 2009 Matthias Saou <http://freshrpms.net/> 1.1.19-1
e92438
- Update to 1.1.19.
e92438
e92438
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.1.17-3
e92438
- rebuilt with new openssl
e92438
e92438
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.17-2
e92438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e92438
e92438
* Sun Apr 12 2009 Matthias Saou <http://freshrpms.net/> 1.1.17-1
e92438
- Update to 1.1.17.
e92438
- Update init script all the way.
e92438
e92438
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
e92438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e92438
e92438
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> 1.1.15-7
e92438
- rebuild with new openssl
e92438
e92438
* Mon Dec 22 2008 Matthias Saou <http://freshrpms.net/> 1.1.15-6
e92438
- Fork the init script to be (mostly for now) LSB compliant (#246966).
e92438
e92438
* Thu Apr 24 2008 Matthias Saou <http://freshrpms.net/> 1.1.15-5
e92438
- Add glob to the kerneldir location, since it contains the arch for F9+.
e92438
e92438
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
e92438
- Autorebuild for GCC 4.3
e92438
e92438
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org>
e92438
- Rebuild for deps
e92438
e92438
* Mon Oct 22 2007 Matthias Saou <http://freshrpms.net/> 1.1.15-2
e92438
- Update to latest upstream sources, identical except for the included spec.
e92438
e92438
* Mon Sep 17 2007 Matthias Saou <http://freshrpms.net/> 1.1.15-1
e92438
- Update to 1.1.15.
e92438
- Remove merged genhashman and include patches.
e92438
e92438
* Fri Sep 14 2007 Matthias Saou <http://freshrpms.net/> 1.1.14-2
e92438
- Include patch from Shinji Tanaka to fix conf include from inside some
e92438
  directives like vrrp_instance.
e92438
e92438
* Thu Sep 13 2007 Matthias Saou <http://freshrpms.net/> 1.1.14-1
e92438
- Update to 1.1.14.
e92438
- Remove all upstreamed patches.
e92438
- Remove our init script and sysconfig files, use the same now provided by the
e92438
  upstream package (will need to patch for LSB stuff soonish).
e92438
- Include new goodies/arpreset.pl in %%doc.
e92438
- Add missing scriplet requirements.
e92438
e92438
* Wed Aug 22 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-8
e92438
- Rebuild for new BuildID feature.
e92438
e92438
* Sun Aug  5 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-7
e92438
- Update License field.
e92438
e92438
* Mon Mar 26 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-6
e92438
- Fix doc/samples/sample.misccheck.smbcheck.sh mode (600 -> 644).
e92438
e92438
* Thu Mar 22 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-5
e92438
- Include types patch to fix compile on F7 (David Woodhouse).
e92438
- Fix up file modes (main binary 700 -> 755 and config 600 -> 640).
e92438
e92438
* Tue Feb 13 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-4
e92438
- Add missing \n to the kernel define, for when multiple kernels are installed.
e92438
- Pass STRIP=/bin/true to "make" in order to get a useful debuginfo package.
e92438
e92438
* Tue Feb 13 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-3
e92438
- Add %%check section to make sure any build without LVS support will fail.
e92438
e92438
* Mon Feb  5 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-2
e92438
- Use our own init script, include a sysconfig entry used by it for options.
e92438
e92438
* Thu Jan 25 2007 Matthias Saou <http://freshrpms.net/> 1.1.13-1
e92438
- Update to 1.1.13.
e92438
- Change mode of configuration file to 0600.
e92438
- Don't include all of "doc" since it meant re-including all man pages.
e92438
- Don't include samples in the main configuration path, they're in %%doc.
e92438
- Include patch to add an optional label to interfaces.
e92438
e92438
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.1.12-1.2
e92438
- Rebuild for Fedora Core 5.
e92438
e92438
* Sun Mar 12 2006 Dag Wieers <dag@wieers.com> - 1.1.12-1
e92438
- Updated to release 1.1.12.
e92438
e92438
* Fri Mar 04 2005 Dag Wieers <dag@wieers.com> - 1.1.11-1
e92438
- Updated to release 1.1.11.
e92438
e92438
* Wed Feb 23 2005 Dag Wieers <dag@wieers.com> - 1.1.10-2
e92438
- Fixed IPVS/LVS support. (Joe Sauer)
e92438
e92438
* Tue Feb 15 2005 Dag Wieers <dag@wieers.com> - 1.1.10-1
e92438
- Updated to release 1.1.10.
e92438
e92438
* Mon Feb 07 2005 Dag Wieers <dag@wieers.com> - 1.1.9-1
e92438
- Updated to release 1.1.9.
e92438
e92438
* Sun Oct 17 2004 Dag Wieers <dag@wieers.com> - 1.1.7-2
e92438
- Fixes to build with kernel IPVS support. (Tim Verhoeven)
e92438
e92438
* Fri Sep 24 2004 Dag Wieers <dag@wieers.com> - 1.1.7-1
e92438
- Updated to release 1.1.7. (Mathieu Lubrano)
e92438
e92438
* Mon Feb 23 2004 Dag Wieers <dag@wieers.com> - 1.1.6-0
e92438
- Updated to release 1.1.6.
e92438
e92438
* Mon Jan 26 2004 Dag Wieers <dag@wieers.com> - 1.1.5-0
e92438
- Updated to release 1.1.5.
e92438
e92438
* Mon Dec 29 2003 Dag Wieers <dag@wieers.com> - 1.1.4-0
e92438
- Updated to release 1.1.4.
e92438
e92438
* Fri Jun 06 2003 Dag Wieers <dag@wieers.com> - 1.0.3-0
e92438
- Initial package. (using DAR)
e92438