380d7b
Summary: Tools to manage the Linux NetLabel subsystem
380d7b
Name: netlabel_tools
380d7b
Version: 0.20
380d7b
Release: 5%{?dist}
380d7b
License: GPLv2
380d7b
Group: System Environment/Daemons
380d7b
URL: http://netlabel.sf.net/
380d7b
Source0: http://downloads.sourceforge.net/netlabel/%{name}-%{version}.tar.gz
380d7b
BuildRoot: %{_tmppath}/%{name}-%{version}
380d7b
Requires: kernel >= 2.6.19
380d7b
Requires(post): systemd
380d7b
Requires(preun): systemd
380d7b
Requires(postun): systemd
380d7b
BuildRequires: kernel-headers >= 2.6.19
380d7b
BuildRequires: libnl-devel
380d7b
BuildRequires: doxygen
380d7b
BuildRequires: systemd
380d7b
380d7b
Patch01: netlabelctl-addr_parse_fix.patch
380d7b
Patch02: libnetlabel-nla_put_nested_fix.patch
380d7b
Patch03: libnetlabel-message_size.patch
380d7b
380d7b
%description
380d7b
NetLabel is a kernel subsystem which implements explicit packet labeling
380d7b
protocols such as CIPSO for Linux.  Packet labeling is used in secure networks
380d7b
to mark packets with the security attributes of the data they contain.  This
380d7b
package provides the necessary user space tools to query and configure the
380d7b
kernel subsystem.
380d7b
380d7b
%prep
380d7b
%setup -q
380d7b
380d7b
%patch01 -p1
380d7b
%patch02 -p1
380d7b
%patch03 -p1
380d7b
380d7b
%build
380d7b
./configure --prefix="%{_prefix}" --libdir="%{_libdir}" --enable-systemd
380d7b
CFLAGS="%{optflags}" make V=1 %{?_smp_mflags}
380d7b
380d7b
%install
380d7b
rm -rf "%{buildroot}"
380d7b
mkdir -p "%{buildroot}/etc"
380d7b
mkdir -p "%{buildroot}/%{_sbindir}"
380d7b
mkdir -p "%{buildroot}/%{_unitdir}"
380d7b
mkdir -p "%{buildroot}/%{_mandir}"
380d7b
make V=1 DESTDIR="%{buildroot}" install
380d7b
380d7b
%preun
380d7b
%systemd_preun netlabel.service
380d7b
380d7b
%postun
380d7b
%systemd_postun
380d7b
380d7b
%post
380d7b
%systemd_post netlabel.service
380d7b
380d7b
%files
380d7b
%defattr(-,root,root)
380d7b
%doc README CHANGELOG LICENSE
380d7b
%attr(0644,root,root) %{_mandir}/man8/*
380d7b
%attr(0755,root,root) %{_sbindir}/netlabelctl
380d7b
%attr(0755,root,root) %{_sbindir}/netlabel-config
380d7b
%attr(0644,root,root) %{_unitdir}/netlabel.service
380d7b
%attr(0644,root,root) %config(noreplace) /etc/netlabel.rules
380d7b
380d7b
%changelog
380d7b
* Thu Feb 27 2014 Paul Moore <pmoore@redhat.com> - 0.20-5
380d7b
- Build with CFLAGS="${optflags}" (RHBZ #1070780)
380d7b
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.20-4
380d7b
- Mass rebuild 2014-01-24
380d7b
380d7b
* Wed Jan 15 2014 Paul Moore <pmoore@redhat.com> - 0.20-3
380d7b
- Fix a problem when adding a CIPSO DOI with a large number of translations
380d7b
- Remove old patches
380d7b
  Resolves: #1053687
380d7b
380d7b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.20-2
380d7b
- Mass rebuild 2013-12-27
380d7b
380d7b
* Fri Oct 25 2013 Paul Moore <pmoore@redhat.com> - 0.20-1
380d7b
- Add input validation on network address masks (#1003909)
380d7b
380d7b
* Mon Jun 3 2013 Paul Moore <pmoore@redhat.com> - 0.20-0
380d7b
- Version bump to match latest upstream
380d7b
- Cleanups in the specfile due to changes in the upstream package
380d7b
380d7b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-12
380d7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
380d7b
380d7b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-11
380d7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
380d7b
380d7b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-10
380d7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
380d7b
380d7b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-9
380d7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
380d7b
380d7b
* Thu Jun 17 2010 Peter Vrabec <pvrabec@redhat.com> - 0.19-8
380d7b
- fixing return codes (#602291)
380d7b
380d7b
* Wed Jun 16 2010 Peter Vrabec <pvrabec@redhat.com> - 0.19-7
380d7b
- make initscript LSB compliant (#522818)
380d7b
- show version of netlabelctl and libnetlabel in help (#602577)
380d7b
380d7b
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-6
380d7b
- make initscript LSB compliant (#522818)
380d7b
380d7b
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-5
380d7b
- increase rel. number
380d7b
380d7b
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-4
380d7b
- fix license tag in spec (#524310)
380d7b
380d7b
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-3
380d7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
380d7b
380d7b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-2
380d7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
380d7b
380d7b
* Thu Jan 08 2009 Peter Vrabec <pvrabec@redhat.com> - 0.19-1
380d7b
- upgrade (#478903)
380d7b
380d7b
* Mon Oct 27 2008 Peter Vrabec <pvrabec@redhat.com> - 0.18-1
380d7b
- upgrade (#439833)
380d7b
380d7b
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.17-8
380d7b
- fix license tag
380d7b
380d7b
* Mon Feb  11 2008 Steve Conklin <sconklin@redhat.com> - 0.17-7
380d7b
- New patch for bz#431766 to resolve conflicts
380d7b
380d7b
* Thu Feb  7 2008 Steve Conklin <sconklin@redhat.com> - 0.17-6
380d7b
- Various fixes to follow upstream
380d7b
- Resolves bz#431765 The example configuration file is invalid
380d7b
- Resolves bz#431766 The netlabelctl command fails to run due to newer libnl package
380d7b
- Resolves bz#431767 The url listed in the netlabel_tools package is wrong
380d7b
380d7b
* Mon Oct 16 2006 James Antill <james@and.org> - 0.17-3
380d7b
- Add upstream patch.
380d7b
- s/p1/p0/ for upstream patch.
380d7b
380d7b
* Sat Oct 14 2006 Steve Grubb <sgrubb@redhat.com> - 0.17-3
380d7b
- Add init scripts and default rules
380d7b
380d7b
* Sun Oct  1 2006 James Antill <james@and.org> - 0.17-2
380d7b
- Upgrade to latest upstream.
380d7b
380d7b
* Tue Aug 29 2006 James Antill <james@and.org> - 0.16-5
380d7b
- Fix install calls for mock.
380d7b
380d7b
* Tue Aug 29 2006 James Antill <james@and.org> - 0.16-4
380d7b
- Fix more reviewing problems, building on newer kernel-headers.
380d7b
- Add URL tag.
380d7b
380d7b
* Fri Aug 18 2006 James Antill <james@and.org> - 0.16-3
380d7b
- Fix minor review problems.
380d7b
- Added BuildRequires for kernel headers (netlink).
380d7b
380d7b
* Fri Aug 18 2006 James Antill <james@and.org> - 0.16-2
380d7b
- Use root as owner.
380d7b
- Contribute to fedora extras.
380d7b
380d7b
* Thu Aug  3 2006 Paul Moore <paul.moore@hp.com> 0.16-1
380d7b
- Bumped version number.
380d7b
380d7b
* Thu Jul  6 2006 Paul Moore <paul.moore@hp.com> 0.15-1
380d7b
- Bumped version number.
380d7b
380d7b
* Mon Jun 26 2006 Paul Moore <paul.moore@hp.com> 0.14-1
380d7b
- Bumped version number.
380d7b
- Changes related to including the version number in the path name.
380d7b
- Changed the netlabelctl perms from 0750 to 0755.
380d7b
- Removed the patch. (included in the base with edits)
380d7b
- Updated the description.
380d7b
380d7b
* Fri Jun 23 2006 Steve Grubb <sgrubb@redhat.com> 0.13-1
380d7b
- Initial build.
380d7b