]> git.pld-linux.org Git - packages/cone.git/blob - cone.spec
- new package with leaf editor; ac, am
[packages/cone.git] / cone.spec
1 #
2 # TODO:
3 #       - test and rel. 1
4 #
5 Summary:        CONE - Console Newsreader and Emailer
6 Summary(pl):    CONE - tekstowy klient poczty i czytnik newsów
7 Name:           cone
8 Version:        0.60
9 Release:        0.5
10 License:        GPL
11 Group:          Applications/Mail
12 Source0:        http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
13 # Source0-md5:  b2ae0cb3808e5485d566474c8bf251f9
14 URL:            http://www.courier-mta.org/cone/
15 BuildRequires:  aspell-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  fam-devel
19 BuildRequires:  ncurses-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libtool
22 BuildRequires:  libxml2-devel
23 BuildRequires:  openssl-devel
24 BuildRequires:  openssl-tools-perl
25 BuildRequires:  perl-base
26 BuildRequires:  zlib-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 CONE is a simple, text-based E-mail reader and writer, and a simple
31 newsreader.
32
33 %description -l pl
34 CONE jest prostym, tekstowym klientem pocztowym, a tak¿e prostym
35 czytnikiem newsów.
36
37 %package devel
38 Summary:        Header files for LibMAIL
39 Summary(pl):    Pliki nag³ówkowe LibMAIL
40 Group:          Development/Languages
41 Requires:       %{name} = %{version}-%{release}
42
43 %description devel
44 This package includes the header files for developing applications
45 using LibMAIL - a high level, C++ OO library for mail clients.
46
47 %description devel -l pl
48 Ten pakiet zawiera pliki nag³ówkowe do tworzenia aplikacji z u¿yciem
49 LibMAIL - wysokopoziomowej, zorientowanej obiektowo biblioteki C++ dla
50 klientów pocztowych.
51
52 %package static
53 Summary:        Static LibMAIL library
54 Summary(pl):    Biblioteka statyczna LibMAIL
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 This package contains static library for developing application using
60 LibMAIL - a high level, C++ OO library for mail clients.
61
62 %description static -l pl
63 Ten pakiet zawiera statyczn± bibliotekê do tworzenia aplikacji z
64 u¿yciem LibMAIL - wysokopoziomowej, zorientowanej obiektowo biblioteki
65 C++ dla klientów pocztowych.
66
67 %package -n leaf
68 Summary:        Console text file editor
69 Summary(pl):    Konsolowy edytor plików tekstowych
70 Group:          Applications/Editors
71
72 %description -n leaf
73 Leaf is a simple console text file editor, with paragraph word-wrapping
74 and spell checking. Leaf is based on the text editor in the Cone mail
75 reader and composer.
76
77 %description -n leal -l pl
78 Leaf jest prostym konsolowym edytorem plików tekstowych. Jest oparty na
79 edytorze u¿ywanym w czytniku poczty Cone.
80
81 %prep
82 %setup -q
83
84 %build
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 mail-* mimestruct* native* r11* r8* 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
123 # install missing files
124 install libmail/mailtool $RPM_BUILD_ROOT%{_bindir}/mailtool
125 install help.txt $RPM_BUILD_ROOT%{_datadir}/cone
126
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %files
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog README NEWS docs/
133 %config(noreplace)  %verify(not size mtime md5) %{_sysconfdir}/cone
134 %attr(755,root,root) %{_bindir}/cone
135 %attr(755,root,root) %{_bindir}/mailtool
136 %{_datadir}/cone
137 %{_mandir}/man1/cone*
138 %{_mandir}/man1/mailtool*
139
140 %files devel
141 %defattr(644,root,root,755)
142 %doc devel/*
143 %{_includedir}/libmail
144 %{_mandir}/man[35]/*
145
146 %files static
147 %defattr(644,root,root,755)
148 %{_libdir}/libmail.a
149
150 %files -n leaf
151 %defattr(644,root,root,755)
152 %doc leaf.html
153 %attr(755,root,root) %{_bindir}/leaf
154 %{_mandir}/man1/leaf*
This page took 0.048804 seconds and 4 git commands to generate.