[Ndiswrapper-general] another patch for relocatable builds and rpm building
Status: Beta
Brought to you by:
pgiri
From: David K. <dmk...@uc...> - 2005-01-05 01:16:33
|
Hi, Giri and I have been talking a bit off list about making the build mechanism for ndiswrapper distribution neutral, while at the same time being able to build rpm's and deb packages. I think I have this worked out in a way that should be acceptable. Basically, the makefiles now contain variables that determine where things are installed - the names of these variables are distribution neutral. In the spec file, the variables are overriden so that things get installed in the correct places for generating rpm's as a non-root user. I am fairly certain that these changes won't affect non-rpm builds, but this should be checked. I am attaching to this email a patch generated using "cvs diff -u" that makes the appropriate adjustments to the makefiles. I am also attaching the new ndiswrapper.spec file - this file should be added to the repository. The file ndiswrapper.spec.in is no longer necessary. I have not removed the rpm target from the Makefile. Nonetheless, in the long run this target is not necessary. If the distribution is in a tarball named: ndiswrapper-VERSION.tar.gz that decompresses all files to the directory: ndiswrapper-VERSION then you can just do: rpmbuild -ta ndiswrapper-VERSION.tar.gz --define "ndiswrapper_version VERSION" and it should build. rpmbuild will look in the tarball for ndiswrapper.spec, transfer the tarball to the sources directory and build the rpm all by its lonesome. Cheers, David |