]>
Commit | Line | Data |
---|---|---|
f647fde8 | 1 | Summary: AppArmor userlevel utilities that are useful in creating AppArmor profiles |
9c260647 | 2 | Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika przydatne do tworzenia profili AppArmor |
f647fde8 | 3 | Name: apparmor-utils |
c07e88e1 | 4 | Version: 3.1.6 |
3a6aa7bb | 5 | Release: 1 |
08a56991 | 6 | Epoch: 1 |
d7e0a3f8 | 7 | License: GPL v2 |
f647fde8 | 8 | Group: Base |
c07e88e1 AM |
9 | Source0: http://launchpad.net/apparmor/3.1/%{version}/+download/apparmor-%{version}.tar.gz |
10 | # Source0-md5: 3e23347c5562418b165fd7ec452808aa | |
9af55ceb | 11 | Patch0: %{name}-pysetup.patch |
b09707b2 | 12 | URL: http://wiki.apparmor.net/ |
a91a385f | 13 | BuildRequires: gettext-tools |
02e033b3 | 14 | BuildRequires: python3 |
d08bea42 | 15 | Requires: apparmor-binutils >= %{version} |
a479cf68 | 16 | Requires: perl-LibAppArmor |
961119bf | 17 | Requires: python3-LibAppArmor |
f647fde8 | 18 | Provides: subdomain-utils |
961119bf | 19 | Obsoletes: subdomain-utils < 2 |
f647fde8 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
f391d7c7 | 23 | %define _vimdatadir %{_datadir}/vim/vimfiles |
0800d6d8 | 24 | |
f647fde8 | 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 | ||
60482931 JR |
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. | |
54485e9f | 34 | |
9f92c7bf | 35 | %package -n vim-syntax-apparmor |
36 | Summary: AppArmor files support for Vim | |
9c260647 | 37 | Summary(pl.UTF-8): Obsługa plików AppArmor dla Vima |
9f92c7bf | 38 | Group: Applications/Editors/Vim |
c93eb1a4 ER |
39 | # for _vimdatadir existence |
40 | Requires: vim-rt >= 4:6.3.058-3 | |
9f92c7bf | 41 | |
42 | %description -n vim-syntax-apparmor | |
43 | AppArmor files support for Vim. | |
44 | ||
60482931 JR |
45 | %description -n vim-syntax-apparmor -l pl.UTF-8 |
46 | Obsługa plików AppArmor dla Vima. | |
9f92c7bf | 47 | |
f647fde8 | 48 | %prep |
03684442 | 49 | %setup -q -n apparmor-%{version} |
9af55ceb | 50 | %patch0 -p1 |
f647fde8 | 51 | |
02e033b3 | 52 | %{__sed} -i -e '1s, */usr/bin/env python,%{__python3},' utils/aa-* |
e7c16871 | 53 | |
f647fde8 | 54 | %install |
55 | rm -rf $RPM_BUILD_ROOT | |
5b769334 | 56 | |
3a214025 | 57 | %{__make} -C utils install \ |
02e033b3 | 58 | PYTHON="%{__python3}" \ |
3a214025 | 59 | PYSETUP_INSTALL_ARGS="--install-purelib=%{py3_sitescriptdir} --optimize=2" \ |
f647fde8 | 60 | DESTDIR=$RPM_BUILD_ROOT \ |
61 | BINDIR=$RPM_BUILD_ROOT%{_sbindir} \ | |
e7c16871 | 62 | VIM_INSTALL_PATH=$RPM_BUILD_ROOT%{_vimdatadir}/syntax |
f647fde8 | 63 | |
e7c16871 | 64 | install -d $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect |
9f92c7bf | 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 | ||
5b769334 AM |
69 | %find_lang %{name} |
70 | ||
f647fde8 | 71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files -f %{name}.lang | |
75 | %defattr(644,root,root,755) | |
76 | %dir %{_sysconfdir}/apparmor | |
e7c16871 JB |
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 | |
46679d87 | 80 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor/severity.db |
e7c16871 | 81 | %attr(755,root,root) %{_bindir}/aa-easyprof |
3a214025 JB |
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 | |
3a214025 | 94 | %attr(755,root,root) %{_sbindir}/aa-unconfined |
7c6f5cbc | 95 | %dir %{_datadir}/apparmor |
e7c16871 | 96 | %{_datadir}/apparmor/easyprof |
9af55ceb JB |
97 | %{py3_sitescriptdir}/apparmor |
98 | %{py3_sitescriptdir}/apparmor-%{version}-py*.egg-info | |
46679d87 | 99 | %{_mandir}/man5/logprof.conf.5* |
3a214025 JB |
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* | |
3a214025 | 113 | %{_mandir}/man8/aa-unconfined.8* |
9f92c7bf | 114 | |
115 | %files -n vim-syntax-apparmor | |
116 | %defattr(644,root,root,755) | |
46679d87 JB |
117 | %{_vimdatadir}/ftdetect/apparmor.vim |
118 | %{_vimdatadir}/syntax/apparmor.vim | |
f391d7c7 | 119 | %{_mandir}/man5/apparmor.vim.5* |