Bonsoir
j'ai su compiler mon premier rpm. Pas de problème avec rpmbuild, par contre à la vérification avec rpmlint j'ai le warning suivant :
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/xml.h
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/procmime.h
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/socket.h
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/base64.h
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/stringtable.h
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/displayheader.h
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/pop.h
sylpheed.x86_64: W: devel-file-in-non-devel-package /usr/include/sylpheed/sylph/folder.h
j'ai cherché sur le net et la doc mais sans succès.
Ce qui m'étonne c'est le sous dossier
sylph ? AUriez vous des pistes ? D'avance merci !
Je mets mon SPEC ci dessous
%define ver 3.0.3
%define rel %(if [ "${SYLPHEED_REL_DIST}" == "" ] ; then echo "1"; else echo "${SYLPHEED_REL_DIST}"; fi)
%define prefix /usr
%global desktopvendor redhat
%global tarversion 3.0.3
Summary: a GTK+ based, lightweight, and fast e-mail client
Name: sylpheed
Version: %{ver}
Release: %{rel}
License: GPLv2+
URL: http://sylpheed.sraoss.jp/
Requires: gtk2 >= 2.4.0
Group: Applications/Internet
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
BuildRequires: gtk2-devel openssl-devel
BuildRequires: desktop-file-utils pkgconfig gettext xdg-utils
%{!?_without_gpgme:BuildRequires: gpgme-devel}
%{!?_without_compface:BuildRequires: compface-devel}
%{!?_without_ldap:BuildRequires: openldap-devel}
%{?_with_oniguruma:BuildRequires: oniguruma-devel}
%{?_with_jpilot:BuildRequires: jpilot-devel}
BuildRequires: gtkspell-devel
%if 0%{?fedora} > 8
BuildRequires: enchant-devel
%endif
Source0: http://sylpheed.sraoss.jp/sylpheed/%{name}-%{ver}.tar.bz2
Source1: sylpheed.1
%package devel
Summary: Development files for sylpheed
Group: Development/Libraries
Requires: sylpheed = %{version}-%{release}
%description devel
This program is an X based fast email client which has features like:
o user-friendly and intuitive interface
o integrated NetNews client (partially implemented)
o ability of keyboard-only operation
o Mew/Wanderlust-like key bind
o multipart MIME
o unlimited multiple account handling
o message queueing
o assortment function
o XML-based address book
See /usr/share/doc/sylpheed*/README for more information.
this package contains development files only
%changelog
* Sat Sep 11 2010 Biot Cyrille <cyrille@cbiot.fr>
- rpm package for sylpheed 3.0.3
- under Blag119K - 2.6.32.21-libre.166.fc12.x86_64
* Tue Jun 29 2010 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- version 3.0.3.
* Tue Aug 4 2009 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- fixed %files section.
* Tue May 20 2008 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated %files section.
* Thu Feb 10 2006 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- changed Requires: package name from gtk+ to gtk2.
* Tue Jun 7 2005 Paul Dickson <paul@permanentmail.com>
- replaced "Copyright:" with "License:"
- if environmental variable SYLPHEED_REL_DIST is set, assign that to rel (1.FC4,2.FC4, etc)
* Thu Feb 3 2005 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- modified for the latest version
* Fri Aug 1 2003 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- omitted %changelog
- modified %description
* Thu Jul 31 2003 Andre Costa <acosta@ar.microlink.com.br>
- used more extensively RPM's builtin vars
* Tue Feb 4 2003 Andre Costa <acosta@ar.microlink.com.br>
- implemented SYLPHEED_CONFIGURE_FLAGS in %build phase
- BuildRoot: is now more portable
- included sylpheed's pixmaps into the package
* Tue Jan 9 2001 Yoichi Imai <yoichi@silver-forest.com>
- edited for spec.in
* Fri Dec 1 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated to 0.4.7, and updated %description
* Thu Sep 28 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated to 0.4.1, and modified %files
* Wed Sep 27 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated to 0.4.0, and modified %description
* Tue Sep 26 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated to 0.3.99, and modified %files
* Sat Aug 19 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated to 0.3.26, and modified URL
* Sun Jul 4 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated to 0.3.21, and modified Summary
* Sun Jun 11 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
- updated to 0.3.15 and modified description and doc
* Sun Jun 4 2000 Yoichi Imai <yoichi@silver-forest.com>
- some change
* Sat Apr 29 2000 Yoichi Imai <yoichi@silver-forest.com>
- gnome-menu and requires header change
* Wed Feb 5 2000 Yoichi Imai <yoichi@silver-forest.com>
- append "TODO.jp"
* Sat Jan 1 2000 Yoichi Imai <yoichi@silver-forest.com>
- first release for version 0.1.0
%description
Sylpheed is an e-mail client (and news reader) based on GTK+, running on
X Window System, and aiming for
* Quick response
* Simple, graceful, and well-polished interface
* Easy configuration
* Intuitive operation
* Abundant features
The appearance and interface are similar to some popular e-mail clients for
Windows, such as Outlook Express, Becky!, and Datula. The interface is also
designed to emulate the mailers on Emacsen, and almost all commands are
accessible with the keyboard.
The messages are managed by MH format, and you'll be able to use it together
with another mailer based on MH format (like Mew). You can also utilize
fetchmail or/and procmail, and external programs on receiving (like inc or
imget).
%prep
%setup
%build
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} ${SYLPHEED_CONFIGURE_FLAGS}
#make
%configure --enable-ssl %{!?_without_gpgme:--enable-gpgme} \
%{?_without_compface:--disable-compface} \
%{!?_without_ldap:--enable-ldap} \
%{?_with_oniguruma:--enable-oniguruma} \
# Compile with deprecated OpenLDAP API to fix segfaults on 64-bit.
echo "#define LDAP_DEPRECATED 1" >> config.h
# Fedora 9 and newer use the GtkSpell+Enchant feature:
# http://fedoraproject.org/wiki/Releases/FeatureDictionary
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%if 0%{?fedora} > 8
echo "#define USE_ENCHANT 1" >> config.h
%endif
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
install -p -m 644 sylpheed-64x64.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/sylpheed.png
desktop-file-install --vendor %{desktopvendor} \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--remove-category Application \
--add-category Network \
--delete-original \
${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB ChangeLog ChangeLog.ja ChangeLog-1.0 ChangeLog-1.0.ja README README.es README.ja INSTALL INSTALL.ja NEWS NEWS-1.0 NEWS-2.0 LICENSE TODO TODO.ja
%{_bindir}/%{name}
%{_includedir}/%{name}
%{_libdir}/*
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_datadir}/%{name}/faq/*/*
%{_datadir}/%{name}/manual/*/*
%{_datadir}/pixmaps/*.png
%{_datadir}/applications/%{desktopvendor}-%{name}.desktop
%{_mandir}/man1/*
%files devel
%defattr(-,root,root,-)
%doc PLUGIN.txt PLUGIN.ja.txt
%{_includedir}/sylpheed/
%{_libdir}/*.so