Quantcast
Channel: Tilting at windmills » suse
Viewing all articles
Browse latest Browse all 14

Factory and package guidelines

$
0
0

I see some changes going into Factory that apply current packaging guidelines to packages.

To summarize some of the cleanups you can find as submit requests: (no guarantee that those are actual guidelines. Check yourself)

  • Remove redundant information:
    -# spec file for package dom4j (Version 1.6.1)
    +# spec file for package dom4j
    
  • Remove norootforbuild comment
    -# norootforbuild
    
  • Remove AutoReqProv: on (I guess because it is on by default)
    -AutoReqProv: on
    
  • Remove Authors list from description:
    -Authors:
    ----------
    -  Bob Esponja
    -  Peter Parker
    
  • New macro for parallel builds:
    -make %{?jobs:-j%jobs}
    +make %{?_smp_mflags}
    
  • Put test runs in the %check section:
    +%check
    +
    make check
    
  • Don’t clean the builroot yourself:
    %install
    -rm -rf $RPM_BUILD_ROOT
    
  • No clean section (is it now done automatically?:
    -%clean
    -rm -rf $RPM_BUILD_ROOT
    -


  • Viewing all articles
    Browse latest Browse all 14

    Trending Articles