Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b33aa370bf | ||
|
|
866bf44a65 | ||
|
|
4bd7c5166c | ||
|
|
447cb8977f | ||
|
|
a77f5a1380 | ||
|
|
1daa2b5778 | ||
|
|
680eb2a598 | ||
|
|
55c9310e48 | ||
|
|
c666d6dc7d |
1 changed files with 10 additions and 9 deletions
|
|
@ -7,7 +7,8 @@ Name: icecream
|
|||
Version: 1.4
|
||||
Release: %autorelease -p -e %{preversion}
|
||||
Summary: Distributed compiler
|
||||
License: GPLv2+
|
||||
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/icecc/icecream
|
||||
Source0: https://github.com/icecc/%{name}/archive/%{version}%{preversion}.tar.gz#/%{name}-%{version}%{preversion}.tar.gz
|
||||
Source1: fedora-sysconfig.icecream
|
||||
|
|
@ -38,7 +39,6 @@ BuildRequires: autoconf automake libtool
|
|||
|
||||
Requires: firewalld-filesystem
|
||||
Requires: environment(modules)
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
|
@ -89,6 +89,11 @@ cp -p %{SOURCE3} %{SOURCE4} %{SOURCE5} SELinux
|
|||
mkdir fedora
|
||||
cp -p %{SOURCE6} %{SOURCE7} %{SOURCE9} %{SOURCE10} %{SOURCE11} fedora
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >icecream.sysusers.conf <<EOF
|
||||
u icecc - 'Icecream distributed compiler' %{_localstatedir}/cache/icecream -
|
||||
EOF
|
||||
|
||||
%build
|
||||
./autogen.sh
|
||||
|
||||
|
|
@ -171,19 +176,14 @@ if [ $? == 0 -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.%{name} ]; then \
|
|||
rm -f ${FILE_CONTEXT}.%name; \
|
||||
fi;
|
||||
|
||||
install -m0644 -D icecream.sysusers.conf %{buildroot}%{_sysusersdir}/icecream.conf
|
||||
|
||||
%pre
|
||||
%if %{with selinux}
|
||||
for selinuxvariant in %{selinux_variants}; do
|
||||
%saveFileContext ${selinuxvariant}
|
||||
done
|
||||
%endif
|
||||
|
||||
getent group icecc >/dev/null || groupadd -r icecc
|
||||
getent passwd icecc >/dev/null || \
|
||||
useradd -r -g icecc -d %{_localstatedir}/cache/icecream \
|
||||
-s /sbin/nologin -c "Icecream distributed compiler" icecc
|
||||
exit 0
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%if %{with selinux}
|
||||
|
|
@ -264,6 +264,7 @@ exit 0
|
|||
%{?with_selinux:%{_datadir}/selinux/*/icecream.pp}
|
||||
%{_prefix}/lib/firewalld/services/icecream.xml
|
||||
%{_prefix}/lib/firewalld/services/icecream-scheduler.xml
|
||||
%{_sysusersdir}/icecream.conf
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/icecc/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue