ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Eugene Prokopiev <john@rmts.donpac.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Спек: имя архива с исходниками должно отличаться от имени пакета
Date: Wed, 12 May 2004 12:17:03 +0400
Message-ID: <40A1DD7F.80401@rmts.donpac.ru> (raw)
In-Reply-To: <40A1C365.40302@syktsu.ru>

Vladimir Lettiev пишет:

> Eugene Prokopiev пишет:
> 
>  > Основной ulog-acctd_0.4.2.orig.tar.gz исходник для сборки пакета -
>  > ulog-acctd_0.4.2.orig.tar.gz. Как модифицировать спек так, чтобы
>  > имя пакета было не ulog-acctd-0.4.2.orig-custom.i686.rpm, а
>  > ulog-acctd-0.4.2-custom.i686.rpm, и документация складывалась не в
>  > /usr/share/doc/ulog-acctd-0.4.2.orig а в
>  > /usr/share/doc/ulog-acctd-0.4.2?
>  >
>  > Спек:
>  >
>  > Version: 0.4.2.orig
> 
> изменить на
> Version: 0.4.2

ага, и получаю следующее:

Executing(%prep): /bin/sh -e /home/john/tmp/rpm-tmp.74785
+ umask 022
+ /bin/mkdir -p /home/john/RPM/BUILD
+ cd /home/john/RPM/BUILD
+ cd /home/john/RPM/BUILD
+ rm -rf ulog-acctd-0.4.2
+ echo 'Source #0 (ulog-acctd_0.4.2.orig.tar.gz):'
Source #0 (ulog-acctd_0.4.2.orig.tar.gz):
+ /bin/gzip -dc /home/john/RPM/SOURCES/ulog-acctd_0.4.2.orig.tar.gz
+ /bin/tar -xvvf -
drwxrwxr-x bengen/bengen     0 2004-04-06 12:54:13 ulog-acctd-0.4.2.orig/
...
-rw-rw-r-- bengen/bengen  1487 2003-04-02 01:53:08 
ulog-acctd-0.4.2.orig/src/utils.c
-rw-rw-r-- bengen/bengen   214 2002-12-17 06:14:38 
ulog-acctd-0.4.2.orig/src/utils.h
+ cd ulog-acctd-0.4.2
/home/john/tmp/rpm-tmp.74785: line 73: cd: ulog-acctd-0.4.2: No such 
file or directory
error: Bad exit status from /home/john/tmp/rpm-tmp.74785 (%prep)

> 
>  > BuildRoot: %{_tmppath}/%{name}-%{version}-root
> 
> ^^^^^^^
> Если собираете для ALT уберите данную строку, пока вас не заклевали :)
> 
>  > %install rm -rf %{buildroot}
> 
> ^^
> rm -rf   тоже бяка...
> 
>  > %clean rm -rf %{buildroot}
>  >
> ^^^
> анологично, можно даже вообще убрать секцию %clean

сделано

> 
>  >
>  > %changelog * Tue May 11 2004 Eugene Prokopiev <john@rmts.donpac.ru>
>  >  - Initial RPM package
>  >
> неправильный формат changelog... Удалите эту секцию и натравите на
> spec утилитку add_changelog

а где ее взять? у меня не Сизиф, а ALM 2.2

> 
> Всё выше изложенное хорошо задокументировано на
> http://docs.altlinux.ru/alt/devel/

Спасибо, буду читать.

И все же, а как решить первоначальную проблему?

И какие еще есть ошибки? Сейчас со всеми добавлениями спек выглядит так:

Summary: ulog-acctd - The userspace network accounting daemon
Name: ulog-acctd
Version: 0.4.2.orig
Release: custom
License: GPL
Group: Network
URL: http://alioth.debian.org/projects/pkg-ulog-acctd
Source0: ulog-acctd_0.4.2.orig.tar.gz
Source1: ulog-acctd.init
Source2: ulog-acctd.logrotate
Source3: ulog-acctd.conf
Patch0: ulog-acctd_0.4.2-custom.diff.gz
Packager: Eugene Prokopiev <john@rmts.donpac.ru>

%description
ulog-acctd is a userspace network accounting daemon which
generates log files of network traffic for accounting purposes

%prep
%setup
%patch0
%__install -p -m644 %SOURCE1 .
%__install -p -m644 %SOURCE2 .
%__install -p -m644 %SOURCE3 .

%build
cd src
make
cd ../doc
makeinfo --no-headers -o - ulog-acctd.texi > README
makeinfo --no-split ulog-acctd.texi
gzip ulog-acctd.info
cd ..

%install
mkdir -p %{buildroot}/%{_sysconfdir}
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_infodir}
mkdir -p %{buildroot}/%{_logdir}/ulog-acctd
mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}/%{_man8dir}

install doc/ulog-acctd.8 %{buildroot}/%{_man8dir}/ulog-acctd.8
install doc/ulog-acctd.info.gz %{buildroot}/%{_infodir}/ulog-acctd.info.gz
install src/ulog-acctd %{buildroot}/%{_sbindir}/ulog-acctd
install ulog-acctd.conf %{buildroot}/%{_sysconfdir}/ulog-acctd.conf
install ulog-acctd.logrotate 
%{buildroot}/%{_sysconfdir}/logrotate.d/ulog-acctd

%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_sbindir}/ulog-acctd
%{_sysconfdir}/ulog-acctd.conf
%{_sysconfdir}/logrotate.d/ulog-acctd
%{_man8dir}/*
%{_infodir}/*
%{_logdir}/*
%doc doc/README
%doc contrib
%doc COPYING

%changelog
* Tue May 11 2004 Eugene Prokopiev <john@rmts.donpac.ru>
- Initial RPM package


-- 
С уважением, Прокопьев Евгений



  reply	other threads:[~2004-05-12  8:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12  5:57 Eugene Prokopiev
2004-05-12  6:25 ` Vladimir Lettiev
2004-05-12  8:17   ` Eugene Prokopiev [this message]
2004-05-12  8:59     ` Andrew Borodin
2004-05-12 10:23       ` Eugene Prokopiev
2004-05-12 10:07     ` Alexey Borovskoy
2004-05-12 10:23     ` Vladimir Lettiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40A1DD7F.80401@rmts.donpac.ru \
    --to=john@rmts.donpac.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git