linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Aarushi Mehta <mehta.aaru20@gmail.com>,
	linux-block@vger.kernel.org, Julia Suvorova <jusual@redhat.com>,
	Jeff Moyer <jmoyer@redhat.com>
Subject: Re: [PATCH liburing 3/3] spec: Fedora RPM cleanups
Date: Mon, 4 Nov 2019 16:53:23 +0100	[thread overview]
Message-ID: <20191104155323.GA57506@stefanha-x1.localdomain> (raw)
In-Reply-To: <91fbe88c-5574-847e-12f0-992710bbb544@kernel.dk>

[-- Attachment #1: Type: text/plain, Size: 3100 bytes --]

On Mon, Nov 04, 2019 at 07:07:00AM -0700, Jens Axboe wrote:
> On 11/4/19 5:05 AM, Stefan Hajnoczi wrote:
> > From: Jeff Moyer <jmoyer@redhat.com>
> > 
> > Cole Robinson and Fabio Valenti made a number of suggestions for the
> > .spec file:
> > https://bugzilla.redhat.com/show_bug.cgi?id=1766157
> > 
> >   * Release should be Release: 1%{?dist} so the .fcXX bits get appended to the version string
> >   * Source: should be a pointer to the upstream URL that hosts the release. In this case I think it should be https://github.com/axboe/liburing/archive/%{name}-%{version}.tar.gz#%{name}-%{name}-%{version}.tar.gz, the ending weirdness is due to github renaming the archive strangely. You might need to pass '-n %{name}-%{name}-%{version}' to %setup/%autosetup to tell it what the extracted archive name is
> >   * The %defattr lines should be removed: https://pagure.io/packaging-committee/issue/77
> >   * The Group: lines should be removed
> >   * All the BuildRoot and RPM_BUILD_ROOT lines should be removed. %clean should be removed
> >   * The ./configure line should be replaced with just %configure
> >   * The 'make' call should be %make_build
> >   * The 'make install' call should be %make_install
> >   * The %pre and %post sections can be entirely removed, ldconfig is done automatically: https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
> >   * The devel package 'Requires: liburing' should instead be: Requires: %{name} = %{version}-%{release}
> >   * The devel package should also have Requires: pkgconfig
> >   * I think all the %attr usage can be entirely removed, unless they are doing something that the build system isn't doing.
> >   * The Provides: liburing.so.1 shouldn't be necessary, I'm pretty sure RPM automatically adds annotations like this
> >   * Replace %setup with %autosetup, which will automatically apply any listed Patch: in the spec if anything is backported in the future. It's a small maintenace optimization
> > 
> > These changes work on Fedora 31 and openSUSE Leap 15.1.  Therefore they
> > are likely to work on other rpm-based distributions too.
> 
> This looks like a spec file changelog. Nothing wrong with that, but it
> should be no wider than 72 characters to avoid making git log look like
> a mess. Normally I'd just fix that up, but another comment below.

Will fix in v2.

> > -URL: http://git.kernel.dk/cgit/liburing/
> > +URL: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.gz
> > +BuildRequires: gcc
> 
> I enabled snapshots in cgit, so maybe we can just point at those?
> Something like:
> 
> URL: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.gz
> 
> Yes, and there's also https now, finally got that enabled on kernel.dk
> after running that site for more than two decades.

Great news!  Will switch to that.

> >   %changelog
> > +* Thu Oct 31 2019 Jeff Moyer <jmoyer@redhat.com> - 0.2-1
> > +- Initial fedora package.
> > +
> 
> Maybe keep this distro agnostic?

I will make the changelog cover the actual API changes in 0.2.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2019-11-04 15:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04 12:05 [PATCH liburing 0/3] Fedora 31 RPM improvements Stefan Hajnoczi
2019-11-04 12:05 ` [PATCH liburing 1/3] spec: update RPM version number to 0.2 Stefan Hajnoczi
2019-11-04 12:05 ` [PATCH liburing 2/3] Makefile: add missing .pc dependency on .spec file Stefan Hajnoczi
2019-11-04 12:05 ` [PATCH liburing 3/3] spec: Fedora RPM cleanups Stefan Hajnoczi
2019-11-04 14:07   ` Jens Axboe
2019-11-04 15:53     ` Stefan Hajnoczi [this message]

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=20191104155323.GA57506@stefanha-x1.localdomain \
    --to=stefanha@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=jmoyer@redhat.com \
    --cc=jusual@redhat.com \
    --cc=linux-block@vger.kernel.org \
    --cc=mehta.aaru20@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).