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