%define rel 1
%define prefix /usr
-Summary: a GTK+ based, lightweight, and fast e-mail client
-Name: sylpheed
-Version: %{ver}
-Release: %{rel}
-Source: http://sylpheed.good-day.net/sylpheed/%{name}-%{ver}.tar.gz
-Copyright: GPL
-URL: http://sylpheed.good-day.net/
-Requires: gtk+ >= 1.2.6
-Group: Applications/Internet
-Packager: Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-Buildroot: /var/tmp/%{name}-root
+Name: sylpheed
+Version: %{ver}
+Release: %{rel}
+Source: %{name}-%{ver}.tar.gz
+Copyright: GPL
+URL: http://sylpheed-claws.sourceforge.net/
+Summary: a GTK+ based, lightweight, and fast e-mail client
+Requires: gtk+ >= 1.2.6 gpgme
+Group: Productivity/Networking/Email/Clients
+Packager: Jens Oberender <j.obi@troja.net>
+Buildroot: /var/tmp/%{name}-root
-%changelog
-* Tue Jan 9 2001 Yoichi Imai <yoichi@silver-forest.com>
-- edited for spec.in
-
-* Tue Jan 2 2001 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.51
-
-* Mon Jan 1 2001 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.50
-
-* Mon Dec 18 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.9
-
-* Thu Dec 7 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.8
-
-* Fri Dec 1 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.7, and updated %description
-
-* Mon Nov 27 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.6
-
-* Wed Nov 22 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.5
-
-* Tue Nov 7 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.4
-
-* Wed Nov 1 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.3
-
-* Thu Oct 14 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.4.2
-
-* 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 Sep 16 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.29
-
-* Tue Aug 29 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.28
-
-* Fri Aug 25 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.27
-
-* Sat Aug 19 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.26, and modified URL
-
-* Thu Aug 10 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.25
-
-* Fri Aug 4 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.24
-
-* Sat Jul 24 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.23
-
-* Sat Jul 20 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.22
-
-* Sun Jul 4 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.21, and modified Summary
-
-* Thu Jun 29 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.20
-
-* Mon Jun 26 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.19
-
-* Tue Jun 17 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.18
-
-* Tue Jun 15 2000 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
-- updated to 0.3.17
-
-* 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
-
-* Sun Jun 4 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.13
-
-* Sat Jun 3 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.12
-
-* Fri Jun 2 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.11
-
-* Sat May 20 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.10
-
-* Sat May 20 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.9
-
-* Sun May 14 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.8
-
-* Thu May 11 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.7a
-
-* Thu May 4 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.6a
-
-* Sun Apr 30 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.5
-
-* Sun Apr 30 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.4
-* Sat Apr 29 2000 Yoichi Imai <yoichi@silver-forest.com>
-- gnome-menu and requires header change
-
-* Mon Apr 24 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.3
-
-* Sat Apr 15 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.2
-
-* Tue Apr 14 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.3.1
-
-* Tue Mar 14 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update to 0.2.9
-
-* Tue Mar 14 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.7
-
-* Thu Feb 24 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.4
-
-* Tue Feb 22 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.3
-
-* Sun Feb 20 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.2
-
-* Sat Feb 19 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.1
-
-* Sat Feb 12 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.0pre8
-
-* Sat Feb 12 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.0pre7
-
-* Wed Feb 5 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.0pre3
-
-* Wed Feb 5 2000 Yoichi Imai <yoichi@silver-forest.com>
-- append "TODO.jp"
-
-* Wed Feb 5 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.2.0pre1
-
-* Wed Feb 4 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.23
-
-* Wed Feb 2 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.21
-
-* Tue Feb 1 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.20
-
-* Tue Jan 25 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.19
-
-* Sun Jan 23 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.17
-
-* Sun Jan 16 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.15
-
-* Sat Jan 15 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.14
-
-* Fri Jan 14 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.13
-
-* Thu Jan 13 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.12
-
-* Wed Jan 12 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.11
-
-* Tue Jan 11 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.10
-
-* Mon Jan 10 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.8
-
-* Sat Jan 8 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.7
-
-* Fri Jan 7 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.6
+%description
+Sylpheed is an e-mail client and news reader based on GTK+ running
+ on the X Window System that aims for * Quick response
-* Thu Jan 6 2000 Yoichi Imai <yoichi@silver-forest.com>
-- update for 0.1.5
+* Graceful and sophisticated interface
-* Sat Jan 1 2000 Yoichi Imai <yoichi@silver-forest.com>
-- first release for version 0.1.0
+* Easy configuration, intuitive operation
-%description
-Sylpheed is an e-mail client (and news reader) based on GTK+, running on
-X Window System, and aiming for
- * Quick response
- * Graceful, and sophisticated 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.
+* 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. 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
+The messages are managed by MH format and you can use it together with
+another mailer based on MH format (like Mew). You can also utilize
+fetchmail, procmail, and external programs on receiving (like inc or
imget).
+Authors:
+--------
+ Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
+ and others, have a look in AUTHORS
+
%prep
rm -rf $RPM_BUILD_ROOT
%setup
+
%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
+CFLAGS="$RPM_OPT_FLAGS" ./configure \
+ --mandir=%{_mandir} \
+ --prefix=%{prefix} \
+ --infodir=%{_infodir} \
+ --sysconfdir=%{_sysconfdir} \
+ --enable-ldap \
+ --enable-ipv6 \
+ --enable-gpgme \
+ --enable-openssl \
+ --enable-jpilot \
+ --enable-aspell
make
%install
-make prefix=${RPM_BUILD_ROOT}%{prefix} install
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
+make DESTDIR=$RPM_BUILD_ROOT install
+# Tools
+cp -r tools $RPM_BUILD_ROOT%{prefix}/share/sylpheed
+rm $RPM_BUILD_ROOT%{prefix}/share/sylpheed/tools/Makefile*
+# fixing permissions
+pushd $RPM_BUILD_ROOT%{prefix}/share/sylpheed
+find . -name "*.xpm" -o -name ".directory" | xargs chmod 644
+popd
+
%clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
-%doc COPYING ChangeLog ChangeLog.jp README README.jp INSTALL INSTALL.jp TODO.jp
%{prefix}/bin/sylpheed
-%{prefix}/share/locale/*/LC_MESSAGES/sylpheed.mo
-%{prefix}/share/sylpheed/manual/*/*
+%{prefix}/%{_lib}/sylpheed
+%{prefix}/share/sylpheed
+%_mandir/man1/sylpheed.1.gz
+%doc ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog.claws ChangeLog.jp README README.claws README.jp INSTALL TODO TODO.jp
+
+%changelog
+* Thu Jul 1 2003 Jens Oberender <j.obi@troja.net>
+- updated the filesection
+- moved tools to /usr/share/sylpheed
+- no windowmanager specific icons and desktop entries
+
+* Sun Nov 10 2002 Jens Oberender <j.obi@troja.net>
+- changed spec.in for claws
+- shortend the changelog
+
+* Tue Jan 9 2001 Yoichi Imai <yoichi@silver-forest.com>
+- edited for spec.in
+
+* Tue Jan 2 2001 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
+- updated to 0.4.51