Some notes on Packaging

1. Some notes on Packaging

Reviewer and Packager

Know their relationship

Any situation may against guide lines

openSUSE-packaging

Do check rpmlint

https://en.opensuse.org/openSUSE:Packaging_checks

No inclusion of pre-build binaries or libraries

Some firmware can be exception.

Avoid having multiple projects in single package

Specfile guideline

https://en.opensuse.org/openSUSE:Specfile_guidelines

Architecture support

better i585 + x86_64

blacklist

https://en.opensuse.org/openSUSE:Build_Service_application_blacklist

what licence?

https://docs.google.com/spreadsheet/pub?key=0AqPp4y2wyQsbdGQ1V3pRRDg5NEpGVWpubzdRZ0tjUWc

Multiple licences?

License: (MIT or GPL-2.0) and LGPL-2.1+

Write licence for subpackages

Better don’t use the default inherit feature

licence to %doc

Put COPYTING, COPYING.LIB or LICENSE to %doc

Code or Content?

Some exception , images, musics.

Init scripts

Use systemd, use service file.

Create .desktop for GUI program.

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

Icon tag for Desktop files

Icon=comical
.png -> .svg -> .xpm

2. Packaging for JAVA

https://en.opensuse.org/openSUSE:Packaging_Java

(Build)Requires

BuildRequires: java >= 1.6.0
Requires:      java >= 1.6.0

Starting the program

# startscript
cat > %{name} << 'EOF'
#!/bin/sh
#
# <Program Name> startscript
#
echo Starting %{name} version %{version} ...
echo with options : \${@}

java -jar %{_datadir}/%{name}/%{name}.jar \${@}

EOF

install the scripts

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/

Sun java

  osc meta prj [your project] -e

Add non free repo

<repository name="openSUSE_11.3">
  <path project="openSUSE:11.3" repository="standard"/>
  <!-- the NonFree repository -->
  <path project="openSUSE:11.3:NonFree" repository="standard"/>
...

Example

'columba' specfile given, try to package that.

发表评论

电子邮件地址不会被公开。

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>