3a97a3
Summary: Tools to manage the Linux NetLabel subsystem
3a97a3
Name: netlabel_tools
3a97a3
Version: 0.30.0
3a97a3
Release: 3%{?dist}
3a97a3
License: GPLv2
3a97a3
Group: System Environment/Daemons
3a97a3
Source: https://github.com/netlabel/netlabel_tools/releases/download/v%{version}/%{name}-%{version}.tar.gz
3a97a3
URL: https://github.com/netlabel/netlabel_tools
3a97a3
3a97a3
Requires: kernel libnl3
3a97a3
Requires(post): systemd
3a97a3
Requires(preun): systemd
3a97a3
Requires(postun): systemd
3a97a3
BuildRequires: kernel-headers
3a97a3
BuildRequires: libnl3-devel
3a97a3
BuildRequires: doxygen
3a97a3
BuildRequires: systemd
3a97a3
3a97a3
%description
3a97a3
NetLabel is a kernel subsystem which implements explicit packet labeling
3a97a3
protocols such as CIPSO for Linux.  Packet labeling is used in secure networks
3a97a3
to mark packets with the security attributes of the data they contain.  This
3a97a3
package provides the necessary user space tools to query and configure the
3a97a3
kernel subsystem.
3a97a3
3a97a3
%prep
3a97a3
%setup -q
3a97a3
3a97a3
%build
3a97a3
%configure
3a97a3
make V=1 %{?_smp_mflags}
3a97a3
3a97a3
%install
3a97a3
rm -rf "%{buildroot}"
3a97a3
mkdir -p "%{buildroot}/etc"
3a97a3
mkdir -p "%{buildroot}/%{_sbindir}"
3a97a3
mkdir -p "%{buildroot}/%{_unitdir}"
3a97a3
mkdir -p "%{buildroot}/%{_mandir}"
3a97a3
make V=1 DESTDIR="%{buildroot}" install
3a97a3
3a97a3
# NOTE: disable since the tests require messing with the running kernel
3a97a3
#%check
3a97a3
#make V=1 check
3a97a3
3a97a3
%preun
3a97a3
%systemd_preun netlabel.service
3a97a3
3a97a3
%postun
3a97a3
%systemd_postun netlabel.service
3a97a3
3a97a3
%post
3a97a3
%systemd_post netlabel.service
3a97a3
3a97a3
%files
3a97a3
%{!?_licensedir:%global license %%doc}
3a97a3
%license LICENSE
3a97a3
%doc README
3a97a3
%doc CHANGELOG
3a97a3
%doc SUBMITTING_PATCHES
3a97a3
%attr(0644,root,root) %{_mandir}/man8/*
3a97a3
%attr(0755,root,root) %{_sbindir}/netlabelctl
3a97a3
%attr(0755,root,root) %{_sbindir}/netlabel-config
3a97a3
%attr(0644,root,root) %{_unitdir}/netlabel.service
3a97a3
%attr(0644,root,root) %config(noreplace) /etc/netlabel.rules
3a97a3
3a97a3
%changelog
3a97a3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0-3
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3a97a3
3a97a3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0-2
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3a97a3
3a97a3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0-1
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3a97a3
3a97a3
* Thu Dec 08 2016 Paul Moore <pmoore@redhat.com> - 0.30.0-0
3a97a3
-New upstream version
3a97a3
3a97a3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-1
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3a97a3
3a97a3
* Fri Jul 10 2015 Paul Moore <pmoore@redhat.com> - 0.21-0
3a97a3
- New upstream version
3a97a3
3a97a3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-6
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3a97a3
3a97a3
* Sat Mar 21 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.20-5
3a97a3
- Add patch to support libnl3
3a97a3
- Use %%license
3a97a3
- Cleanup spec
3a97a3
3a97a3
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-4
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3a97a3
3a97a3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-3
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3a97a3
3a97a3
* Thu Feb 27 2014 Paul Moore <pmoore@redhat.com> - 0.20-2
3a97a3
- Build with CFLAGS="${optflags}"
3a97a3
3a97a3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-1
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3a97a3
3a97a3
* Mon Jun 3 2013 Paul Moore <pmoore@redhat.com> - 0.20-0
3a97a3
- Version bump to match latest upstream
3a97a3
- Cleanups in the specfile due to changes in the upstream package
3a97a3
3a97a3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-12
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3a97a3
3a97a3
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-11
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3a97a3
3a97a3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-10
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3a97a3
3a97a3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-9
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3a97a3
3a97a3
* Thu Jun 17 2010 Peter Vrabec <pvrabec@redhat.com> - 0.19-8
3a97a3
- fixing return codes (#602291)
3a97a3
3a97a3
* Wed Jun 16 2010 Peter Vrabec <pvrabec@redhat.com> - 0.19-7
3a97a3
- make initscript LSB compliant (#522818)
3a97a3
- show version of netlabelctl and libnetlabel in help (#602577)
3a97a3
3a97a3
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-6
3a97a3
- make initscript LSB compliant (#522818)
3a97a3
3a97a3
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-5
3a97a3
- increase rel. number
3a97a3
3a97a3
* Wed Sep 23 2009 Peter Vrabec <pvrabec@redhat.com> 0.19-4
3a97a3
- fix license tag in spec (#524310)
3a97a3
3a97a3
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-3
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3a97a3
3a97a3
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-2
3a97a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3a97a3
3a97a3
* Thu Jan 08 2009 Peter Vrabec <pvrabec@redhat.com> - 0.19-1
3a97a3
- upgrade (#478903)
3a97a3
3a97a3
* Mon Oct 27 2008 Peter Vrabec <pvrabec@redhat.com> - 0.18-1
3a97a3
- upgrade (#439833)
3a97a3
3a97a3
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.17-8
3a97a3
- fix license tag
3a97a3
3a97a3
* Mon Feb  11 2008 Steve Conklin <sconklin@redhat.com> - 0.17-7
3a97a3
- New patch for bz#431766 to resolve conflicts
3a97a3
3a97a3
* Thu Feb  7 2008 Steve Conklin <sconklin@redhat.com> - 0.17-6
3a97a3
- Various fixes to follow upstream
3a97a3
- Resolves bz#431765 The example configuration file is invalid
3a97a3
- Resolves bz#431766 The netlabelctl command fails to run due to newer libnl package
3a97a3
- Resolves bz#431767 The url listed in the netlabel_tools package is wrong
3a97a3
3a97a3
* Mon Oct 16 2006 James Antill <james@and.org> - 0.17-3
3a97a3
- Add upstream patch.
3a97a3
- s/p1/p0/ for upstream patch.
3a97a3
3a97a3
* Sat Oct 14 2006 Steve Grubb <sgrubb@redhat.com> - 0.17-3
3a97a3
- Add init scripts and default rules
3a97a3
3a97a3
* Sun Oct  1 2006 James Antill <james@and.org> - 0.17-2
3a97a3
- Upgrade to latest upstream.
3a97a3
3a97a3
* Tue Aug 29 2006 James Antill <james@and.org> - 0.16-5
3a97a3
- Fix install calls for mock.
3a97a3
3a97a3
* Tue Aug 29 2006 James Antill <james@and.org> - 0.16-4
3a97a3
- Fix more reviewing problems, building on newer kernel-headers.
3a97a3
- Add URL tag.
3a97a3
3a97a3
* Fri Aug 18 2006 James Antill <james@and.org> - 0.16-3
3a97a3
- Fix minor review problems.
3a97a3
- Added BuildRequires for kernel headers (netlink).
3a97a3
3a97a3
* Fri Aug 18 2006 James Antill <james@and.org> - 0.16-2
3a97a3
- Use root as owner.
3a97a3
- Contribute to fedora extras.
3a97a3
3a97a3
* Thu Aug  3 2006 Paul Moore <paul.moore@hp.com> 0.16-1
3a97a3
- Bumped version number.
3a97a3
3a97a3
* Thu Jul  6 2006 Paul Moore <paul.moore@hp.com> 0.15-1
3a97a3
- Bumped version number.
3a97a3
3a97a3
* Mon Jun 26 2006 Paul Moore <paul.moore@hp.com> 0.14-1
3a97a3
- Bumped version number.
3a97a3
- Changes related to including the version number in the path name.
3a97a3
- Changed the netlabelctl perms from 0750 to 0755.
3a97a3
- Removed the patch. (included in the base with edits)
3a97a3
- Updated the description.
3a97a3
3a97a3
* Fri Jun 23 2006 Steve Grubb <sgrubb@redhat.com> 0.13-1
3a97a3
- Initial build.
3a97a3