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