ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Re: sedna package (дубль 2)
Date: Mon, 23 May 2005 16:54:16 +0300
Message-ID: <20050523135416.GE4767@osdn.org.ua> (raw)
In-Reply-To: <KMEKJEPBHIGAGHJFMEHGIECKDDAA.fomichev@ispras.ru>

On Mon, May 23, 2005 at 05:00:55PM +0400, Andrey Fomichev wrote:
> http://modis.ispras.ru/FTPContent/tmp/sedna.spec

> Name: sedna
> Version: 0.5.6
> Release: alt1
> Summary: A Native XML DBMS Sedna
> License: Apache 2.0
> Url: http://modis.ispras.ru/Development/sedna.htm
> Group: Databases
> BuildArch: i586
> Source: http://modis.ispras.ru/FTPContent/%name-%version-src-linux.tar.gz
> Vendor: ALT Linux Team

Чисто эстетически (и немного в соответствии с рекомендацией
http://docs.altlinux.ru/alt/devel/ch01.html#id2818104 -- 
"Рекомендуемый порядок заголовочных тэгов: Name, Version, Release,
Serial, далее Summary, License, Group, Url, Packager, BuildArch,
потом Source*, Patch*, далее PreReqs, Requires, Provides,
Conflicts, и, наконец, Prefix, BuildPreReqs, BuildRequires."):

---
Name: sedna
Version: 0.5.6
Release: alt1

Summary: A Native XML DBMS Sedna
License: Apache 2.0
Group: Databases

Url: http://modis.ispras.ru/Development/sedna.htm
Source: http://modis.ispras.ru/FTPContent/%name-%version-src-linux.tar.gz
Packager: Andrey Fomichev <e@mail>
---

BuildArch можно просто выкинуть, i586 лучше задавать при помощи
--target, хотя дело такое.

> %prep
> %setup

Можно %setup -q, чтоб спаму меньше, но опять же...

> %install
> export PREFIX=$RPM_BUILD_ROOT/usr

export PREFIX=%buildroot%prefix (хотя $RPM_BUILD_ROOT
действительно более переносимо на древние RH7.x и компанию)

> %files
> %defattr(-,root,root)

См. "Устаревшие конструкции" по ссылке выше -- попросту говоря,
%defattr не нужен.

> %doc AUTHORS COPYRIGHT HISTORY LICENSE README doc
> %_bindir/se_gov
> %_bindir/se_stop

Может, %_bindir/se_*?

> %_libdir/libsedna.a

Это лучше в отдельный субпакет (в идеале -- devel-static)

> %_includedir/libsedna.h
> %_datadir/%name-%version/examples

Это лучше в отдельный субпакет (devel)
> 
> %changelog
> * Mon May 23 2005 Andrey Fomichev <fomichev@ispras.ru>

В конце хорошо бы версию ("0.5.6-alt1") -- неплохо добавляет
add_changelog из пакета sisyphus (+к нему есть vim macro).

> - %files section significantly changed (files are now installed
>   according to theirs types into /usr/bin, /usr/share, etc)

И вот здесь лишнюю пустую строку, просто чтоб читалось легче. :)

> * Wed Apr 27 2005 Andrey Fomichev <fomichev@ispras.ru> 
> - initial version
      
-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


  parent reply	other threads:[~2005-05-23 13:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 13:00 [sisyphus] " Andrey Fomichev
2005-05-23 13:39 ` Alexey I. Froloff
2005-05-23 14:28   ` Andrey Fomichev
2005-05-23 16:06     ` Andrey Rahmatullin
2005-05-24  5:53     ` Alexey I. Froloff
2005-05-23 13:54 ` Michael Shigorin [this message]
2005-05-23 14:44   ` [sisyphus] " Andrey Fomichev
2005-05-23 14:51     ` [sisyphus] " Michael Shigorin

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=20050523135416.GE4767@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --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