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