ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: php-coder <php-coder@ngs.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Konversation-0.17 Было: Сборка	libdb4.3-4.3.27-alt2
Date: Wed, 13 Apr 2005 23:47:37 +0700
Message-ID: <20050413164737.GA4019@mycomp.mydomain> (raw)
In-Reply-To: <20050413144154.64a5a02f@super-comp.home.net>


--- Drool 2005-04-13 14:41:54 +0300
+++ php-coder 2005-04-13 22:31:24 +0700

    Я тут в ваш спек заглянул ;))

    Вот, что на мой взгляд лучше изменить:

    - BuildRequires лучше генерировать при помощи программы buildreq из
      пакета rpm-utils, потому что, если писать самому, то можно
      какую-нибудь зависимость не учесть

    -subst "s/\.la/.so/g" configure
    +%__subst "s/\.la/.so/g"

    -mkdir -p $RPM_BUILD_ROOT
    +%__mkdir_p %buildroot

    -make install DESTDIR=%buildroot
    +%make_install DESTDIR=%buildroot install

    -mkdir -p %buildroot%_docdir/%name-%version
    -cp AUTHORS ChangeLog COPYING INSTALL README TODO VERSION %buildroot%_docdir/%name-%version
    
    Это нужно в секции %files делать... Пример:
    
    %files
    %doc AUTHORS ChangeLog COPYING INSTALL
    %doc README TODO VERSION
	
    -install -d 644 $RPM_BUILD_ROOT%_menudir
    -cat << EOF > $RPM_BUILD_ROOT%_menudir/%name
    +%__install -d 644 %buildroot%_menudir
    +%__cat << EOF > %buildroot%_menudir/%name

    -command=%name
    +command="%_bindir/%name"
    Вдруг у пользователя в /usr/local установлена вторая копия программы?

    -%clean
    -rm -rf %buildroot

    "Перед выполнением секции %install и по окончании выполнения секции
     %clean RPM автоматически очищает BuildRoot с помощью макроса
     %clean_buildroot. Это значит, что больше не нужно использовать эти
     ужасные rm -rf $RPM_BUILD_ROOT. Секция %clean вообще может (и должна)
     быть опущена, если в ней не содержится ничего, кроме этого «rm»."
                    -- http://docs.altlinux.ru/alt/devel/ch01s02.html
	 
     ;-)

    -%_menudir
    -%_bindir
    -%_datadir
    +%_menudir/*
    +%_bindir/*
    +%_datadir/*

    Это AFAIK очень серьезная ошибка! После этого, к примеру, каталог /usr/bin
    будет принадлежать вашему пакету!! И, кстати, мне кажется, что нужно
    писАть не %_datadir/*, а %_datadir/%name, потому что в /usr/share,
    вроде бы, программы так просто файлы не кидают, они их держат в
    соответствующих каталогах. Проверьте у себя это...

    Удачи!

    P.S. Я тут еще со своими комментариями к чужим спекам никого не
    достал? ;)
	

-- 
+ php-coder
+ php-coder[at]ngs[dot]ru
+ ALTLinux Master 2.4 (kernel 2.4.26-std-up-alt11)



  parent reply	other threads:[~2005-04-13 16:47 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-11  9:36 [sisyphus] " Drool
2005-04-11  9:55 ` [sisyphus] " Michael Shigorin
2005-04-11  9:57 ` Michael Shigorin
2005-04-11 10:33   ` Drool
2005-04-11 10:45 ` [sisyphus] " Dmitry V. Levin
2005-04-20  8:51   ` Drool
2005-04-20  9:52     ` Dmitry V. Levin
2005-04-20  9:50       ` Drool
2005-04-20 10:13       ` Andrei Bulava
2005-04-11 12:33 ` Boldin Pavel
2005-04-12  8:45   ` Drool
2005-04-12 14:13     ` Alexey Borovskoy
2005-04-12 14:31       ` Epiphanov Sergei
2005-04-13  7:30         ` [sisyphus] Konversation-0.17 Было: " Drool
2005-04-13  9:21           ` [sisyphus] " Michael Shigorin
2005-04-13 10:47             ` [sisyphus] Re: Konversation-0.17 Drool
2005-04-13 12:39               ` Michael Shigorin
2005-05-18 11:59                 ` Alex Gorbachenko
2005-05-18 12:32                   ` Drool
2005-05-18 12:45                     ` Alex Gorbachenko
2005-05-18 14:01                       ` Alex Gorbachenko
2005-05-18 13:10                   ` Alexey Borovskoy
2005-05-19 12:57                     ` Alex Gorbachenko
2005-04-13 11:15           ` [sisyphus] Konversation-0.17 Было: Сборка libdb4.3-4.3.27-alt2 Igor V. Krutyakov
2005-04-13 11:41             ` Drool
2005-04-13 13:05               ` [sisyphus] [JT] Konversation-0.17 Epiphanov Sergei
2005-04-14  7:21                 ` Drool
2005-04-13 16:47               ` php-coder [this message]
2005-04-13 16:47                 ` [sisyphus] junior jobs? (was: Konversation-0.17) Michael Shigorin
2005-04-14  8:24                 ` [sisyphus] Konversation-0.17 & кривость spec-файла Drool
2005-04-14  9:01                   ` Nick S. Grechukh
2005-04-14  9:41                     ` Drool
2005-04-14 10:18                       ` Nick S. Grechukh
2005-04-14 11:55                             ` [sisyphus] " Michael Shigorin
2005-04-14 12:11                     ` [sisyphus] " php-coder
2005-04-14 12:17                       ` Nick S. Grechukh
2005-04-14 11:00                   ` php-coder
2005-04-14  9:31                 ` [sisyphus] Konversation-0.17 Было: Сборка libdb4.3-4.3.27-alt2 Drool
2005-04-14 10:24                   ` Alexey V. Novikov
2005-04-13 14:38         ` [sisyphus] " Alexey Borovskoy
2005-04-13 15:55           ` Alexey Borovskoy

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=20050413164737.GA4019@mycomp.mydomain \
    --to=php-coder@ngs.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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