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