| 1 |
1 |
%define ver @VERSION@
|
| 2 |
2 |
%define rel %(if [ "${SYLPHEED_REL_DIST}" == "" ] ; then echo "1"; else echo "${SYLPHEED_REL_DIST}"; fi)
|
| 3 |
|
%define prefix /usr
|
| 4 |
3 |
|
| 5 |
4 |
Summary: a GTK+ based, lightweight, and fast e-mail client
|
| 6 |
5 |
Name: sylpheed
|
| 7 |
6 |
Version: %{ver}
|
| 8 |
|
Release: %{rel}
|
|
7 |
Release: %{rel}%{?dist}
|
| 9 |
8 |
Source: http://sylpheed.sraoss.jp/sylpheed/%{name}-%{ver}.tar.gz
|
| 10 |
9 |
License: GPL
|
| 11 |
10 |
URL: http://sylpheed.sraoss.jp/
|
| ... | ... | |
| 15 |
14 |
Buildroot: %{_tmppath}/%{name}-root
|
| 16 |
15 |
|
| 17 |
16 |
%changelog
|
|
17 |
* Thu Sep 26 2012 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
|
|
18 |
- added sylpheed-plugins package.
|
|
19 |
- added dist to Release.
|
|
20 |
- fixed plugindir.
|
|
21 |
|
| 18 |
22 |
* Thu Sep 13 2012 Hiroyuki Yamamoto <hiro-y@kcn.ne.jp>
|
| 19 |
23 |
- fixed build on x86_64 platform.
|
| 20 |
24 |
|
| ... | ... | |
| 100 |
104 |
fetchmail or/and procmail, and external programs on receiving (like inc or
|
| 101 |
105 |
imget).
|
| 102 |
106 |
|
|
107 |
%package plugins
|
|
108 |
Summary: standard plug-ins for Sylpheed
|
|
109 |
Group: Applications/Internet
|
|
110 |
Requires: %{name} = %{version}-%{release}
|
|
111 |
|
|
112 |
%description plugins
|
|
113 |
The %{name}-plugins package contains standard plug-ins for Sylpheed.
|
|
114 |
|
| 103 |
115 |
%prep
|
| 104 |
|
rm -rf $RPM_BUILD_ROOT
|
|
116 |
%setup -q
|
| 105 |
117 |
|
| 106 |
|
%setup
|
| 107 |
118 |
%build
|
| 108 |
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --libdir=%{_libdir} ${SYLPHEED_CONFIGURE_FLAGS}
|
| 109 |
|
make
|
|
119 |
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
|
|
120 |
%{configure} --with-plugindir=%{_libdir}/sylpheed/plugins ${SYLPHEED_CONFIGURE_FLAGS}
|
|
121 |
%{__make}
|
| 110 |
122 |
|
| 111 |
123 |
%install
|
| 112 |
|
make prefix=${RPM_BUILD_ROOT}%{prefix} libdir=${RPM_BUILD_ROOT}%{_libdir} install
|
|
124 |
%makeinstall
|
| 113 |
125 |
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
|
| 114 |
126 |
install -m 644 *.png ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
|
| 115 |
127 |
|
|
128 |
(cd plugin/attachment_tool && %{__make} prefix=${RPM_BUILD_ROOT}%{prefix} libdir=${RPM_BUILD_ROOT}%{_libdir}/sylpheed/plugins install-plugin)
|
|
129 |
cp plugin/attachment_tool/README README.attachment_tool
|
|
130 |
|
| 116 |
131 |
%clean
|
| 117 |
132 |
rm -rf ${RPM_BUILD_ROOT}
|
| 118 |
133 |
|
|
134 |
%post
|
|
135 |
/sbin/ldconfig
|
|
136 |
|
|
137 |
%postun
|
|
138 |
/sbin/ldconfig
|
|
139 |
|
| 119 |
140 |
%files
|
| 120 |
141 |
%defattr(-,root,root)
|
| 121 |
142 |
%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
|
| 122 |
143 |
%{_bindir}/%{name}
|
| 123 |
144 |
%{_includedir}/%{name}
|
| 124 |
|
%{_libdir}/*
|
|
145 |
%{_libdir}/*.la
|
|
146 |
%{_libdir}/*.so
|
|
147 |
%{_libdir}/*.so.*
|
| 125 |
148 |
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
|
| 126 |
149 |
%{_datadir}/%{name}/faq/*/*
|
| 127 |
150 |
%{_datadir}/%{name}/manual/*/*
|
| 128 |
151 |
%{_datadir}/pixmaps/*.png
|
| 129 |
152 |
%{_datadir}/applications/sylpheed.desktop
|
|
153 |
|
|
154 |
%files plugins
|
|
155 |
%defattr(-,root,root)
|
|
156 |
%doc README.attachment_tool
|
|
157 |
%{_libdir}/sylpheed/plugins/*
|