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