Creating rpm from svn version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I need some help regarding rpmbuild and my dosemu.spec file:

While trying to install the newly built rpm, I got the following error
message:

'error: unpacking of archive failed on file /usr/share/dosemu/freedos:
cpio: rename failed - Is a directory'

The rpm was successfully built. My system is Fedora FC5.

The relevant sections in my spec file is:

[...]
Source: %{name}-%{version}.tgz
Source1: %{name}-freedos-b9r5a-bin.tgz
...
%prep
rm -rf $RPM_BUILD_ROOT
%setup -q
%build
./configure --prefix=%{_prefix} --mandir=%{_mandir} --with-fdtarball=%{_sourcedir}/dosemu-freedos-b9r5a-bin.tgz
make
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%pre
if [ -f /etc/dosemu.users ]; then
  echo "Deprecating /etc/dosemu.users: moving to /etc/dosemu/dosemu.users"
  echo "Please use /etc/dosemu/dosemu.users instead (if necessary)."
  mv /etc/dosemu.users /etc/dosemu/dosemu.users
fi
if [ -f /etc/dosemu.conf ]; then
  echo "Deprecating /etc/dosemu.conf: moving to /etc/dosemu/dosemu.conf"
  echo "Please use /etc/dosemu/dosemu.conf instead."
  mv /etc/dosemu.conf /etc/dosemu/dosemu.conf
fi
%files
%defattr(-,root,root)
%{_bindir}/dosemu.bin
...
%dir %{_datadir}/dosemu
%{_datadir}/dosemu/commands
%{_datadir}/dosemu/freedos
%{_datadir}/dosemu/keymap
...
/etc/dosemu/drives/d
/usr/share/dosemu/drive_z/appinfo/assign.lsm
/usr/share/dosemu/drive_z/appinfo/attrib.lsm
...

What do I need to change in the spec file to be able to install the
package?

Best regards,
Lars
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux