Skip to contentSkip to conversation

Compiling 2.1RC19 rpms for CentOS

Openvpn-devel David Sommerseth 1 participant 1 message Jul 30, 2009 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
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
index c6d19f9..5fbf7fd 100644
@@ -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
new file mode 100644
index 0000000..e69de29

-----------------------------------------------------------------
Caveats: The rpm file will add a Makefile to /usr/share/doc/openvpn-2.1_rc19/management/

** OR **

---- SUGGESTION 2: ----------------------------------------------

openvpn.spec +4 -2
index 5a52037..c15b48a 100644
@@ -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