automatic version update by autodist [release 3.3.5-1mamba;Fri Jan 15 2021]

This commit is contained in:
Automatic Build System 2024-01-05 21:49:14 +01:00
parent a16e46e3d3
commit 9cad2c2548
3 changed files with 45 additions and 26 deletions

2
distcc-sysusers.conf Normal file
View File

@ -0,0 +1,2 @@
g distcc - -
u distcc - "distcc user" /usr/bin/nologin

View File

@ -1,7 +1,7 @@
%define distcc_uid 28 %define distcc_uid 28
%define distcc_gid 28 %define distcc_gid 28
Name: distcc Name: distcc
Version: 3.3.3 Version: 3.3.5
Release: 1mamba Release: 1mamba
Summary: A program to distribute builds of C, C++, Objective C or Objective C++ code across several machines on a network Summary: A program to distribute builds of C, C++, Objective C or Objective C++ code across several machines on a network
Group: Development/Tools Group: Development/Tools
@ -14,6 +14,8 @@ Source1: distcc-initscript
Source2: distcc-logrotate Source2: distcc-logrotate
Source3: distcc-sysconfig Source3: distcc-sysconfig
Source4: distcc-profile Source4: distcc-profile
Source5: distccd.service
Source6: distcc-sysusers.conf
Patch0: distcc-3.1-gcc-4.8.patch Patch0: distcc-3.1-gcc-4.8.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
@ -56,26 +58,30 @@ Summary: Monitoring interface for distcc
%description monitor %description monitor
A gnome base monitoring interface for distcc, a program to distribute builds of C, C++, Objective C or Objective. A gnome base monitoring interface for distcc, a program to distribute builds of C, C++, Objective C or Objective.
%debug_package
%prep %prep
%setup -q %setup -q
#%patch0 -p0 #%patch0 -p0
./autogen.sh
%build %build
./autogen.sh
%configure \ %configure \
--with-gnome \ --with-gnome \
--disable-Werror \ --disable-Werror \
PYTHON=%{__python36} PYTHON=%{__python3}
%make %make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
install -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/distccd install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/distccd
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/distccd install -D -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/distccd
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/distccd install -D -m0755 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/distcc.sh
install -D -m 0755 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/distcc.sh install -D -m0644 %{SOURCE5} %{buildroot}%{_unitdir}/distccd
install -d %{buildroot}/var/log/distccd install -d %{buildroot}/var/log/distccd
%clean %clean
@ -88,23 +94,19 @@ if [ $1 -ge 1 ]; then
useradd distcc -c "Distcc user" -d /dev/null \ useradd distcc -c "Distcc user" -d /dev/null \
-s /bin/false -u %{distcc_uid} -g %{distcc_gid} 2>/dev/null || true -s /bin/false -u %{distcc_uid} -g %{distcc_gid} 2>/dev/null || true
fi fi
exit 0 :
%preun
%systemd_preun distccd
:
%post %post
# upgrade %systemd_post distccd
if [ $1 -eq 1 ]; then :
service distccd condrestart
fi
exit 0
%postun %postun
if [ $1 -eq 0 ]; then %systemd_postun distccd
# erase :
chkconfig --del distccd
service distccd stop
userdel distcc || true
fi
exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -115,15 +117,15 @@ exit 0
%{_sysconfdir}/distcc/commands.allow.sh %{_sysconfdir}/distcc/commands.allow.sh
%{_sysconfdir}/distcc/hosts %{_sysconfdir}/distcc/hosts
%{_sysconfdir}/profile.d/distcc.sh %{_sysconfdir}/profile.d/distcc.sh
%{_initrddir}/distccd
%{_bindir}/distcc %{_bindir}/distcc
%{_bindir}/distccd %{_bindir}/distccd
%{_bindir}/distccmon-text %{_bindir}/distccmon-text
%{_bindir}/lsdistcc %{_bindir}/lsdistcc
%{_bindir}/pump %{_bindir}/pump
%{_sbindir}/update-distcc-symlinks %{_sbindir}/update-distcc-symlinks
%{python36_sitearch}/include_server/* %{_unitdir}/distccd
%{python36_sitearch}/include_server-%{version}-py%{python36_version}.egg-info %{python3_sitearch}/include_server/*
%{python3_sitearch}/include_server-%{version}-py*.egg-info
%dir %{_datadir}/doc/distcc %dir %{_datadir}/doc/distcc
%{_datadir}/doc/distcc/* %{_datadir}/doc/distcc/*
%{_mandir}/man1/* %{_mandir}/man1/*
@ -132,10 +134,13 @@ exit 0
%files monitor %files monitor
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/distccmon-gnome %{_bindir}/distccmon-gnome
%{_datadir}/distcc/distccmon-gnome-icon.png %{_datadir}/applications/distccmon-gnome.desktop
%{_datadir}/distcc/distccmon-gnome.desktop %{_datadir}/pixmaps/distccmon-gnome.png
%changelog %changelog
* Fri Jan 15 2021 Automatic Build System <autodist@mambasoft.it> 3.3.5-1mamba
- automatic version update by autodist
* Thu Aug 22 2019 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba * Thu Aug 22 2019 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba
- automatic version update by autodist - automatic version update by autodist
@ -164,5 +169,5 @@ exit 0
- update to version 2.18.3 by autospec - update to version 2.18.3 by autospec
- added distcc user creation - added distcc user creation
* Mon Oct 22 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11.1-1qilnx * Wed Oct 22 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11.1-1qilnx
- first build - first build

12
distccd.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Distributed C, C++ and Objective-C compiler
Documentation=man:distccd(1)
After=network.target
[Service]
User=distcc
EnvironmentFile=/etc/sysconfig/distccd
ExecStart=/usr/bin/distccd --no-detach --daemon $DISTCC_ARGS
[Install]
WantedBy=multi-user.target