When you built the RPM with that unpackaged_files* flag do the files listed actually get included in the RPM? I would think they wouldn't. If you want them included add them to the files section. They look like files that should be included to me, but I'm not sure about that. Personally, I would not add that flag to my macros system wide macros file. In fact I wouldn't add it at all if it will cause important files to not get included in the RPM.
Ok, I managed to create a krusader package with the files included and it didn't give me the unpackaged files error anymore.
So I went on to my second attempt which is to create an rpm for basket.
Now, included in the krusader tarball was a krusader.spec file which I based myself upon to create the spec file for my rpm package.
In the basket tarball there is no spec file at all and I haven't been able to find any rpm's even for other distro's to extract a spec file from (only one rpm for SuSE and it was created by checkinstall and didn't seem to include a spec file either).
./configure make make install are all fine but when I execute
rpmbuild -ba yc_basket.spec
I get this
- Code: Select all
make[2]: Leaving directory `/home/ycluckers/redhat/BUILD/basket-0.4/src'
make[1]: Leaving directory `/home/ycluckers/redhat/BUILD/basket-0.4/src'
make[1]: Entering directory `/home/ycluckers/redhat/BUILD/basket-0.4'
make[2]: Entering directory `/home/ycluckers/redhat/BUILD/basket-0.4'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ycluckers/redhat/BUILD/basket-0.4'
make[1]: Leaving directory `/home/ycluckers/redhat/BUILD/basket-0.4'
+ KDEDIR=/var/tmp/basket-buildroot/usr
+ kde_minidir=/var/tmp/basket-buildroot/usr/share/icons/mini
+ /usr/lib/rpm/redhat/find-lang.sh /var/tmp/basket-buildroot basket
No translations found for basket in /var/tmp/basket-buildroot
error: Bad exit status from /var/tmp/rpm-tmp.26352 (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.26352 (%install)
Here's the spec file if it's of any use
- Code: Select all
%define name basket
%define version 0.4
%define release RH9_KDE_3.2.1
Name: %{name}
Summary: Convenient desktop storing device.
Version: %{version}
Release: RH9_KDE_3.2.1
Source: basket-0.4.0.tar.gz
Group: Utilities/System
BuildRoot: %{_tmppath}/%{name}-buildroot
URL: http://les83plus.fr.st/sebastien.laout/basket
Copyright: GPL
Prefix: /usr
Requires: kdelibs
%description
BasKet is a desktop organization tool inspired by DropDrawers (from www.sigsoftware.com). It uses baskets and drawers for organizing various objects, such as text, URLs, images, sounds, or other documents. Objects in a basket can be edited, copied, moved, dragged, and so on. This allows you to stay organized and free your desktop, or to take notes with various types of content (not only text) in an easy way.
%prep
rm -rf $RPM_BUILD_ROOT
%setup -q -n %name-%version
%build
export CFLAGS=$RPM_OPT_FLAGS
export CXXFLAGS=$RPM_OPT_FLAGS
%configure
make %{_smp_mflags}
%install
rm -rf %{buildroot}
%makeinstall
KDEDIR=$RPM_BUILD_ROOT%{_prefix} kde_minidir=$RPM_BUILD_ROOT%{_miconsdir}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%defattr(-,root,root)
%doc README AUTHORS ChangeLog TODO COPYING basket.lsm
%doc %{_datadir}/doc/HTML/en/*
%_bindir/*
%_datadir/applnk/Applications/Utilities/basket.desktop
%dir %_datadir/apps/basket/
%_datadir/apps/basket/*.rc
%dir %_datadir/apps/basket/icons/
%dir %_datadir/apps/basket/icons/hicolor/
%dir %_datadir/apps/basket/icons/hicolor/16x16/
%dir %_datadir/apps/basket/icons/hicolor/16x16/apps/
%_datadir/apps/basket/icons/hicolor/16x16/apps/*.png
%dir %_datadir/apps/basket/icons/hicolor/32x32/
%dir %_datadir/apps/basket/icons/hicolor/32x32/apps/
%_datadir/apps/basket/icons/hicolor/32x32/apps/*.png
%changelog
* Thu Apr 1 2004 Ice9
- My second rpm attempt.
I have tried numerous things like removing the
%find_lang %{name}
but then it complains about not finding a basket.lang file ....
Is there anything in the makefile I can use to track down where this error comes from?
I tried to look into it but it's kinda huge and I don't speak "programmer" very well yet ...


