]>
Commit | Line | Data |
---|---|---|
1 | Summary: AppArmor userlevel utilities that are useful in creating AppArmor profiles | |
2 | Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika przydatne do tworzenia profili AppArmor | |
3 | Name: apparmor-utils | |
4 | Version: 3.1.7 | |
5 | Release: 1 | |
6 | Epoch: 1 | |
7 | License: GPL v2 | |
8 | Group: Base | |
9 | Source0: https://launchpad.net/apparmor/3.1/%{version}/+download/apparmor-%{version}.tar.gz | |
10 | # Source0-md5: eee581ab969f708f1e4c6f2847c0c7a6 | |
11 | Patch0: %{name}-pysetup.patch | |
12 | URL: https://wiki.apparmor.net/ | |
13 | BuildRequires: gettext-tools | |
14 | BuildRequires: python3 >= 1:3 | |
15 | Requires: apparmor-binutils >= %{version} | |
16 | Requires: perl-LibAppArmor | |
17 | Requires: python3-LibAppArmor | |
18 | Provides: subdomain-utils | |
19 | Obsoletes: subdomain-utils < 2 | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _vimdatadir %{_datadir}/vim/vimfiles | |
24 | ||
25 | %description | |
26 | This provides some useful programs to help create and manage AppArmor | |
27 | profiles. This package is part of a suite of tools that used to be | |
28 | named SubDomain. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Ten pakiet dostarcza kilka przydatnych programów pomocnych przy | |
32 | tworzeniu i zarządzaniu profilami AppArmor. Ten pakiet jest częścią | |
33 | zestawu narzędzi zwanych SubDomain. | |
34 | ||
35 | %package -n vim-syntax-apparmor | |
36 | Summary: AppArmor files support for Vim | |
37 | Summary(pl.UTF-8): Obsługa plików AppArmor dla Vima | |
38 | Group: Applications/Editors/Vim | |
39 | # for _vimdatadir existence | |
40 | Requires: vim-rt >= 4:6.3.058-3 | |
41 | ||
42 | %description -n vim-syntax-apparmor | |
43 | AppArmor files support for Vim. | |
44 | ||
45 | %description -n vim-syntax-apparmor -l pl.UTF-8 | |
46 | Obsługa plików AppArmor dla Vima. | |
47 | ||
48 | %prep | |
49 | %setup -q -n apparmor-%{version} | |
50 | %patch0 -p1 | |
51 | ||
52 | %{__sed} -i -e '1s, */usr/bin/env python,%{__python3},' utils/aa-* | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} -C utils install \ | |
58 | PYTHON="%{__python3}" \ | |
59 | PYSETUP_INSTALL_ARGS="--install-purelib=%{py3_sitescriptdir} --optimize=2" \ | |
60 | DESTDIR=$RPM_BUILD_ROOT \ | |
61 | BINDIR=$RPM_BUILD_ROOT%{_sbindir} \ | |
62 | VIM_INSTALL_PATH=$RPM_BUILD_ROOT%{_vimdatadir}/syntax | |
63 | ||
64 | install -d $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect | |
65 | cat > $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect/apparmor.vim <<-EOF | |
66 | au BufNewFile,BufRead /etc/apparmor.d/*,/etc/apparmor/profiles/* set filetype=apparmor | |
67 | EOF | |
68 | ||
69 | %find_lang %{name} | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files -f %{name}.lang | |
75 | %defattr(644,root,root,755) | |
76 | %dir %{_sysconfdir}/apparmor | |
77 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor/easyprof.conf | |
78 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor/logprof.conf | |
79 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor/notify.conf | |
80 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor/severity.db | |
81 | %attr(755,root,root) %{_bindir}/aa-easyprof | |
82 | %attr(755,root,root) %{_sbindir}/aa-audit | |
83 | %attr(755,root,root) %{_sbindir}/aa-autodep | |
84 | %attr(755,root,root) %{_sbindir}/aa-cleanprof | |
85 | %attr(755,root,root) %{_sbindir}/aa-complain | |
86 | %attr(755,root,root) %{_sbindir}/aa-decode | |
87 | %attr(755,root,root) %{_sbindir}/aa-disable | |
88 | %attr(755,root,root) %{_sbindir}/aa-enforce | |
89 | %attr(755,root,root) %{_sbindir}/aa-genprof | |
90 | %attr(755,root,root) %{_sbindir}/aa-logprof | |
91 | %attr(755,root,root) %{_sbindir}/aa-mergeprof | |
92 | %attr(755,root,root) %{_sbindir}/aa-notify | |
93 | %attr(755,root,root) %{_sbindir}/aa-remove-unknown | |
94 | %attr(755,root,root) %{_sbindir}/aa-unconfined | |
95 | %dir %{_datadir}/apparmor | |
96 | %{_datadir}/apparmor/easyprof | |
97 | %{py3_sitescriptdir}/apparmor | |
98 | %{py3_sitescriptdir}/apparmor-%{version}-py*.egg-info | |
99 | %{_mandir}/man5/logprof.conf.5* | |
100 | %{_mandir}/man8/aa-audit.8* | |
101 | %{_mandir}/man8/aa-autodep.8* | |
102 | %{_mandir}/man8/aa-cleanprof.8* | |
103 | %{_mandir}/man8/aa-complain.8* | |
104 | %{_mandir}/man8/aa-decode.8* | |
105 | %{_mandir}/man8/aa-disable.8* | |
106 | %{_mandir}/man8/aa-easyprof.8* | |
107 | %{_mandir}/man8/aa-enforce.8* | |
108 | %{_mandir}/man8/aa-genprof.8* | |
109 | %{_mandir}/man8/aa-logprof.8* | |
110 | %{_mandir}/man8/aa-mergeprof.8* | |
111 | %{_mandir}/man8/aa-notify.8* | |
112 | %{_mandir}/man8/aa-remove-unknown.8* | |
113 | %{_mandir}/man8/aa-unconfined.8* | |
114 | ||
115 | %files -n vim-syntax-apparmor | |
116 | %defattr(644,root,root,755) | |
117 | %{_vimdatadir}/ftdetect/apparmor.vim | |
118 | %{_vimdatadir}/syntax/apparmor.vim | |
119 | %{_mandir}/man5/apparmor.vim.5* |