bf9192
Name:		cgdcbxd
bf9192
Version:	1.0.2
bf9192
Release:	9%{?dist}
bf9192
Summary:	DCB network priority management daemon	
bf9192
Group:		System Environment/Base
bf9192
License:	GPLv2
bf9192
URL:		https://github.com/jrfastab/cgdcbxd
bf9192
bf9192
# The source for this package was pullled from upstreams vcs.  Specifically it
bf9192
# was pulled from the projects github site using the following dynamic tarball
bf9192
# generating url:
bf9192
# https://github.com/jrfastab/cgdcbxd/zipball/v1.0.1
bf9192
Source0:	%{name}-%{version}.tar.gz
bf9192
bf9192
# The service file was created locally for the fedora project, but will be sent
bf9192
# upstream shortly
bf9192
Source1:	%{name}.service
bf9192
BuildRequires:	libcgroup-devel libmnl-devel libtool systemd-units
bf9192
Requires(post): systemd
bf9192
Requires(preun): systemd
bf9192
Requires(postun): systemd
bf9192
bf9192
%description
bf9192
This is a daemon to manage the priority of network traffic in dcb enabled
bf9192
environments.  By using the information exchanged over the dcbx protocol on a
bf9192
LAN, this package will enforce network priority on running applications on your
bf9192
host using the net_prio cgroup
bf9192
bf9192
%prep
bf9192
%setup -q 
bf9192
bf9192
%build
bf9192
./bootstrap.sh
bf9192
export CFLAGS="-g -DFORTIFY_SOURCE -fPIE -Wl,-z,relro,-z,now"
bf9192
export LDFLAGS=-pie
bf9192
%{configure}
bf9192
make
bf9192
bf9192
%install
bf9192
make DESTDIR=$RPM_BUILD_ROOT install
bf9192
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}
bf9192
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/cgdcbxd.service
bf9192
bf9192
%files
bf9192
%doc COPYING
bf9192
%{_unitdir}/cgdcbxd.service
bf9192
%{_mandir}/man8/*
bf9192
%{_sbindir}/*
bf9192
bf9192
%post
bf9192
%systemd_post cgdcbxd.service
bf9192
bf9192
%preun
bf9192
%systemd_preun cgdcbxd.service
bf9192
bf9192
%postun
bf9192
%systemd_postun_with_restart cgdcbxd.service
bf9192
bf9192
bf9192
%changelog
bf9192
* Mon Feb 25 2019 Neil Horman <nhorman@redhat.com> - 1.0.2-9
bf9192
- Fix erroneous cgrulesend dependency
bf9192
bf9192
* Mon Feb 25 2019 Neil Horman <nhorman@redhat.com> - 1.0.2-8
bf9192
- Adding debug flag to allow debug packages
bf9192
bf9192
* Wed Feb 17 2016 Neil Horman <nhorman@redhat.com> - 1.0.2-7
bf9192
- Add fortify source to build (bz 1092524)
bf9192
bf9192
* Wed Feb 17 2016 Neil Horman <nhorman@redhat.com> - 1.0.2-6
bf9192
- Enable RELRO and PIE in build (bz 1092524)
bf9192
bf9192
* Tue Mar 04 2014 Neil Horman <nhorman@redhat.com> - 1.0.2-5
bf9192
- Fixed double usr/sbin in cgrulesengd path (bz1065694)
bf9192
bf9192
* Mon Mar 03 2014 Neil Horman <nhorman@redhat.com> - 1.0.2-4
bf9192
- Added proper dependencies and cgrules trigger (bz1065694)
bf9192
bf9192
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.2-3
bf9192
- Mass rebuild 2014-01-24
bf9192
bf9192
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.2-2
bf9192
- Mass rebuild 2013-12-27
bf9192
bf9192
* Tue Jul 23 2013 Neil Horman <nhorman@redhat.com> - 1.0.2-1
bf9192
- Update to latest upstream
bf9192
bf9192
* Tue May 28 2013 Neil Horman <nhorman@redhat.com> - 1.0.1-3
bf9192
- Fix the spec file to match new systemd install scripts (bz967588)
bf9192
bf9192
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
bf9192
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bf9192
bf9192
* Mon Jun 25 2012 Neil Horman <nhorman@tuxdriver.com> 1.0.1-1 
bf9192
- Initial build