Neil Horman 808e1dc
%global _hardened_build 1
Neil Horman 808e1dc
Neil Horman f77a4c6
Name:		cgdcbxd
836d3e9
Version:	1.0.2
a74cd6d
Release:	4%{?dist}
Neil Horman f77a4c6
Summary:	DCB network priority management daemon	
Neil Horman f77a4c6
Group:		System Environment/Base
Neil Horman f77a4c6
License:	GPLv2
Neil Horman f77a4c6
URL:		https://github.com/jrfastab/cgdcbxd
836d3e9
Source:		https://github.com/jrfastab/cgdcbxd/archive/v%{version}.tar.gz
Neil Horman f77a4c6
Neil Horman f77a4c6
# The service file was created locally for the fedora project, but will be sent
Neil Horman f77a4c6
# upstream shortly
Neil Horman f77a4c6
Source1:	%{name}.service
836d3e9
BuildRequires:	libcgroup-devel libmnl-devel libtool systemd
836d3e9
Requires(post): systemd
836d3e9
Requires(preun): systemd
836d3e9
Requires(postun): systemd
Neil Horman f77a4c6
Neil Horman f77a4c6
%description
Neil Horman f77a4c6
This is a daemon to manage the priority of network traffic in dcb enabled
Neil Horman f77a4c6
environments.  By using the information exchanged over the dcbx protocol on a
Neil Horman f77a4c6
LAN, this package will enforce network priority on running applications on your
Neil Horman f77a4c6
host using the net_prio cgroup
Neil Horman f77a4c6
Neil Horman f77a4c6
%prep
836d3e9
%setup -q
Neil Horman f77a4c6
Neil Horman f77a4c6
%build
Neil Horman f77a4c6
./bootstrap.sh
Neil Horman 808e1dc
export CFLAGS=$RPM_OPT_FLAGS
Neil Horman 808e1dc
export LDFLAGS=$RPM_LD_FLAGS
Neil Horman f77a4c6
%{configure}
Neil Horman f77a4c6
make
Neil Horman f77a4c6
Neil Horman f77a4c6
%install
Neil Horman f77a4c6
make DESTDIR=$RPM_BUILD_ROOT install
Neil Horman f77a4c6
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}
Neil Horman f77a4c6
install -D -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/cgdcbxd.service
Neil Horman f77a4c6
Neil Horman f77a4c6
%files
Neil Horman f77a4c6
%doc COPYING
Neil Horman f77a4c6
%{_unitdir}/cgdcbxd.service
Neil Horman f77a4c6
%{_mandir}/man8/*
Neil Horman f77a4c6
%{_sbindir}/*
Neil Horman f77a4c6
Neil Horman f77a4c6
%post
836d3e9
%systemd_post cgdcbxd.service
Neil Horman f77a4c6
Neil Horman f77a4c6
%preun
836d3e9
%systemd_preun cgdcbxd.service
Neil Horman f77a4c6
Neil Horman f77a4c6
%postun
836d3e9
%systemd_postun_with_restart cgdcbxd.service
Neil Horman f77a4c6
Neil Horman f77a4c6
%changelog
a74cd6d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-4
a74cd6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a74cd6d
c86d6d9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
c86d6d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c86d6d9
3fa94c2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
3fa94c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3fa94c2
836d3e9
* Tue Oct 14 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.2-1
836d3e9
- Update to 1.0.2
836d3e9
- Spec cleanups
836d3e9
223fda7
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
223fda7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
223fda7
52af1d7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
52af1d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
52af1d7
Neil Horman 808e1dc
* Wed May 28 2014 Neil Horman <nhorman@redhat.com> - 1.0.1-5
Neil Horman 808e1dc
- Update spec file to use _hardend_build macro
Neil Horman 808e1dc
Neil Horman 34342ff
* Fri May 02 2014 Neil Horman <nhorman@redhat.com> - 1.0.1-4
Neil Horman 34342ff
- Fixed build to enable RELRO and PIE
Neil Horman 34342ff
a16f1ea
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
a16f1ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a16f1ea
8eb4cdc
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
8eb4cdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8eb4cdc
Neil Horman f77a4c6
* Mon Jun 25 2012 Neil Horman <nhorman@tuxdriver.com> 1.0.1-1 
Neil Horman f77a4c6
- Initial build