]>
Commit | Line | Data |
---|---|---|
147daf49 | 1 | # |
2 | # TODO: | |
3 | # - review devel doc files | |
4 | # | |
6657dc05 | 5 | Summary: CONE - Console Newsreader and Emailer |
28d6cad6 | 6 | Summary(pl.UTF-8): CONE - tekstowy klient poczty i czytnik newsów |
f976440c | 7 | Name: cone |
73535d31 | 8 | Version: 0.74 |
15183893 | 9 | Release: 1 |
f976440c AA |
10 | License: GPL |
11 | Group: Applications/Mail | |
509212ad | 12 | Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2 |
73535d31 | 13 | # Source0-md5: 59ec5a486d5a5c358fc0f9531dbe2c02 |
ad21e748 | 14 | Patch0: %{name}-maildir.patch |
509212ad | 15 | URL: http://www.courier-mta.org/cone/ |
f976440c AA |
16 | BuildRequires: aspell-devel |
17 | BuildRequires: autoconf | |
6657dc05 | 18 | BuildRequires: automake |
f976440c | 19 | BuildRequires: fam-devel |
f976440c AA |
20 | BuildRequires: libstdc++-devel |
21 | BuildRequires: libtool | |
22 | BuildRequires: libxml2-devel | |
08ede1b6 | 23 | BuildRequires: ncurses-devel |
f976440c | 24 | BuildRequires: openssl-devel |
e6e42bbf | 25 | BuildRequires: openssl-tools-perl |
509212ad | 26 | BuildRequires: perl-base |
48814c1c | 27 | BuildRequires: sysconftool |
f976440c AA |
28 | BuildRequires: zlib-devel |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
509212ad JB |
32 | CONE is a simple, text-based E-mail reader and writer, and a simple |
33 | newsreader. | |
f976440c | 34 | |
8628d5b4 JR |
35 | %description -l pl.UTF-8 |
36 | CONE jest prostym, tekstowym klientem pocztowym, a także prostym | |
37 | czytnikiem newsów. | |
f976440c | 38 | |
509212ad | 39 | %package devel |
f976440c | 40 | Summary: Header files for LibMAIL |
28d6cad6 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe LibMAIL |
509212ad | 42 | Group: Development/Languages |
f976440c AA |
43 | Requires: %{name} = %{version}-%{release} |
44 | ||
45 | %description devel | |
509212ad | 46 | This package includes the header files for developing applications |
e6205d14 | 47 | using LibMAIL - a high level, C++ OO library for mail clients. |
f976440c | 48 | |
8628d5b4 JR |
49 | %description devel -l pl.UTF-8 |
50 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji z użyciem | |
509212ad | 51 | LibMAIL - wysokopoziomowej, zorientowanej obiektowo biblioteki C++ dla |
8628d5b4 | 52 | klientów pocztowych. |
f976440c | 53 | |
509212ad JB |
54 | %package static |
55 | Summary: Static LibMAIL library | |
28d6cad6 | 56 | Summary(pl.UTF-8): Biblioteka statyczna LibMAIL |
f976440c | 57 | Group: Development/Libraries |
509212ad | 58 | Requires: %{name}-devel = %{version}-%{release} |
f976440c AA |
59 | |
60 | %description static | |
509212ad | 61 | This package contains static library for developing application using |
f976440c AA |
62 | LibMAIL - a high level, C++ OO library for mail clients. |
63 | ||
8628d5b4 JR |
64 | %description static -l pl.UTF-8 |
65 | Ten pakiet zawiera statyczną bibliotekę do tworzenia aplikacji z | |
66 | użyciem LibMAIL - wysokopoziomowej, zorientowanej obiektowo biblioteki | |
67 | C++ dla klientów pocztowych. | |
f976440c | 68 | |
6657dc05 AA |
69 | %package -n leaf |
70 | Summary: Console text file editor | |
28d6cad6 | 71 | Summary(pl.UTF-8): Konsolowy edytor plików tekstowych |
6657dc05 AA |
72 | Group: Applications/Editors |
73 | ||
74 | %description -n leaf | |
b78eacde ER |
75 | Leaf is a simple console text file editor, with paragraph |
76 | word-wrapping and spell checking. Leaf is based on the text editor in | |
77 | the Cone mail reader and composer. | |
6657dc05 | 78 | |
8628d5b4 JR |
79 | %description -n leaf -l pl.UTF-8 |
80 | Leaf jest prostym konsolowym edytorem plików tekstowych. Jest oparty | |
81 | na edytorze używanym w czytniku poczty Cone. | |
6657dc05 | 82 | |
f976440c AA |
83 | %prep |
84 | %setup -q | |
ad21e748 | 85 | %patch0 -p1 |
f976440c AA |
86 | |
87 | %build | |
7b28f0c3 | 88 | %{__libtoolize} |
6657dc05 AA |
89 | %{__aclocal} |
90 | %{__autoconf} | |
91 | %{__automake} | |
92 | ||
b41719b0 AA |
93 | cd cone |
94 | %{__aclocal} | |
95 | %{__autoconf} | |
96 | %{__automake} | |
97 | ||
98 | cd ../libmail | |
99 | %{__aclocal} | |
100 | %{__autoconf} | |
101 | %{__automake} | |
102 | ||
103 | cd ../maildir | |
104 | %{__aclocal} | |
105 | %{__autoconf} | |
106 | %{__automake} | |
107 | cd .. | |
108 | ||
e6205d14 | 109 | CXXFLAGS="%{rpmcflags} -I%{_includedir}/ncurses" |
509212ad | 110 | PATH=$PATH:/usr/%{_lib}/openssl; export PATH |
f976440c | 111 | %configure \ |
6657dc05 AA |
112 | --with-devel \ |
113 | SENDMAIL=%{_sbindir}/sendmail | |
f976440c AA |
114 | |
115 | %{__make} | |
116 | ||
117 | %{__make} check | |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %{__make} install \ | |
123 | DESTDIR=$RPM_BUILD_ROOT | |
124 | ||
125 | # start cone directly | |
509212ad | 126 | mv -f $RPM_BUILD_ROOT%{_libdir}/cone $RPM_BUILD_ROOT%{_bindir} |
f976440c AA |
127 | mv -f $RPM_BUILD_ROOT%{_sysconfdir}/cone.dist $RPM_BUILD_ROOT%{_sysconfdir}/cone |
128 | ||
129 | # move devel docs from datadir | |
130 | mkdir devel | |
147daf49 | 131 | for file in account-* address.html e*.html folder-* \ |
02559e28 | 132 | header* libmail*.html mail-* mimestruct* misc* native* synchronous.html; do |
f976440c AA |
133 | mv -f $RPM_BUILD_ROOT%{_datadir}/cone/$file devel |
134 | done | |
135 | ||
6657dc05 AA |
136 | # leaf doc |
137 | mv -f $RPM_BUILD_ROOT%{_datadir}/cone/leaf.html . | |
138 | ||
f976440c AA |
139 | # rest *.html will go to primary docs |
140 | mkdir docs | |
141 | mv -f $RPM_BUILD_ROOT%{_datadir}/cone/*.html docs | |
02559e28 | 142 | mv -f $RPM_BUILD_ROOT%{_datadir}/cone/manpage.css docs |
f976440c | 143 | |
f976440c AA |
144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %files | |
148 | %defattr(644,root,root,755) | |
5f3b2ed0 | 149 | %doc AUTHORS ChangeLog README NEWS docs/ |
b78eacde | 150 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cone |
509212ad | 151 | %attr(755,root,root) %{_bindir}/cone |
509212ad | 152 | %attr(755,root,root) %{_bindir}/mailtool |
f976440c | 153 | %{_datadir}/cone |
6657dc05 AA |
154 | %{_mandir}/man1/cone* |
155 | %{_mandir}/man1/mailtool* | |
f976440c AA |
156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
6657dc05 | 159 | %doc devel/* |
b41719b0 | 160 | %{_libdir}/libmail.la |
f976440c | 161 | %{_includedir}/libmail |
02559e28 | 162 | %{_mandir}/man3/* |
f976440c AA |
163 | |
164 | %files static | |
165 | %defattr(644,root,root,755) | |
166 | %{_libdir}/libmail.a | |
6657dc05 AA |
167 | |
168 | %files -n leaf | |
169 | %defattr(644,root,root,755) | |
170 | %doc leaf.html | |
171 | %attr(755,root,root) %{_bindir}/leaf | |
172 | %{_mandir}/man1/leaf* |