]>
Commit | Line | Data |
---|---|---|
7275da8f | 1 | %bcond_without xemacs # Build without XEmacs support |
2 | %bcond_without emacs # Build without GNU Emacs support | |
3 | %bcond_without pdf_doc # Don't build PDF documentation | |
38e3dd60 | 4 | %define _the_name gnus |
db17961e | 5 | Summary: An Emacs/XEmacs newsreader and mail client |
48d07bbc | 6 | Summary(pl.UTF-8): Czytnik grup dyskusyjnych i klient poczty dla Emacsa/XEmacsa |
db17961e | 7 | Name: emacsen-gnus-pkg |
38e3dd60 | 8 | Version: 5.10.6 |
679a3e2b | 9 | Release: 5 |
db17961e | 10 | License: GPL |
11 | Group: Applications/Networking | |
38e3dd60 | 12 | Source0: http://www.gnus.org/dist/%{_the_name}-%{version}.tar.gz |
13 | # Source0-md5: 8b510e5d2530f92af371eb64f828b257 | |
db17961e | 14 | Patch0: %{name}-destdir.patch |
15 | URL: http://www.gnus.org/ | |
db17961e | 16 | %if %{with pdf_doc} |
7275da8f | 17 | BuildRequires: texinfo-texi2dvi |
18 | BuildRequires: tetex-latex | |
19 | BuildRequires: tetex-makeindex | |
20 | BuildRequires: tetex-dvips | |
21 | BuildRequires: tetex-format-pdftex | |
db17961e | 22 | %endif |
db17961e | 23 | %if %{with emacs} |
24 | BuildRequires: emacs | |
25 | %endif | |
db17961e | 26 | %if %{with xemacs} |
27 | BuildRequires: xemacs | |
7275da8f | 28 | BuildRequires: xemacs-mail-lib-pkg |
29 | BuildRequires: xemacs-eterm-pkg | |
30 | BuildRequires: xemacs-sh-script-pkg | |
31 | BuildRequires: xemacs-os-utils-pkg | |
32 | BuildRequires: xemacs-dired-pkg | |
33 | BuildRequires: xemacs-mh-e-pkg | |
34 | BuildRequires: xemacs-mailcrypt-pkg | |
35 | BuildRequires: xemacs-fsf-compat-pkg | |
36 | BuildRequires: xemacs-texinfo-pkg | |
db17961e | 37 | %endif |
7275da8f | 38 | Requires: gnus-elisp-code = %{version}-%{release} |
13333e16 | 39 | Requires: starttls |
7275da8f | 40 | Conflicts: xemacs-gnus-pkg |
41 | BuildArch: noarch | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
db17961e | 43 | |
44 | %description | |
45 | You can read news (and mail) from within GNU Emacs or XEmacs by using | |
46 | Gnus. The news can be gotten by any nefarious means you can think of | |
47 | -- NNTP, local spool or your mbox file. | |
48 | ||
49 | This package contains files common to both GNU Emacs and XEmacs. | |
50 | ||
9010b07e JR |
51 | %description -l pl.UTF-8 |
52 | Dzięki pakietowi Gnus możesz czytać newsy i pocztę z użyciem GNU | |
53 | Emacsa lub XEmacsa. Gnus może pobierać listy z najróżniejszych źródeł, | |
54 | w tym z serwera NNTP, lokalnego spoola jak i plików mbox. | |
db17961e | 55 | |
9010b07e | 56 | Ten pakiet zawiera pliki Gnusa wspólne dla GNU Emacsa i XEmacsa. |
db17961e | 57 | |
db17961e | 58 | %package emacs |
59 | Summary: Gnus elisp files for GNU Emacs | |
48d07bbc | 60 | Summary(pl.UTF-8): Kod elisp Gnusa dla GNU Emacsa |
db17961e | 61 | Group: Applications/Networking |
7275da8f | 62 | Requires: %{name} = %{version}-%{release} |
7275da8f | 63 | Provides: gnus-elisp-code = %{version}-%{release} |
679a3e2b | 64 | %requires_eq emacs |
db17961e | 65 | |
66 | %description emacs | |
67 | This package contains compiled elisp files needed to run Gnus on GNU Emacs | |
68 | ||
9010b07e | 69 | %description emacs -l pl.UTF-8 |
db17961e | 70 | Pakiet zawiera skompilowane pliki elisp z kodem Gnusa dla GNU Emacsa. |
71 | ||
72 | %package emacs-el | |
73 | Summary: Gnus elisp source files for GNU Emacs | |
48d07bbc | 74 | Summary(pl.UTF-8): Kod źródłowy elisp Gnusa dla GNU Emacsa |
db17961e | 75 | Group: Applications/Networking |
7275da8f | 76 | Requires: %{name}-emacs = %{version}-%{release} |
db17961e | 77 | |
78 | %description emacs-el | |
79 | This package contains source elisp files needed to run Gnus on GNU Emacs | |
80 | ||
9010b07e JR |
81 | %description emacs-el -l pl.UTF-8 |
82 | Pakiet zawiera źródłowe pliki elisp z kodem Gnusa dla GNU Emacsa. | |
db17961e | 83 | |
db17961e | 84 | %package xemacs |
85 | Summary: Gnus elisp files for XEmacs | |
48d07bbc | 86 | Summary(pl.UTF-8): Kod elisp Gnusa dla XEmacsa |
db17961e | 87 | Group: Applications/Networking |
7275da8f | 88 | Requires: %{name} = %{version}-%{release} |
7275da8f | 89 | Requires: xemacs-mail-lib-pkg |
90 | Requires: xemacs-eterm-pkg | |
91 | Requires: xemacs-sh-script-pkg | |
92 | Requires: xemacs-os-utils-pkg | |
93 | Requires: xemacs-dired-pkg | |
94 | Requires: xemacs-mh-e-pkg | |
95 | Requires: xemacs-mailcrypt-pkg | |
96 | Requires: xemacs-fsf-compat-pkg | |
97 | Provides: gnus-elisp-code = %{version}-%{release} | |
679a3e2b | 98 | %requires_eq emacs |
db17961e | 99 | |
100 | %description xemacs | |
101 | This package contains compiled elisp files needed to run Gnus on XEmacs | |
102 | ||
9010b07e | 103 | %description xemacs -l pl.UTF-8 |
db17961e | 104 | Pakiet zawiera skompilowane pliki elisp z kodem Gnusa dla XEmacsa. |
105 | ||
106 | %package xemacs-el | |
107 | Summary: Gnus elisp source files for XEmacs | |
48d07bbc | 108 | Summary(pl.UTF-8): Kod źródłowy elisp Gnusa dla XEmacsa |
db17961e | 109 | Group: Applications/Networking |
7275da8f | 110 | Requires: %{name}-xemacs = %{version}-%{release} |
db17961e | 111 | |
112 | %description xemacs-el | |
113 | This package contains source elisp files needed to run Gnus on XEmacs | |
114 | ||
9010b07e JR |
115 | %description xemacs-el -l pl.UTF-8 |
116 | Pakiet zawiera pliki źródłowe elisp z kodem Gnusa dla XEmacsa. | |
db17961e | 117 | |
db17961e | 118 | %package pdf-doc |
119 | Summary: PDF documentation for Gnus | |
48d07bbc | 120 | Summary(pl.UTF-8): Dokumentacja Gnusa w formacie PDF |
db17961e | 121 | Group: Documentation |
122 | ||
123 | %description pdf-doc | |
124 | Documentation for Gnus in PDF format | |
125 | ||
9010b07e | 126 | %description pdf-doc -l pl.UTF-8 |
db17961e | 127 | Dokumentacja Gnusa w formacie PDF |
db17961e | 128 | |
129 | %prep | |
38e3dd60 | 130 | %setup -q -n %{_the_name}-%{version} |
db17961e | 131 | %patch0 -p1 |
132 | ||
db17961e | 133 | %build |
134 | mkdir DUMMY | |
135 | ||
136 | %if %{with xemacs} | |
db17961e | 137 | %configure \ |
7275da8f | 138 | --with-xemacs \ |
139 | --with-lispdir=%{_datadir}/xemacs-packages/lisp/%{_the_name} \ | |
140 | --with-etcdir=%{_datadir}/%{_the_name} | |
db17961e | 141 | %{__make} |
142 | ||
679a3e2b | 143 | %if %{without emacs} && %{with pdf_doc} |
db17961e | 144 | %{__make} -C texi pdf |
145 | %endif | |
146 | ||
679a3e2b | 147 | %{__make} DESTDIR=$(pwd)/DUMMY install |
db17961e | 148 | %{__make} distclean |
db17961e | 149 | %endif |
150 | ||
151 | %if %{with emacs} | |
db17961e | 152 | %configure \ |
7275da8f | 153 | --with-emacs \ |
154 | --with-lispdir=%{_emacs_lispdir}/%{_the_name} \ | |
155 | --with-etcdir=%{_datadir}/%{_the_name} | |
db17961e | 156 | %{__make} |
157 | ||
158 | %if %{with pdf_doc} | |
159 | %{__make} -C texi pdf | |
160 | %endif | |
161 | ||
679a3e2b | 162 | %{__make} DESTDIR=$(pwd)/DUMMY install |
db17961e | 163 | %endif |
164 | ||
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | cp -R ./DUMMY $RPM_BUILD_ROOT | |
168 | install -d $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/etc | |
679a3e2b | 169 | ln -s ../../gnus $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/etc |
db17961e | 170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %files | |
175 | %defattr(644,root,root,755) | |
679a3e2b | 176 | %doc ChangeLog GNUS-NEWS README todo contrib |
db17961e | 177 | %{_datadir}/%{_the_name} |
178 | %{_infodir}/* | |
179 | ||
180 | %if %{with emacs} | |
181 | %files emacs | |
182 | %defattr(644,root,root,755) | |
183 | %dir %{_emacs_lispdir}/%{_the_name} | |
184 | %{_emacs_lispdir}/%{_the_name}/*.elc | |
185 | ||
186 | %files emacs-el | |
187 | %defattr(644,root,root,755) | |
188 | %{_emacs_lispdir}/%{_the_name}/*.el | |
189 | %endif | |
190 | ||
191 | %if %{with xemacs} | |
192 | %files xemacs | |
193 | %defattr(644,root,root,755) | |
194 | %dir %{_datadir}/xemacs-packages/lisp/%{_the_name} | |
195 | %{_datadir}/xemacs-packages/lisp/%{_the_name}/*.elc | |
196 | %{_datadir}/xemacs-packages/etc/%{_the_name} | |
197 | ||
198 | %files xemacs-el | |
199 | %defattr(644,root,root,755) | |
200 | %{_datadir}/xemacs-packages/lisp/%{_the_name}/*.el | |
201 | %endif | |
202 | ||
203 | %if %{with pdf_doc} | |
204 | %files pdf-doc | |
205 | %defattr(644,root,root,755) | |
206 | %doc texi/*.pdf | |
207 | %endif |