tomoyo-tools-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %bcond_with systemd
  2. %global ver 2.6.0-20201111
  3. Summary: utilities for TOMOYO Linux
  4. Summary(ja): TOMOYO Linux用のユーティリティ
  5. Name: tomoyo-tools
  6. Version: %(echo %{ver} | tr "-" ".")
  7. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  8. Group: admin-tools,security
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. License: GPL
  12. URL: https://tomoyo.osdn.jp/
  13. Source0: https://jaist.dl.osdn.jp/tomoyo/70710/tomoyo-tools-%{ver}.tar.gz
  14. Source1: tomoyo-auditd.service
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: ncurses-devel
  17. %if %{with systemd}
  18. %{?systemd_requires}
  19. %endif
  20. %description
  21. TOMOYO Linux is a lightweight and easy-to-use path-based Mandatory Access
  22. Control (MAC) implementation.
  23. This package provides the audit daemon and administrative utilities for use
  24. on a Linux kernel with TOMOYO support.
  25. %description -l ja
  26.  TOMOYO Linuxは、軽量で簡単に利用できるパスベースの強制アクセス制御(MAC)
  27. 実装です。
  28.  このパッケージは、TOMOYOサポートを有効にしたカーネル上で利用される監査
  29. デーモンと管理ユーティリティを提供します。
  30. %debug_package
  31. %prep
  32. %setup -q -n tomoyo-tools
  33. %build
  34. %{__make} %{?_smp_mflags} USRLIBDIR=%{_libdir} CFLAGS="%{optflags}"
  35. %install
  36. %{__rm} -rf %{buildroot}
  37. %{__make} INSTALLDIR=%{buildroot} USRLIBDIR=%{_libdir} install
  38. install -d -p -m700 %{buildroot}%{_sysconfdir}/tomoyo
  39. %if %{with systemd}
  40. install -Dpm644 %{SOURCE1} %{buildroot}%{_unitdir}/tomoyo-auditd.service
  41. %endif
  42. rm -f %{buildroot}%{_libdir}/tomoyo/{README.tomoyo,COPYING.tomoyo}
  43. %clean
  44. %{__rm} -rf %{buildroot}
  45. %files
  46. %defattr(-,root,root)
  47. %license COPYING*
  48. %doc README*
  49. /sbin/*
  50. %{_sbindir}/*
  51. %{_libdir}/tomoyo/*
  52. %{_libdir}/libtomoyo*
  53. %{_mandir}/man?/*
  54. %{_sysconfdir}/tomoyo
  55. %if %{with systemd}
  56. %{_unitdir}/tomoyo-auditd.service
  57. %endif
  58. %changelog
  59. * Wed Mar 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0.20201111-1
  60. - new upstream release.
  61. - dropped acriptlets.
  62. * Wed Jul 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0.20200229-1
  63. - initial build for Vine Linux.