[devel] Порт gear для Fedora

Evgeny Sinelnikov sin на altlinux.ru
Сб Ноя 19 15:43:34 MSK 2011


19 ноября 2011 г. 16:36 пользователь Dmitry V. Levin <ldv at altlinux.org> написал:
> On Sat, Nov 19, 2011 at 04:28:14PM +0400, Evgeny Sinelnikov wrote:
>> Тут подойдёт, похоже, только такое:
>>  https://fedoraproject.org/wiki/Packaging/SourceURL#Using_Revision_Control
>>  https://fedoraproject.org/wiki/Packaging/NamingGuidelines#SnapshotPackages
>>
>> Using Revision Control
>>
>> In some cases you may want to pull sources from upstream's revision
>> control system because there have been many changes since the last
>> release and you think that a tarball that you generate from there will
>> more accurately show how the package relates to upstream's
>> development. Here's how you can use a comment to show where the source
>> came from:
>>
>> # The source for this package was pulled from upstream's vcs.  Use the
>> # following commands to generate the tarball:
>> #  svn export -r 250 http://www.example.com/svn/foo/trunk foo-20070221
>> #  tar -cJvf foo-20070221.tar.xz foo-20070221
>> Source0: foo-20070221.tar.xz
>> When pulling from revision control, please remember to use a
>> Name-version-release compatible with the Version and Release
>> Guidelines. In particular, check the section on Naming Snapshots .
>
> $ git archive --format=tar --prefix=gear-1.7.2.6-alt1/ tags/1.7.2.6-alt1 | gzip -9n > gear-1.7.2.6-alt1.tar.gz
>
> Если не забыть передать -n gzip'у, то файл для указанного тэга будет получаться всякий раз одинаковым.

Это интересно, а как бы согласовать это с тем , что упаковывается из
gear-rules по правилу:
tar.gz: @version at -alt1:. name=@name at -@version at -alt1 base=@name at -@version at -alt1


-- 
Sin (Sinelnikov Evgeny)
Etersoft


Подробная информация о списке рассылки Devel