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