debugsourcefiles

This commit is contained in:
Jean-Philippe Pialasse 2024-03-12 22:51:54 -04:00
parent 88dc5ac862
commit 88c2c73ee7

View File

@ -4,7 +4,7 @@ Summary: e-smith manager navigation module
%define name e-smith-manager %define name e-smith-manager
Name: %{name} Name: %{name}
%define version 2.8.0 %define version 2.8.0
%define release 39 %define release 40
Version: %{version} Version: %{version}
Release: %{release}%{?dist} Release: %{release}%{?dist}
License: GPL License: GPL
@ -24,6 +24,10 @@ Provides: server-manager
AutoReqProv: no AutoReqProv: no
%changelog %changelog
* Tue Mar 12 2024 Jean-Philippe Pialasse <tests@pialasse.com> 2.8.0-40.sme
- tidy rpm
- add -g flag to gcc in order to get debugsourcefiles.list
* Mon Aug 07 2023 cvs2git.sh aka Brian Read <brianr@koozali.org> 2.8.0-39.sme * Mon Aug 07 2023 cvs2git.sh aka Brian Read <brianr@koozali.org> 2.8.0-39.sme
- Roll up patches and move to git repo [SME: 12338] - Roll up patches and move to git repo [SME: 12338]
@ -786,7 +790,7 @@ rm -rf root/var/service
%build %build
perl createlinks perl createlinks
gcc -o root/etc/e-smith/web/functions/wrapper manager.c gcc -g -o root/etc/e-smith/web/functions/wrapper manager.c
mkdir -p root/home/e-smith/db/navigation mkdir -p root/home/e-smith/db/navigation
mkdir -p root/etc/e-smith/web/common/css mkdir -p root/etc/e-smith/web/common/css
@ -809,21 +813,6 @@ mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,html}
mkdir -p root/etc/e-smith/web/panels/password/{cgi-bin,html} mkdir -p root/etc/e-smith/web/panels/password/{cgi-bin,html}
mkdir -p root/etc/httpd/admin-conf mkdir -p root/etc/httpd/admin-conf
mkdir -p root/service
#mkdir -p root/etc/rc.d/init.d/supervise
#for service in httpd-admin
#do
# ln -s /var/service/$service root/service/$service
# mkdir -p root/var/service/$service/supervise
# touch root/var/service/$service/down
# if [ -d root/var/service/$service/log ]
# then
# mkdir -p root/var/service/$service/log/supervise
# mkdir -p root/var/log/$service
# fi
# ln -s ../daemontools root/etc/rc.d/init.d/supervise/$service
#done
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
@ -840,12 +829,6 @@ echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%pre %pre
if [ $1 -gt 1 ] ; then
if [ -e /var/service/httpd-admin/run ] ; then
/usr/bin/sv d httpd-admin
/usr/bin/sv d httpd-admin/log
fi
fi
%preun %preun
%post %post
find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \ find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \
@ -853,10 +836,6 @@ find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \
xargs grep -l Persisten | \ xargs grep -l Persisten | \
xargs rm -f xargs rm -f
if [ -d /var/service/httpd-admin ] ; then
rm -rf /var/service/httpd-admin
fi
%postun %postun
%files -f %{name}-%{version}-%{release}-filelist %files -f %{name}-%{version}-%{release}-filelist