Blame SPECS/cgdcbxd.spec

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