]> git.pld-linux.org Git - packages/claws-mail.git/blob - claws-mail.spec
f3bfcaeaf26258157ac2ba36cb83999526c579d4
[packages/claws-mail.git] / claws-mail.spec
1 #
2 # Conditional build:
3 # _without_jconv        - without jconv support
4 # _without_gpg          - without gpg support
5 # _without_ssl          - without ssl support
6 # _without_ipv6         - without ipv6 support
7 # _without_ldap         - without ldap support
8 # _without_faces        - without compfaces support
9 # _without_dillo        - without dillo plugin (html browser)
10 # _without_clamav       - without clamav plugin
11 # _with_mathml          - with mathml plugin
12 # _without_trayicon     - without trayicon plugin
13 # _without_spamassassin - without spamassassin plugin
14 #
15
16 %define         _sname  sylpheed
17 %define         _iconver        20030712
18 Summary:        A bleeding edge branch of Sylpheed, a GTK+ based, lightweight, and fast e-mail client
19 Summary(pl):    Rozwojowa wersja Sylpheed z du¿± ilo¶ci± zmian oraz ulepszeñ
20 Name:           %{_sname}-claws
21 Version:        0.9.5
22 Release:        1
23 License:        GPL
24 Group:          X11/Applications/Networking
25 Source0:        http://dl.sourceforge.net/%{name}/%{_sname}-%{version}claws.tar.bz2
26 # Source0-md5:  66d72383222e4deb47300889d24f1044
27 Source1:        %{name}.desktop
28 Source2:        http://dl.sourceforge.net/sourceforge/%{name}/%{_sname}-iconset-%{_iconver}.tar.gz
29 # Source2-md5:  7da918c0ebe89cd6c9f8b65bc3e18377
30 BuildRequires:  autoconf
31 BuildRequires:  automake
32 %{!?_without_clamav:BuildRequires:      clamav-devel}
33 %{!?_without_faces:BuildRequires:       faces-devel}
34 BuildRequires:  gdk-pixbuf-devel >= 0.8
35 BuildRequires:  gettext-devel
36 %{!?_without_gpg:BuildRequires: gpgme-devel < 0.4}
37 BuildRequires:  gtk+-devel >= 1.2.6
38 BuildRequires:  imlib-devel
39 BuildRequires:  libltdl-devel
40 BuildRequires:  libtool
41 %{!?_without_ldap:BuildRequires:        openldap-devel}
42 %{!?_without_ssl:BuildRequires: openssl-devel >= 0.9.7}
43 BuildRequires:  aspell-devel >= 0.50
44 %{!?_without_jconv:BuildRequires:       libjconv-devel}
45 %{!?_without_faces:Requires:    faces}
46 %{!?_without_dillo:Requires:    dillo}
47 Obsoletes:      sylpheed
48 URL:            http://sylpheed-claws.sourceforge.net/
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 This program is an X based fast e-mail client which has features same
53 as orginal Sylpheed but with new/improved features. Some of new stuff
54 is really cool and useable.
55
56 %description -l pl
57 Szybki klient poczty o mo¿liwo¶ciach takich jak oryginalny Sylpheed
58 ale z nowymi/poprawionymi funkcjami. Niektóre dodatki s± naprawdê
59 ¶wietne i u¿yteczne.
60
61 %package plugins
62 Summary:        Special plugins for Sylpheed-Claws
63 Summary(pl):    Dodatkowe pluginy dla Sylpheed-Claws
64 Group:          X11/Applications/Networking
65 Requires:       %{name} = %{version}
66
67 %description plugins
68 This is collection of some usefull plugins for Sylpheed-claws.
69
70 %description plugins -l pl
71 Jest to zbiór kilku dodatkowych pluginów powiêkszaj±cych mo¿liwo¶ci Sylpheeda.
72
73 %package devel
74 Summary:        Headers from Sylpheed-Claws
75 Summary(pl):    Pliki nag³ówkowe programu Sylpheed-Claws
76 Group:          X11/Applications/Networking
77 Requires:       %{name} = %{version}
78
79 %description devel
80 Sylpheed-Claws development package.
81
82 %description devel -l pl
83 Pliki nag³ówkowe programu Sylpheed-Claws.
84
85 %package themes
86 Summary:        Themes for Sylpheed-Claws
87 Summary(pl):    Motywy dla programu Sylpheed-Claws
88 Group:          X11/Applications/Networking
89 Requires:       %{name} = %{version}
90
91 %description themes
92 Sylpheed-Claws themes package.
93
94 %description themes -l pl
95 Motywy dla programu Sylpheed-Claws.
96
97 %prep
98 %setup -q -n %{_sname}-%{version}claws -a1 -a2
99 mv %{_sname}-iconset-* themes
100 mv -f themes/README README.themes
101
102 %build
103 rm -f missing
104 %{__libtoolize}
105 %{__gettextize}
106 %{__aclocal} -I ac
107 %{__autoconf}
108 %{__autoheader}
109 %{__automake}
110 %configure \
111         %{!?_without_jconv:--enable-jconv} %{?_without_jconv:--disable-jconv} \
112         %{!?_without_gpg:--enable-gpgme} %{?_without_gpg:--disable-gpgme} \
113         %{!?_without_ldap:--enable-ldap} \
114         %{!?_without_ssl:--enable-openssl} \
115         %{!?_without_ipv6:--enable-ipv6 } \
116         %{?_without_faces:--disable-compfaces } \
117         %{!?_without_dillo:--enable-dillo-viewer-plugin } \
118         %{?_without_dillo:--disable-dillo-viewer-plugin } \
119         %{!?_without_clamav:--enable-clamav-plugin } \
120         %{?_without_clamav:--disable-clamav-plugin } \
121         %{?_with_mathml:--enable-mathml-viewer-plugin } \
122         %{!?_with_mathml:--disable-mathml-viewer-plugin } \
123         %{!?_without_trayicon:--enable-trayicon-plugin } \
124         %{?_without_trayicon:--disable-trayicon-plugin } \
125         %{!?_without_spamassassin:--enable-spamassassin-plugin } \
126         --enable-aspell \
127         --enable-gdk-pixbuf \
128         --enable-threads
129
130 %{__make}
131
132 %install
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Mail,%{_pixmapsdir}}
135
136 %{__make} install \
137         DESTDIR=$RPM_BUILD_ROOT
138
139 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
140 cp -a themes $RPM_BUILD_ROOT%{_datadir}/%{_sname}
141
142 install %{_sname}.png $RPM_BUILD_ROOT%{_pixmapsdir}
143
144 %find_lang %{_sname}
145
146 %clean
147 rm -rf $RPM_BUILD_ROOT
148
149 %files -f %{_sname}.lang
150 %defattr(644,root,root,755)
151 %doc AUTHORS ChangeLog NEWS README* TODO
152 %{_mandir}/man1/%{_sname}.1*
153 %attr(755,root,root) %{_bindir}/*
154 %dir %{_datadir}/%{_sname}
155 %dir %{_datadir}/%{_sname}/manual
156 %{_datadir}/%{_sname}/manual/en
157 %lang(de) %{_datadir}/%{_sname}/manual/de
158 %lang(es) %{_datadir}/%{_sname}/manual/es
159 %lang(fr) %{_datadir}/%{_sname}/manual/fr
160 %lang(ja) %{_datadir}/%{_sname}/manual/ja
161 %dir %{_datadir}/%{_sname}/faq
162 %{_datadir}/%{_sname}/faq/en
163 %lang(de) %{_datadir}/%{_sname}/faq/de
164 %lang(es) %{_datadir}/%{_sname}/faq/es
165 %lang(fr) %{_datadir}/%{_sname}/faq/fr
166 %lang(it) %{_datadir}/%{_sname}/faq/it
167 %{_datadir}/%{_sname}/themes
168 %{_applnkdir}/Network/Mail/%{name}.desktop
169 %{_pixmapsdir}/%{_sname}.png
170
171 %files plugins
172 %defattr(644,root,root,755)
173 %dir %{_libdir}/%{_sname}
174 %dir %{_libdir}/%{_sname}/plugins
175 %{_libdir}/%{_sname}/plugins/*so
176
177 %files devel
178 %defattr(644,root,root,755)
179 %dir %{_includedir}/
180 %dir %{_includedir}/%{_sname}/common
181 %dir %{_includedir}/%{_sname}/gtk
182 %{_includedir}/%{_sname}/*.h
183 %{_includedir}/%{_sname}/gtk/*.h
184 %{_includedir}/%{_sname}/common/*.h
185
186 %files themes
187 %defattr(644,root,root,755)
188 %dir %{_datadir}/
189 %dir %{_datadir}/%{_sname}/themes
190 %{_datadir}/%{_sname}/themes/*
This page took 0.064352 seconds and 2 git commands to generate.