Blame SPECS/ipvsadm.spec

6c921a
Name: ipvsadm
6c921a
Summary: Utility to administer the Linux Virtual Server
6c921a
Version: 1.27
6c921a
Release: 1%{?dist}
6c921a
License: GPLv2+
6c921a
Group: Applications/System
6c921a
URL: https://kernel.org/pub/linux/utils/kernel/ipvsadm/
6c921a
6c921a
Source0: https://kernel.org/pub/linux/utils/kernel/ipvsadm/%{name}-%{version}.tar.gz
6c921a
Source1: ipvsadm.service
6c921a
Source2: ipvsadm-config
6c921a
6c921a
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
6c921a
Buildrequires: libnl-devel
6c921a
Buildrequires: popt-devel
6c921a
BuildRequires: systemd
6c921a
Requires(post): systemd
6c921a
Requires(preun): systemd
6c921a
Requires(postun): systemd
6c921a
# For triggerun
6c921a
Requires(post): systemd-sysv
6c921a
6c921a
%description
6c921a
ipvsadm is a utility to administer the IP Virtual Server services
6c921a
offered by the Linux kernel.
6c921a
6c921a
6c921a
%prep
6c921a
%setup -q
6c921a
6c921a
6c921a
%build
6c921a
# Don't use _smp_mflags as it makes the build fail (1.2.4)
6c921a
CFLAGS="%{optflags}" make
6c921a
6c921a
6c921a
%install
6c921a
rm -rf %{buildroot}
6c921a
mkdir -p %{buildroot}/etc/rc.d/init.d
6c921a
make install BUILD_ROOT=%{buildroot} MANDIR=%{_mandir}
6c921a
# Remove the provided init script
6c921a
rm -f %{buildroot}/etc/rc.d/init.d/ipvsadm
6c921a
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/ipvsadm.service
6c921a
# Install config file which controls the service behavior
6c921a
install -D -p -m 0600 %{SOURCE2} %{buildroot}/etc/sysconfig/ipvsadm-config
6c921a
6c921a
6c921a
%clean
6c921a
rm -rf %{buildroot}
6c921a
6c921a
6c921a
%post
6c921a
%systemd_post ipvsadm.service
6c921a
6c921a
%preun
6c921a
%systemd_preun ipvsadm.service
6c921a
6c921a
%postun
6c921a
%systemd_postun_with_restart ipvsadm.service
6c921a
6c921a
6c921a
%triggerun -- ipvsadm < 1.26-4
6c921a
# Save the current service runlevel info
6c921a
# User must manually run systemd-sysv-convert --apply ipvsadm
6c921a
# to migrate them to systemd targets
6c921a
/usr/bin/systemd-sysv-convert --save ipvsadm >/dev/null 2>&1 ||:
6c921a
6c921a
# Run these because the SysV package being removed won't do them
6c921a
/sbin/chkconfig --del ipvsadm >/dev/null 2>&1 || :
6c921a
/bin/systemctl try-restart ipvsadm.service >/dev/null 2>&1 || :
6c921a
6c921a
%files
6c921a
%defattr(-,root,root)
6c921a
%doc README
6c921a
%{_unitdir}/ipvsadm.service
6c921a
%config(noreplace) /etc/sysconfig/ipvsadm-config
6c921a
/sbin/ipvsadm
6c921a
/sbin/ipvsadm-restore
6c921a
/sbin/ipvsadm-save
6c921a
%{_mandir}/man8/ipvsadm.8*
6c921a
%{_mandir}/man8/ipvsadm-restore.8*
6c921a
%{_mandir}/man8/ipvsadm-save.8*
6c921a
6c921a
6c921a
%changelog
6c921a
* Fri Sep 06 2013 Ryan O'Hara <rohara@redhat.com> - 1.27-1
6c921a
- Update to 1.27
6c921a
6c921a
* Wed Mar 20 2013 Ryan O'Hara <rohara@redhat.com> - 1.26-8
6c921a
- Use new systemd-rpm macros in ipvsadm spec file (#850168).
6c921a
6c921a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-7
6c921a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6c921a
6c921a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-6
6c921a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6c921a
6c921a
* Mon Jul  9 2012 Ryan O'Hara <rohara@redhat.com> - 1.26-5
6c921a
- Fix list_daemon to not assume sync daemon status is ordered (#805208).
6c921a
6c921a
* Thu Apr 19 2012 Jon Ciesla <limburgher@gmail.com> - 1.26-4
6c921a
- Migrate to systemd, BZ 720175.
6c921a
6c921a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-3
6c921a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6c921a
6c921a
* Mon Jul 11 2011 Matthias Saou <http://freshrpms.net/> 1.26-2
6c921a
- Backport the init script from RHEL6, which contains lots of changes to make
6c921a
  it behave simlarly to the iptables init script (#593276).
6c921a
6c921a
* Sat Jul  9 2011 Matthias Saou <http://freshrpms.net/> 1.26-1
6c921a
- Update to 1.26 (#676167).
6c921a
- Remove upstreamed Makefile and activeconns patchs, rebase popt patch.
6c921a
6c921a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-6
6c921a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6c921a
6c921a
* Thu Apr 29 2010 Matthias Saou <http://freshrpms.net/> 1.25-5
6c921a
- Include patch to fix activeconns when using the netlink interface (#573921).
6c921a
6c921a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-4
6c921a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6c921a
6c921a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-3
6c921a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6c921a
6c921a
* Wed Dec 24 2008 Matthias Saou <http://freshrpms.net/> 1.25-2
6c921a
- Fork the included init script to be (mostly) LSB compliant (#246955).
6c921a
6c921a
* Mon Dec 22 2008 Matthias Saou <http://freshrpms.net/> 1.25-1
6c921a
- Prepare update to 1.25 for when devel will update to kernel 2.6.28.
6c921a
- Build require libnl-devel and popt-devel (+ patch to fix popt detection).
6c921a
6c921a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
6c921a
- Autorebuild for GCC 4.3
6c921a
6c921a
* Mon Oct 22 2007 Matthias Saou <http://freshrpms.net/> 1.24-10
6c921a
- Update to latest upstream sources. Same filename, but updated content!
6c921a
- Update kernhdr patch for it to still apply, update ip_vs.h from 1.2.0 to
6c921a
  1.2.1 from kernel 2.6.23.1.
6c921a
6c921a
* Fri Aug 24 2007 Matthias Saou <http://freshrpms.net/> 1.24-9
6c921a
- Spec file cleanup.
6c921a
- Update License field.
6c921a
- Don't "chkconfig --del" upon update.
6c921a
- Add missing kernel-headers build requirement.
6c921a
- Update URL and Source locations.
6c921a
- Remove outdated piranha obsoletes, it has never been part of any Fedora.
6c921a
- No longer mark init script as config.
6c921a
- Include Makefile patch to prevent stripping and install init script.
6c921a
- The init script could use a rewrite... leave that one for later.
6c921a
6c921a
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.24-8.1
6c921a
- rebuild
6c921a
6c921a
* Mon May 15 2006 Phil Knirsch <pknirsch@redhat.com> - 1.24-8
6c921a
- Added missing prereq to chkconfig
6c921a
6c921a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.24-7.2.1
6c921a
- bump again for double-long bug on ppc(64)
6c921a
6c921a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.24-7.2
6c921a
- rebuilt for new gcc4.1 snapshot and glibc changes
6c921a
6c921a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
6c921a
- rebuilt
6c921a
6c921a
* Mon Mar 14 2005 Lon Hohberger <lhh@redhat.com> 1.24-7
6c921a
- rebuilt
6c921a
6c921a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
6c921a
- rebuilt
6c921a
6c921a
* Tue Mar 16 2004 Mike McLean <mikem@redhat.com> 1.24-4.2.ipvs120
6c921a
- bump release
6c921a
6c921a
* Tue Mar 02 2004 Mike McLean <mikem@redhat.com> 1.24-4.1.ipvs120
6c921a
- update to new version for 2.6 kernel
6c921a
6c921a
* Thu Jan 08 2004 Mike McLean <mikem@redhat.com> 1.21-10.ipvs108
6c921a
- fixing a minor bug/typo in output format processing
6c921a
6c921a
* Wed Aug 06 2003 Mike McLean <mikem@redhat.com> 1.21-9.ipvs108
6c921a
- Dropping kernel-source BuildRequires and including a local copy of 
6c921a
  net/ip_vs.h to compensate.
6c921a
- Incorporating some upstream changes, most notably the --sort option.
6c921a
6c921a
* Fri Jun 13 2003 Mike McLean <mikem@redhat.com> 1.21-8
6c921a
- dropping ppc from excluded arches
6c921a
6c921a
* Thu Apr 4 2003 Mike McLean <mikem@redhat.com> 1.21-7
6c921a
- changing %%ExcludeArch
6c921a
6c921a
* Thu Apr 4 2003 Mike McLean <mikem@redhat.com> 1.21-6
6c921a
- added BuildRequires: kernel-source
6c921a
- escaped all %% characters in %%changelog
6c921a
6c921a
* Mon Dec 2 2002 Mike McLean <mikem@redhat.com> 1.21-5
6c921a
- Improved the description in the ipvsadm initscript.
6c921a
- fixed Buildroot to use _tmppath
6c921a
6c921a
* Wed Aug 21 2002 Philip Copeland <bryce@redhat.com> 1.21-4
6c921a
- Argh,.. %%docdir was defined which overrode what I'd
6c921a
  intended to happen
6c921a
6c921a
* Tue Aug 1 2002 Philip Copeland <bryce@redhat.com>
6c921a
- Ah... the manuals were being pushed into /usr/man
6c921a
  instead of /usr/share/man. Fixed.
6c921a
6c921a
* Tue Jul 16 2002 Philip Copeland <bryce@redhat.com>
6c921a
- Minor Makefile tweak so that we do a minimal hunt for to find
6c921a
  the ip_vs.h file location
6c921a
6c921a
* Thu Dec 16 2001 Wensong Zhang <wensong@linuxvirtualserver.org>
6c921a
- Changed to install ipvsadm man pages according to the %%{_mandir}
6c921a
6c921a
* Thu Dec 30 2000 Wensong Zhang <wensong@linuxvirtualserver.org>
6c921a
- update the %%file section
6c921a
6c921a
* Thu Dec 17 2000 Wensong Zhang <wensong@linuxvirtualserver.org>
6c921a
- Added a if-condition to keep both new or old rpm utility building
6c921a
  the package happily.
6c921a
6c921a
* Tue Dec 12 2000 P.opeland <bryce@redhat.com>
6c921a
- Small modifications to make the compiler happy in RH7 and the Alpha
6c921a
- Fixed the documentation file that got missed off in building
6c921a
  the rpm
6c921a
- Made a number of -pedantic mods though popt will not compile with
6c921a
  -pedantic
6c921a
6c921a
* Wed Aug 9 2000 Horms <horms@vergenet.net>
6c921a
- Removed Obseletes tag as ipvsadm is back in /sbin where it belongs 
6c921a
  as it is more or less analogous to both route and ipchains both of
6c921a
  which reside in /sbin.
6c921a
- Create directory to install init script into. Init scripts won't install
6c921a
  into build directory unless this is done
6c921a
6c921a
* Thu Jul  6 2000 Wensong Zhang <wensong@linuxvirtualserver.org>
6c921a
- Changed to build rpms on the ipvsadm tar ball directly
6c921a
6c921a
* Wed Jun 21 2000 P.Copeland <copeland@redhat.com>
6c921a
- fixed silly install permission settings
6c921a
6c921a
* Mon Jun 19 2000 P.Copeland <copeland@redhat.com>
6c921a
- Added 'dist' and 'rpms' to the Makefile
6c921a
- Added Obsoletes tag since there were early versions
6c921a
  of ipvsadm-*.rpm that installed in /sbin
6c921a
- Obsolete tag was a bit vicious re: piranha
6c921a
6c921a
* Mon Apr 10 2000 Horms <horms@vergenet.net>
6c921a
- created for version 1.9
6c921a