Never saw such an error. But it seems you wrote the spec file from a Windows machine and rpmbuild complains about the extra carriage return character in new lines.
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: DynaLay
License: GPL
Name: %{name}
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.gz
Prefix: /usr
Group: Applications/Engineering
%description
DynaLay is nothing but a short program for testing installation
%prep
%setup -q
/usr/bin/qmake DynaLay.pro -o Makefile
%build
make
%install
make install
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
/usr/local/bin/DynaLay
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'.
+ /usr/lib/rpm/brp-lib64-linux
sf@suse.de: if you find problems with this script, drop me a note
+ RPM_BUILD_ROOT=/home/windsoarer/Qt/rpmbuild/BUILDROOT/DynaLay-1.00-1.x86_64
+ 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...
+ /usr/sbin/Check
Checking permissions and ownerships - using the permissions files
/tmp/Check.perms.F7663b
setting /home/windsoarer/Qt/rpmbuild/BUILDROOT/DynaLay-1.00-1.x86_64/ to root:root 0755. (wrong owner/group windsoarer:users)
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-symlink
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 install
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 ?
Thanks,
Andre
>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