Re: Sourceless but useless: how about ignoring some irrelevant files instead of repackaging?
Jonas Smedegaard wrote:
> On Mon, Sep 07, 2009 at 09:01:04PM +0900, Charles Plessy wrote:
>>
>> Now I will have to add a lot of stuff to debian/copyright, make a
>> “dfsg” tarball, provide a get-orig-source target in debian/rules, and
>> write a README.source file to comply with the Policy, and do the
>> repackaging dance at each new upstream release. This is not the way I
>> have fun.
>
> How about just minimizing and simplifying the stuff you need to do?
>
> Would you find it interesting if you only needed to add these 3 lines:
>
> ---- debian/rules ----
> include /usr/share/cdbs/1/rules/upstream-tarball.mk
> DEB_UPSTREAM_URL = http://example.org/download
> DEB_UPSTREAM_REPACKAGE_EXCLUDE = lib/zlib.o
> ---- debian/rules ----
>
Nice!
git-import-orig provides the same functionality and is very easy to use.
Just create a debian/gbp.conf with the following lines:
[DEFAULT]
pristine-tar = True
filter-pristine-tar = True
filter = [
"lib/zlib.o",
"otherdir/"
]
and then, when you'll run git-import-orig, it'll do the repackaging
automatically.
(Works only when pristine-tar option is used)
Hope this helps,
--
Mehdi Dogguy مهدي الدڤي
mehdi@{dogguy.org,debian.org}
Reply to: