source: projects/specs/trunk/t/tomoyo-tools/tomoyo-tools-vl.spec @ 12436

Revision 12436, 2.0 KB checked in by tomop, 4 years ago (diff)

tomoyo-tools-2.6.0.20200229-1

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