Stuck again… To try figure things one at a time, I made a short program called DynaLay, based on the Qt4 libraries.
# This is a test spec file for the installation of DynaLay
%define name DynaLay
%define release 1
%define version 1.00
DynaLay is nothing but a short program for testing installation
/usr/bin/qmake DynaLay.pro -o Makefile
rm -rf "$RPM_BUILD_ROOT"
And the error is apparently in the install phase:
Executing(%install): /bin/sh -e /home/windsoarer/Qt/rpmbuild/tmp/rpm-tmp.d6AYeS
+ umask 022
+ cd /home/windsoarer/Qt/rpmbuild/BUILD
+ cd DynaLay-1.00
+ make install
make: Nothing to be done for `install'.
firstname.lastname@example.org: if you find problems with this script, drop me a note
+ export RPM_BUILD_ROOT
+ test -x /usr/sbin/Check -a 1000 = 0 -o -x /usr/sbin/Check -a '!' -z /home/windsoarer/Qt/rpmbuild/BUILDROOT/DynaLay-1.00-1.x86_64
+ echo 'I call /usr/sbin/Check...'
I call /usr/sbin/Check...
Checking permissions and ownerships - using the permissions files
setting /home/windsoarer/Qt/rpmbuild/BUILDROOT/DynaLay-1.00-1.x86_64/ to root:root 0755. (wrong owner/group windsoarer:users)
Processing files: DynaLay-1.00-1.x86_64
error: File not found: /home/windsoarer/Qt/rpmbuild/BUILDROOT/DynaLay-1.00-1.x86_64/usr/local/bin/DynaLay
RPM build errors:
File not found: /home/windsoarer/Qt/rpmbuild/BUILDROOT/DynaLay-1.00-1.x86_64/usr/local/bin/DynaLay
The directory /home/windsoarer/Qt/rpmbuild/BUILDROOT/DynaLay-1.00-1.x86_64 is created, but not
make: Nothing to be done for `install’
That’s a qmake related problem. I don’t know about its syntax, but anybody that could help you will need to see the contents of “DynaLay.pro”.
Are you sure it is supposed to generate an (real) install rule?
Well, almost fine : after one install everything works OK, but afterwards “rpm -e” says the package isn’t there, and “rpm -i” says the opposite!
It is still possible to use the “rpm --force” option to install, but this isn’t satisfactory. Any ideas ?
>sudo rpm -e /home/windsoarer/Qt/rpmbuild/RPMS/x86_64/DynaLay-1.02-1.x86_64.rpm
error: package /home/windsoarer/Qt/rpmbuild/RPMS/x86_64/DynaLay-1.02-1.x86_64.rpm is not installed
>sudo rpm -i /home/windsoarer/Qt/rpmbuild/RPMS/x86_64/DynaLay-1.02-1.x86_64.rpm
package DynaLay-1.02-1.x86_64 is already installed