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