[stunnel-users] rpmbuild errors using stunnel.spec

Wiest, Damian damian.wiest at apervita.com
Mon Nov 7 17:48:15 CET 2016


I noticed a few issues with the stunnel.spec file included with the
distribution that I wanted to report.
I'm building on an Amazon Linux host.

There appears to be a bad date entry in the changelog section,
warning: bogus date in %changelog: Sun Jun 24 2000 Brian Hatch <bri at stunnel.org>

Sunday is the 25th?

The stunnel.init and stunnel.logrotate files are being installed from
the rpmbuild/SOURCES/ directory and not
rpmbuild/BUILD/stunnel-5.37/tools/.  Copying the files from the build
area and retrying resolves this.

stunnel.spec:Source1:        %{name}.init
stunnel.spec:Source2:        %{name}.logrotate
...
stunnel.spec:%{__install} -p -m0755 %{SOURCE1}
$RPM_BUILD_ROOT%{_initrddir}/%{name}
stunnel.spec:%{__install} -p -m0644 %{SOURCE2}
$RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name}

+ /usr/bin/install -p -m0755
/home/ec2-user/rpmbuild/SOURCES/stunnel.init
/home/ec2-user/rpmbuild/BUILDROOT/stunnel-5.37-1.amzn1.x86_64/etc/rc.d/init.d/stunnel
/usr/bin/install: cannot stat
'/home/ec2-user/rpmbuild/SOURCES/stunnel.init': No such file or
directory

+ /usr/bin/install -p -m0644
/home/ec2-user/rpmbuild/SOURCES/stunnel.logrotate
/home/ec2-user/rpmbuild/BUILDROOT/stunnel-5.37-1.amzn1.x86_64/etc/logrotate.d/stunnel
/usr/bin/install: cannot stat
'/home/ec2-user/rpmbuild/SOURCES/stunnel.logrotate': No such file or
directory

rpmbuild also complains that the files under /usr/share/doc/stunnel/
are unpackaged.
I added %{_docdir}/* at the end of the files section to correct this.

-Damian

-- 


Confidentiality Notice: This e-mail transmission may contain confidential 
or legally privileged information that is intended only for the individual 
or entity named in the e-mail address. If you have received this 
communication in error, please notify me by return e-mail, and destroy this 
communication and all copies thereof, including any attachments. 

Apervita ® is a registered trademark of Apervita Inc.

 



More information about the stunnel-users mailing list