RPM BUILDING… *blink blink*

RPM Building Process (1/2)

Package NANO.

Thoughts/Reflections.

I thought RPM building with Nano will be easy, since its a small editing software but I was wrong.

I encountered many errors while building and when using the RPMlint command.

It was a vicious circle between these two building and checking commands.

Once, I did get it done and all the errors and warnings were cleared, and I was glad.

Never give up and keep trying when it comes to building packages.

[root@breezy SPECS]# rpmlint ../RPMS/
nano-debuginfo.i686: I: enchant-dictionary-not-found en_US
2 packages and 0 specfiles checked; 0 errors, 0 warnings.
[root@breezy SPECS]# rpmlint nano.spec
0 packages and 1 specfiles checked; 0 errors, 0 warnings.
[root@breezy SRPMS]# rpmlint nano-2.2.6-1.fc13.src.rpm
nano.src: I: enchant-dictionary-not-found en_US
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

Errors/Conflicts

When I build the package (rpmbuild -ba nano.spec) I got the following errors.

*Errors of the UTF8 files that had to be converted.

*Incoherent-version-in-changelog had to have detail information and the right version number of my package.

*Invalid-license: So I had to change it to GPLv3

/usr/share/locale/rw/LC_MESSAGES/nano.mo  –(%files -f %{name}.lang)

Error: Installed (but unpackaged) file(s) found:    /usr/bin/rnano  — (%{_bindir}/*)

[root@breezy SPECS]# rpmlint ../RPMS/
nano-debuginfo.i686: I: enchant-dictionary-not-found en_US
nano.i686: W: file-not-utf8 /usr/share/man/fr/man5/nanorc.5.gz
nano.i686: W: file-not-utf8 /usr/share/man/fr/man1/nano.1.gz
nano.i686: W: file-not-utf8 /usr/share/man/fr/man1/rnano.1.gz
2 packages and 0 specfiles checked; 0 errors, 3 warnings.

-> For this error above you would have to change those files with the gz  in every man folder. untar your package tarball in in the SOURCE directory and changes those files and retar it again.

The commands:

tar xvzf nano-2.2.6.tar.gz

iconv -f iso8859-1 -t utf-8 nanorc.5.gz > nanorc.5.gz.conv && mv -f nanorc.5.gz.conv nanorc.5.gz

tar -czf nano-2.2.6.tar.gz .

Initial Errors.

[root@breezy SPECS]# rpmlint ../RPMS/

nano-debuginfo.i686: I: enchant-dictionary-not-found en_US
nano-debuginfo.i686: W: invalid-license GPL
nano.i686: W: non-standard-group Applications and Editors
nano.i686: W: incoherent-version-in-changelog 2.2.6 [‘2.2.6-1.fc13’, ‘2.2.6-1’]
nano.i686: W: invalid-license GPL
nano.i686: E: standard-dir-owned-by-package /usr/share/info
nano.i686: W: file-not-utf8 /usr/share/man/fr/man1/rnano.1.gz
nano.i686: E: info-files-without-install-info-postin /usr/share/info/nano.info.gz
nano.i686: E: info-files-without-install-info-postun /usr/share/info/nano.info.gz
nano.i686: E: info-dir-file /usr/share/info/dir
nano.i686: E: info-files-without-install-info-postin /usr/share/info/dir
nano.i686: E: info-files-without-install-info-postun /usr/share/info/dir
nano.i686: E: standard-dir-owned-by-package /usr/share/man/man5
nano.i686: W: file-not-utf8 /usr/share/man/fr/man5/nanorc.5.gz
nano.i686: E: standard-dir-owned-by-package /usr/share/man/man1
nano.i686: W: file-not-utf8 /usr/share/man/fr/man1/nano.1.gz
nano.i686: E: standard-dir-owned-by-package /usr/share/man
nano.i686: W: file-not-in-%lang /usr/share/locale/bg/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/ca/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/cs/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/da/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/de/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/es/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/eu/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/fi/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/fr/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/ga/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/gl/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/hu/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/id/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/it/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/ms/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/nb/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/nl/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/nn/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/pl/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/pt_BR/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/ro/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/ru/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/rw/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/sr/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/sv/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/tr/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/uk/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/vi/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/zh_CN/LC_MESSAGES/nano.mo
nano.i686: W: file-not-in-%lang /usr/share/locale/zh_TW/LC_MESSAGES/nano.mo
2 packages and 0 specfiles checked; 9 errors, 37 warnings.

Spec File {Commands and information that needed to be added}:

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc
%{_bindir}/*
%{_infodir}/*
%{_mandir}/*/*
%{_datadir}/nano*/*
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ] ; then
/sbin/install-info –delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
License:        GPLv3
%changelog
* Mon Jan 24 2011 Chantell McIntosh <camcintosh1@learn.senecac.on.ca> 2.2.6-1
-Spec File Edited

Files LINK HERE:

RPMS

SPRMS

•Blog Soon! •

Let me know how you feel, my friend :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s