Compiling 2.1RC19 rpms for CentOS
A message that is not in the archive (sent off-list or not yet received): [email protected]...
Quoted 11 lines · Nico De Ranter
Hi,
I'm trying to create rpms of 2.1RC19 for CentOS 5.3. When I run 'rpmbuild -tb openvpn-2.1_rc19.tar.gz' I get an error in the end saying
...
cp: cannot stat `management/': No such file or directory
...There is indeed no management/ directory in the tar file. Am I missing some files or is this an error in the rpm spec file?
That seems to be either a .spec file error, or a missing directory in the source tree. There are 2 solutions ... Both builds on Fedora.
---- SUGGESTION 1: ----------------------------------------------
configure.ac +1 -0
@@ -871,6 +871,7 @@ AC_OUTPUT([ openvpn.spec config-win32.h images/Makefile + management/Makefile service-win32/Makefile install-win32/Makefile install-win32/settings
management/Makefile.in new file +0 -0
-----------------------------------------------------------------
Caveats: The rpm file will add a Makefile to /usr/share/doc/openvpn-2.1_rc19/management/
** OR **
---- SUGGESTION 2: ----------------------------------------------
openvpn.spec +4 -2
@@ -223,9 +223,12 @@ fi %endif # Install extra %doc stuff -%doc contrib/ easy-rsa/ management/ sample-*/ plugin/README.* +%doc contrib/ easy-rsa/ sample-*/ plugin/README.* %changelog +* Thu Jul 30 2009 David Sommerseth <[email protected]...> +- Removed management/ directory from %doc + * Thu Dec 14 2006 Alon Bar-Lev - Added with_pkcs11 -----------------------------------------------------------------
Not sure which patch the upstream developers prefer most. But as long as the management/ directory is not present in the source tree, I believe SUGGESTION 2 is more the way to go.
kind regards,
David Sommerseth