Bug 1780823 - Review Request: rinutils - headers-only c11/gnu11 used in Shlomi Fish's C projects
Summary: Review Request: rinutils - headers-only c11/gnu11 used in Shlomi Fish's C pro...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-07 11:14 UTC by Shlomi Fish
Modified: 2020-08-03 00:25 UTC (History)
3 users (show)

Fixed In Version: rinutils-0.1.4-1.fc32
Clone Of:
Environment:
Last Closed: 2020-08-03 00:25:50 UTC
Type: ---
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)

Description Shlomi Fish 2019-12-07 11:14:07 UTC
Spec URL: https://www.shlomifish.org/Files/files/code/librinutils-devel.spec
SRPM URL: https://www.shlomifish.org/Files/files/arcs/librinutils-devel-0.1.4-1.fc32.src.rpm
Description: librinutils-devel - headers-only c11/gnu11 used in Shlomi Fish's C projects. Extracted as a separate lib for fedora/etc. policy.
Fedora Account System Username: shlomif

Comment 1 Robert-André Mauchin 🐧 2019-12-11 23:36:40 UTC
 - Not needed:

rm -rf %buildroot

%defattr(-,root,root)

 - Please use macro here:

%{_includedir}/%{basen}/*.h

 - Please use librinutils as base package and add a -devel subpackage and add a

Provides: librinutils-static = %{version}-%{release}

See https://docs.fedoraproject.org/en-US/packaging-guidelines/#_packaging_header_only_libraries

Comment 2 Shlomi Fish 2019-12-12 05:04:37 UTC
(In reply to Robert-André Mauchin from comment #1)
>  - Not needed:
> 
> rm -rf %buildroot
> 
> %defattr(-,root,root)
> 
>  - Please use macro here:
> 
> %{_includedir}/%{basen}/*.h
> 
>  - Please use librinutils as base package and add a -devel subpackage and
> add a
> 
> Provides: librinutils-static = %{version}-%{release}
> 
> See
> https://docs.fedoraproject.org/en-US/packaging-guidelines/
> #_packaging_header_only_libraries

Thanks! But for the life of me I cannot figure out how to make the main package "BuildArch: noarch" and the -devel package "BuildArch: "-plat-dependent. rpmlint warns on both cases where both are the same.

Comment 3 Shlomi Fish 2019-12-12 06:14:25 UTC
(In reply to Shlomi Fish from comment #2)
> (In reply to Robert-André Mauchin from comment #1)
> >  - Not needed:
> > 
> > rm -rf %buildroot
> > 
> > %defattr(-,root,root)
> > 
> >  - Please use macro here:
> > 
> > %{_includedir}/%{basen}/*.h
> > 
> >  - Please use librinutils as base package and add a -devel subpackage and
> > add a
> > 
> > Provides: librinutils-static = %{version}-%{release}
> > 
> > See
> > https://docs.fedoraproject.org/en-US/packaging-guidelines/
> > #_packaging_header_only_libraries
> 
> Thanks! But for the life of me I cannot figure out how to make the main
> package "BuildArch: noarch" and the -devel package "BuildArch:
> "-plat-dependent. rpmlint warns on both cases where both are the same.

Figured it out by looking at the cereal package (dnf info FTW). Anyway:

https://www.shlomifish.org/Files/files/arcs/librinutils-0.1.4-1.fc32.src.rpm

and

https://www.shlomifish.org/Files/files/code/librinutils.spec .

Thanks!

Comment 4 Robert-André Mauchin 🐧 2019-12-12 14:23:47 UTC
 - Just use:

%package devel

 - Why did you make the headers noarch? The link I sent you explicitly says the opposite:

Do not use noarch

It may be tempting to make the header library package noarch, since the header files themselves are simply text. However, a library should have tests which should be run on all architectures. Also, the install process may modify the installed headers depending on the build architecture. For these reasons, header-only packages must not be marked noarch.


 - Also why not name it rinutils instead of librinutils? Using lib- prefix is a Debianesque way of doing.

Comment 5 Shlomi Fish 2019-12-12 18:52:06 UTC
(In reply to Robert-André Mauchin from comment #4)
>  - Just use:
> 
> %package devel
> 
>  - Why did you make the headers noarch? The link I sent you explicitly says
> the opposite:
> 
> Do not use noarch
> 
> It may be tempting to make the header library package noarch, since the
> header files themselves are simply text. However, a library should have
> tests which should be run on all architectures. Also, the install process
> may modify the installed headers depending on the build architecture. For
> these reasons, header-only packages must not be marked noarch.
> 
> 
>  - Also why not name it rinutils instead of librinutils? Using lib- prefix
> is a Debianesque way of doing.

Fixed here:

* https://www.shlomifish.org/Files/files/code/rinutils.spec

* https://www.shlomifish.org/Files/files/arcs/rinutils-0.1.4-1.fc32.src.rpm

Thanks!

Comment 6 Robert-André Mauchin 🐧 2019-12-13 15:09:03 UTC
Provides: lib%{basen}-static = %{version}-%{release}

→

Provides: %{basen}-static = %{version}-%{release}

 - Also you must install the LICERSE file with %license in %ifiles:

%license LICENSE

Comment 7 Shlomi Fish 2019-12-14 08:10:47 UTC
(In reply to Shlomi Fish from comment #5)
> (In reply to Robert-André Mauchin from comment #4)
> >  - Just use:
> > 
> > %package devel
> > 
> >  - Why did you make the headers noarch? The link I sent you explicitly says
> > the opposite:
> > 
> > Do not use noarch
> > 
> > It may be tempting to make the header library package noarch, since the
> > header files themselves are simply text. However, a library should have
> > tests which should be run on all architectures. Also, the install process
> > may modify the installed headers depending on the build architecture. For
> > these reasons, header-only packages must not be marked noarch.
> > 
> > 
> >  - Also why not name it rinutils instead of librinutils? Using lib- prefix
> > is a Debianesque way of doing.
> 
> Fixed here:
> 

Thanks Robert! Should be fixed here (same place):

> * https://www.shlomifish.org/Files/files/code/rinutils.spec
> 
> * https://www.shlomifish.org/Files/files/arcs/rinutils-0.1.4-1.fc32.src.rpm
> 
> Thanks!

Comment 8 Robert-André Mauchin 🐧 2019-12-15 00:43:27 UTC
Package approved.

Comment 9 Gwyn Ciesla 2019-12-17 20:46:35 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rinutils

Comment 10 Elliott Sales de Andrade 2020-08-03 00:25:50 UTC
Please close your Review Requests when they are complete.


Note You need to log in before you can comment on or make changes to this bug.