- Modifié
Tout d'abord bonjour à tous, ça fait un petit moment que je ne suis pas passé par ici, j'ai pas mal été occupé ces derniers temps.
Mon problème est le suivant :
Enfin, pour la page de man, j'en ai fait une de base (c'est même plus un squelette de page de man 🙂), l'amont n'en proposant pas :
Et enfin dernière question, vous avez un "truc" pour éviter que les termes techniques dans %description remontent des avertissements ?
J'ai peut être oublié des infos, me prévenir le cas échéant, sachant que je risque de pas être très présent avant Lundi.
Merci d'avance,
Thomas.
Mon problème est le suivant :
[builder@desktop SPECS]$ rpmlint ../RPMS/i686/kwooty-0.5.1-1.fc13.tomz.i686.rpm
kwooty.i686: W: spelling-error Summary(en_US) nzb -> neb, nib, nab
kwooty.i686: W: spelling-error Summary(en_US) downloader -> downloaded, down loader, down-loader
kwooty.i686: W: spelling-error %description -l en_US unrar -> unbar, unravel, unreal
kwooty.i686: W: spelling-error %description -l en_US nzb -> neb, nib, nab
kwooty.i686: W: spurious-executable-perm /usr/share/doc/kwooty-0.5.1/COPYING
kwooty.i686: W: no-manual-page-for-binary kwooty
1 packages and 0 specfiles checked; 0 errors, 6 warnings.
Fichier spec :Name: kwooty
Version: 0.5.1
Release: 1%{?dist}.tomz
Summary: The chilled-out nzb binary downloader for KDE 4
Group: Applications/Internet
License: GPLv2
URL: http://kwooty.sourceforge.net/
Source0: http://freefr.dl.sourceforge.net/project/kwooty/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-desktop_categories.patch
Patch1: %{name}-%{version}-docfiles_names.patch
Patch2: %{name}-%{version}-docfiles_eof.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: qt-devel cmake kdebase-workspace-devel automoc desktop-file-utils
Requires: par2cmdline p7zip kdebase-workspace
%{?kde4_macros_api:Requires: kde4-macros(api) = %{?kde4_macros_api}}
%package devel
Summary: Development files for kwooty
Group: Development/Libraries
Requires: kwooty = %{version}-%{release}
%description devel
Kwooty supports file repairing (with use of par2 binary) and
archive extraction (with use of unrar binary) when nzb download
content has been achieved.
This package contains development files only.
%package plugins
Summary: Plugins for kwooty
Group: Applications/Internet
Requires: kwooty = %{version}-%{release}
%description plugins
Kwooty supports file repairing (with use of par2 binary) and
archive extraction (with use of unrar binary) when nzb download
content has been achieved.
This package contains some plugins for kwooty (only watchfolder
plugin for the moment).
%description
Kwooty supports file repairing (with use of par2 binary) and
archive extraction (with use of unrar binary) when nzb download
content has been achieved.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
popd
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
%check
ctest
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
xdg-icon-resource forceupdate --theme hicolor
%postun
/sbin/ldconfig
xdg-icon-resource forceupdate --theme hicolor
%files
%defattr(-,root,root,-)
%doc COPYING INSTALL README
%{_bindir}/kwooty
%{_libdir}/libkwootycore.so.0
%{_libdir}/libkwootycore.so.0.5.1
%{_datadir}/applications/kde4/kwooty.desktop
%{_datadir}/config.kcfg/kwooty_watchfoldersettings.kcfg
%{_datadir}/config.kcfg/kwootysettings.kcfg
%{_datadir}/icons/hicolor/16x16/apps/kwooty.png
%{_datadir}/icons/hicolor/22x22/apps/kwooty.png
%{_datadir}/icons/hicolor/32x32/apps/kwooty.png
%{_datadir}/icons/hicolor/64x64/apps/kwooty.png
%{_datadir}/kde4/apps/kwooty/kwooty.notifyrc
%{_datadir}/kde4/apps/kwooty/kwootyui.rc
%{_datadir}/kde4/services/kwooty_watchfolderplugin.desktop
%{_datadir}/kde4/services/kwooty_watchfoldersettings.desktop
%{_datadir}/kde4/servicetypes/kwootyplugin.desktop
%files devel
%defattr(-,root,root,-)
%{_libdir}/libkwootycore.so
%files plugins
%defattr(-,root,root,-)
%{_libdir}/kde4/kwooty_watchfolderplugin.so
%{_libdir}/kde4/kwooty_watchfoldersettings.so
%changelog
* Sat Sep 18 2010 Thomas Battiston (Tomz) <xxx.xxx@free.fr> 0.5.1-1.fc13.tomz
- Used "cmake_kde4" macro
- Removed useless commands ("cd build" for instance)
- Changed .own to .tomz
- Splitted package into 3 packages (main, plugins and devel)
* Fri Sep 17 2010 Thomas Battiston (Tomz) <xxx.xxx@free.fr> 0.5.1-0.own.fc13
- Initial RPM release
Est-ce que vous savez comment régler ce problème de "spurious-executable-perm" ? J'ai tenté de changer les permissions mais je n'y parviens pas. J'ai essayé quelquechose du style :%doc attr(644,root,root) COPYING
(attention cela peu ne pas être exact, je n'ai plus cette entrée dans le fichier). Mais là l'avertissement de rpmlint était mauvais droits sur le répertoire /usr/share/doc/kwooty-0.5.1.Enfin, pour la page de man, j'en ai fait une de base (c'est même plus un squelette de page de man 🙂), l'amont n'en proposant pas :
.TH KWOOTY 1 "September 18, 2010" "Version 1.0" "Kwooty Manual"
.SH NAME
\fBKwooty \- The chilled-out nzb binary downloader for KDE 4
.SH SYNOPSIS
.B kwooty
[\fB--help\fP] [\fB--help-kde\fP] [\fB--help-all\fP]
[\fB--author\fP] [\fB-v\fP \fI--version\fP] [\fB--license\fP]
.SH DESCRIPTION
\fBKwooty\fP is a friendly nzb usenet binary client for KDE 4.x.
Kwooty supports file repairing (with use of par2 binary) and
archive extraction (with use of unrar binary) when nzb download
content has been achieved.
.SH OPTIONS
Generic options:
.TP
\fB--help\fP
Show help about options
.TP
\fB--help-qt\fP
Show Qt specific options
.TP
\fB--help-kde\fP
Show KDE specific options
.TP
\fB--help-all\fP
Show all options
.TP
\fB--author\fP
Show author information
.TP
\fB-v, \fB--version\fP
Show version information
.TP
\fB--license\fP
Show license information
.SH LICENCE
Copyright (c) 2010 by Xavier Lefage.
.br
This software is released under the GNU General Public License. Please
read the COPYING file for more information.
.SH BUGS
Please report bugs to http://sourceforge.net/projects/kwooty
.SH AUTHOR
\fBXavier Lefage <xxx.xxx@gmail.com>\fP.
Le seul problème c'est que je sais pas quoi faire, patcher directement les sources pour l'inclure dans le CMakeLists.txt ? Ou triturer une obscure option/macro de rpm ? 🙂Et enfin dernière question, vous avez un "truc" pour éviter que les termes techniques dans %description remontent des avertissements ?
J'ai peut être oublié des infos, me prévenir le cas échéant, sachant que je risque de pas être très présent avant Lundi.
Merci d'avance,
Thomas.