Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
packaging question
  • From: Michael Derek Barnett <mdb@xxxxxxxxxx>
  • Date: Sun, 26 Aug 2001 07:12:59 -0400
  • Message-id: <200108261113.f7QBDT205034@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Greetings,

I stumbled upon checkinstall last night, and decided that I may as well try
to package a couple of rpms that I like but SuSE doesn't include on their
disks.

At Lenz's suse webpage, there's a SuSE packaging convention howto, and, in
brief, it tells me to do this:
----------------------------------------------------------------------------------------
3.3 RPM macros

Describe the additional SuSE RPM macros, e.g. suse_check and
suse_update_config.

FIXME: Explain them in more detail. Here is a preliminary description of the
suse_update_config macro:

Syntax:
%{suse_update_config [-fcl] [dirs...]}
-f: force, ignore timestamp
-c: no config.guess,config.sub
-l: no ltconfig,ltmain.sh

You should always use -f, or you will get big problems if for example only
one of ltconfig and ltmain.sh are updated.

If you have problems with libtool, use %{suse_update_config -fl}
---------------------------------------------------------------------------------------

However, when I put this in the .spec file (kpsk-0.9.2.spec specifically,)
checkinstall fails, and I get this error in the log:
===================================================
Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.13394
+ umask 022
+ cd /usr/src/packages/BUILD
+ '[' -d /usr/share/automake ']'
+ test -f ./config.sub
+ test -f ./config.guess
+ test -f ./ltconfig
+ test -f ./ltmain.sh
+ test -f '[-fl]/config.sub'
+ test -f '[-fl]/config.guess'
+ test -f '[-fl]/ltconfig'
+ test -f '[-fl]/ltmain.sh'
+ test -f '[dirs...]/config.sub'
+ test -f '[dirs...]/config.guess'
+ test -f '[dirs...]/ltconfig'
+ test -f '[dirs...]/ltmain.sh'
+ -f: force, ignore timestamp
/var/tmp/rpm-tmp.13394: -f:: command not found
Bad exit status from /var/tmp/rpm-tmp.13394 (%prep)
/var/tmp/checkinstall.0Tghg0/rpmbuild.log lines 1-21/21 (END)
==========================================================


I will attach my kpsk-0.9.2.spec file below my .sig. Can anyone clue me in on
what I'm missing? (Tips on the spec file are freely accepted...I don't really
know what I'm doing here.)


--
-derek

Never shave with Occam's Razor in a funhouse.


kpsk-0.9.2.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++
# This spec file was generated using Kpp
# If you find any problems with this spec file please report
# the error to ian geiser <geiseri@xxxxxxxx>
Summary: kpsk-0.9.2
Name: kpsk
Version: 0.9.2
Release: 0.9.2
Copyright: GPL
Vendor: Luc Langenhegermann <luc@xxxxxxxx
Url: http://www.1409.org/projects/kpsk
Packager: Derek Barnett <kg4clc@xxxxxxxx>
Group: X11/Applications/Hamradio
Source: kpsk-0.9.2.tar.gz
BuildRoot: /usr/local/kpsk

%description
kpsk-0.9.2

%prep

%{suse_update_config [-fl] [dirs...]}
-f: force, ignore timestamp
-c: no config.guess,config.sub
-l: no ltconfig,ltmain.sh

%setup
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=/opt/kde2 --with-qt-dir=/usr/lib/qt2 \
$LOCALFLAGS
%build
# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
numprocs=1
fi

make -j$numprocs

%install
make install-strip DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' >
$RPM_BUILD_DIR/file.list.kpsk
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >>
$RPM_BUILD_DIR/file.list.kpsk
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >>
$RPM_BUILD_DIR/file.list.kpsk

%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/kpsk
rm -rf ../file.list.kpsk



%files
"/Applications/kpsk.desktop"
"/opt/kde2/bin/kpsk"
"/opt/kde2/share/apps/kpsk/dxcc.db"
"/opt/kde2/share/apps/kpsk/psk31.cod"
"/opt/kde2/share/doc/HTML/en/kpsk/index.docbook"
"/opt/kde2/share/icons/locolor/16x16/apps/kpsk.png"
"/opt/kde2/share/icons/locolor/32x32/apps/kpsk.png"
"/usr/doc/packages/kpsk-0.9.2/AUTHORS"
"/usr/doc/packages/kpsk-0.9.2/COPYING"
"/usr/doc/packages/kpsk-0.9.2/ChangeLog"
"/usr/doc/packages/kpsk-0.9.2/INSTALL"
"/usr/doc/packages/kpsk-0.9.2/README"
"/usr/doc/packages/kpsk-0.9.2/TODO"
+++++++++++++++++++++++++++++++++++++++++++++++++++

< Previous Next >
This Thread
  • No further messages