Using MOCK
rpmlint: Checking for a clean spec file,SRPM and RPM
Command rpmlint is a sepc file,SRPM (.src.rpm), and RPM (.rpm) checker. To do the names of the file and argument.
user#rpmlint phpMyAdmin.spec PhpMyAdmin*rpm
only 1 warings. So,I ignored it.
MOCK
TO do create mock to user. Someone can not access file to user
The best thing to do is create a user to do the mock builds because you don't want people to have access to your files while they test with mock. Add this also gives the user permissions to use mock using group permissions
root# adduser -m -G mock build
Just add username to the mock group
root#usermod -a -G mock ycshon
To build with mock
user#mock -r fedora-13-x86_64 --rebuild phpMyAdmin*.src.rpm
The value fedora-13-x86_64 can be changed to the config files in /etc/mock in order to test building based on the
libraaries and avalibale pakckges for the specific architecture and fedora release.
The error report views the log files.
user#cat /var/lib/mock/fedora-13-x86_64/result/build.log
Ween we find the required libraries, we can find out the names to install with "yum" spec fil that say "BuildRequires" and add the library package name there.
No comments:
Post a Comment