Blame SPECS/cgdcbxd.spec

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