Fix most of rpmlint warnings
Known issues: policycoreutils.spec: W: invalid-url Source14: sepolicy-icons.tgz The value should be a valid, public HTTP, HTTPS, or FTP URL. policycoreutils.spec: W: invalid-url Source12: policycoreutils_man_ru2.tar.bz2 The value should be a valid, public HTTP, HTTPS, or FTP URL.
This commit is contained in:
parent
24037d1412
commit
c33737fa2a
@ -20,7 +20,7 @@ Source3: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/rel
|
||||
Source4: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/selinux-dbus-2.7.tar.gz
|
||||
Source5: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/semodule-utils-2.7.tar.gz
|
||||
Source6: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/restorecond-2.7.tar.gz
|
||||
URL: http://www.selinuxproject.org
|
||||
URL: https://github.com/SELinuxProject
|
||||
Source12: policycoreutils_man_ru2.tar.bz2
|
||||
Source13: system-config-selinux.png
|
||||
Source14: sepolicy-icons.tgz
|
||||
@ -73,20 +73,18 @@ load_policy to load policies, setfiles to label filesystems, newrole
|
||||
to switch roles.
|
||||
|
||||
%prep
|
||||
# create selinux/ directory and extract %{SOURCE0} there
|
||||
# create selinux/ directory and extract sources
|
||||
%setup -q -c -n selinux
|
||||
%setup -T -D -a 1 -n selinux
|
||||
%setup -T -D -a 2 -n selinux
|
||||
%setup -T -D -a 3 -n selinux
|
||||
%setup -T -D -a 4 -n selinux
|
||||
%setup -T -D -a 5 -n selinux
|
||||
%setup -T -D -a 6 -n selinux
|
||||
%setup -q -T -D -a 1 -n selinux
|
||||
%setup -q -T -D -a 2 -n selinux
|
||||
%setup -q -T -D -a 3 -n selinux
|
||||
%setup -q -T -D -a 4 -n selinux
|
||||
%setup -q -T -D -a 5 -n selinux
|
||||
%setup -q -T -D -a 6 -n selinux
|
||||
%patch -p0 -b .policycoreutils-fedora
|
||||
|
||||
cp %{SOURCE13} selinux-gui-%{version}/
|
||||
tar -xvf %{SOURCE14} -C selinux-python-%{version}/sepolicy/
|
||||
# extract {%SOURCE1} in selinux/ directory
|
||||
# %setup -T -D -a 1 -n selinux
|
||||
%patch1 -p0 -b .selinux-python
|
||||
%patch2 -p0 -b .selinux-gui
|
||||
%patch3 -p0 -b .selinux-sandbox
|
||||
@ -144,12 +142,10 @@ rm -f %{buildroot}/etc/pam.d/run_init*
|
||||
|
||||
ln -sf /usr/share/system-config-selinux/polgengui.py %{buildroot}%{_bindir}/selinux-polgengui
|
||||
|
||||
desktop-file-install --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
|
||||
--add-category Settings \
|
||||
desktop-file-install --dir ${RPM_BUILD_ROOT}%{_datadir}/applications --add-category Settings \
|
||||
%{buildroot}%{_datadir}/system-config-selinux/system-config-selinux.desktop
|
||||
|
||||
desktop-file-install --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
|
||||
--add-category Settings \
|
||||
desktop-file-install --dir ${RPM_BUILD_ROOT}%{_datadir}/applications --add-category Settings \
|
||||
%{buildroot}%{_datadir}/system-config-selinux/sepolicy.desktop
|
||||
|
||||
desktop-file-install --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
|
||||
@ -173,11 +169,11 @@ ln -s ../selinux-autorelabel-mark.service %{buildroot}/%{_unitdir}/basic.target.
|
||||
find %{buildroot}%{python_sitelib} %{buildroot}%{python_sitearch} -type f | xargs \
|
||||
sed -i '1s%\(#! */usr/bin/python\)3%\1%'
|
||||
|
||||
# change /usr/bin/python to %{__python3} in policycoreutils-python3
|
||||
# change /usr/bin/python to %%{__python3} in policycoreutils-python3
|
||||
find %{buildroot}%{python3_sitelib} %{buildroot}%{python3_sitearch} -type f | xargs \
|
||||
sed -i '1s%\(#! *\)/usr/bin/python\([^3].*\|\)$%\1%{__python3}\2%'
|
||||
|
||||
# change /usr/bin/python to /usr/bin/python3 in python-utils
|
||||
# change /usr/bin/python to %%{__python3} in python-utils
|
||||
sed -i '1s%\(#! *\)/usr/bin/python\([^3].*\|\)$%\1%{__python3}\2%' \
|
||||
%{buildroot}%{_sbindir}/semanage \
|
||||
%{buildroot}%{_bindir}/chcat \
|
||||
@ -507,7 +503,7 @@ The policycoreutils-restorecond package contains the restorecond service.
|
||||
%changelog
|
||||
* Wed Dec 13 2017 Petr Lautrbach <plautrba@redhat.com> - 2.7-6
|
||||
- semanage: make seobject.py backward compatible
|
||||
- Own %{pythonX_sitelib}/site-packages/sepolicy directories (#1522942)
|
||||
- Own %%{pythonX_sitelib}/site-packages/sepolicy directories (#1522942)
|
||||
|
||||
* Wed Nov 22 2017 Petr Lautrbach <plautrba@redhat.com> - 2.7-5
|
||||
- sepolicy: Fix sepolicy manpage
|
||||
@ -589,7 +585,7 @@ The policycoreutils-restorecond package contains the restorecond service.
|
||||
- Fix several issues in gui and 'sepolicy manpage' (#1416372)
|
||||
|
||||
* Thu Feb 23 2017 Petr Lautrbach <plautrba@redhat.com> - 2.6-2
|
||||
- Use %{__python3} instead of python3
|
||||
- Use %%{__python3} instead of python3
|
||||
|
||||
* Mon Feb 20 2017 Petr Lautrbach <plautrba@redhat.com> - 2.6-1.1
|
||||
- Fix pp crash when processing base module (#1417200)
|
||||
|
Loading…
Reference in New Issue
Block a user