devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Artem Zolochevskiy <artem.zolochevskiy@gmail.com>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] qjoypad
Date: Wed, 15 Sep 2010 03:13:47 +0300
Message-ID: <AANLkTinqb76JrXCHF8W2y=8XUdSNDyZvFhaHyObM8pKC@mail.gmail.com> (raw)
In-Reply-To: <4C8FE9C9.1050201@gmail.com>

15 сентября 2010 г. 0:31 пользователь Yuriy Shirokov
<yuriy.shirokov@gmail.com> написал:
> Здравствуйте!
>
> Собрал для Сизифа http://qjoypad.sourceforge.net, программу, имитирующую по
> событиям джойстика нажатия на клавиатуру или движение мыши:
> http://git.altlinux.org/people/yushi/packages/qjoypad.git
>
> Кажется, это первый пакет, спек для которого я писал с нуля, так что вполне
> мог что-то налажать, критика принимается с благодарностью.
>

Что можно было бы сделать иначе:

1. Наверное при сборке из git/gear совсем не обязательно упаковывать
исходники в tar.gz. Они и так упаковываются, так что два раза эту
работу можно и не делать :-)
итого:
в  .gear/rules вполне достаточно будет tar.gz: qjoypad
ну и в спеке Source0: %name-%version.tar

2. Русские Summary и Description можно было бы положить в specspo

3. License можно было бы для единообразия оформить макросом (см.
/etc/rpm/macros.d/licenses)
License: %gpl2only
и добавить
BuildRequires(pre): rpm-build-licenses

и кстати не %gpl2plus ли оно вообще?

4. %build можно было бы лаконичнее:
тут можно было бы избавиться и от патча вовсе. например так:
export PATH=$PATH:%_qt4dir/bin
%configure --prefix=%prefix --install-dir=%buildroot
%make_build

5. %install тоже можно офрмить, например, вот так:
%makeinstall_std -C src

6. документация обычно отправляется в /usr/share/doc/%name-%version/
кроме того, следуя http://www.altlinux.org/Docs файлы лицензии не пакуем.
итого в %files можно было бы %docdir/* заменить на:
%doc README.txt
%exclude %_docdir

7. как фичреквест: если программка графическая, то стоило бы написать
для неё .desktop файл, для отображения в меню.

Сходу другого не бросилось в глаз.
Надеюсь, хоть чем-то посодействовал.

-- 
Артём Золочевский

  reply	other threads:[~2010-09-15  0:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-14 21:31 Yuriy Shirokov
2010-09-15  0:13 ` Artem Zolochevskiy [this message]
2010-09-15  5:55   ` Ivan A. Melnikov
2010-09-15  5:58     ` Artem Zolochevskiy
2010-09-15  5:59   ` Artem Zolochevskiy
2010-09-15  6:07     ` Andrey Rahmatullin
2010-09-19 14:29   ` Yuriy Shirokov
2010-09-15 12:43 ` Michael Shigorin
2010-09-15 12:48   ` Andrey Rahmatullin
2010-09-19 14:36     ` Yuriy Shirokov
2010-09-19 14:32   ` Yuriy Shirokov
2010-09-19 18:18     ` Motsyo Gennadi aka Drool

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='AANLkTinqb76JrXCHF8W2y=8XUdSNDyZvFhaHyObM8pKC@mail.gmail.com' \
    --to=artem.zolochevskiy@gmail.com \
    --cc=devel-newbies@lists.altlinux.org \
    /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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

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


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