Blame SPECS/cgdcbxd.spec

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