]>
Commit | Line | Data |
---|---|---|
49c7f811 ER |
1 | # TODO |
2 | # - build for xemacs | |
5c116cf1 JB |
3 | # |
4 | # Conditional build: | |
637ed623 | 5 | %bcond_with xemacs # Build without XEmacs support |
6 | %bcond_without emacs # Build without GNU Emacs support | |
5c116cf1 | 7 | # |
637ed623 | 8 | %define _the_name ecb |
9 | Summary: Emacs Code Browser IDE | |
c4e2cbee | 10 | Summary(pl.UTF-8): Środowisko programistyczne dla Emacsa |
637ed623 | 11 | Name: emacsen-%{_the_name}-pkg |
d753fbf3 | 12 | Version: 2.26 |
637ed623 | 13 | Release: 0.1 |
14 | License: GPL | |
15 | Group: Applications/Editors/Emacs | |
5c116cf1 | 16 | Source0: http://dl.sourceforge.net/ecb/%{_the_name}-%{version}.tar.gz |
d753fbf3 | 17 | # Source0-md5: 89bea4c856b96a943e83f14ef650e753 |
07bdc331 | 18 | URL: http://ecb.sourceforge.net/ |
637ed623 | 19 | BuildRequires: emacsen-cedet-pkg |
20 | %if %{with emacs} | |
21 | BuildRequires: emacs | |
22 | %endif | |
23 | %if %{with xemacs} | |
24 | BuildRequires: xemacs | |
25 | %endif | |
26 | Requires: cedet-elisp-code = %{version}-%{release} | |
27 | Conflicts: xemacs-cedet-pkg | |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | ECB is a global minor-mode which offers a couple of ECB-windows for | |
33 | browsing your sources comfortable with the mouse and the keyboard. | |
34 | ||
35 | This package contains files common to both GNU Emacs and XEmacs. | |
36 | ||
acc250e2 JR |
37 | %description -l pl.UTF-8 |
38 | ECB jest globalnym minor mode wyświetlającym kilka własnych okienek | |
39 | ułatwiających przeglądanie kodu myszą i klawiaturą. | |
637ed623 | 40 | |
acc250e2 | 41 | Ten pakiet zawiera pliki wspólne dla GNU Emacsa i XEmacsa. |
637ed623 | 42 | |
637ed623 | 43 | %package emacs |
44 | Summary: ECB compiled elisp files for GNU Emacs | |
c4e2cbee | 45 | Summary(pl.UTF-8): Skompilowany kod elisp ECB dla GNU Emacsa |
637ed623 | 46 | Group: Applications/Editors/Emacs |
47 | Requires: %{name} = %{version}-%{release} | |
637ed623 | 48 | Provides: cedet-elisp-code = %{version}-%{release} |
49c7f811 | 49 | %requires_eq emacs |
637ed623 | 50 | |
51 | %description emacs | |
52 | This package contains compiled elisp files needed to run ECB on GNU Emacs | |
53 | ||
acc250e2 | 54 | %description emacs -l pl.UTF-8 |
637ed623 | 55 | Pakiet zawiera skompilowane pliki elisp z kodem ECB dla GNU Emacsa. |
56 | ||
57 | %package emacs-el | |
58 | Summary: ECB elisp files for GNU Emacs | |
c4e2cbee | 59 | Summary(pl.UTF-8): Kod elisp ECB dla GNU Emacsa |
637ed623 | 60 | Group: Applications/Editors/Emacs |
61 | Requires: %{name}-emacs = %{version}-%{release} | |
62 | ||
63 | %description emacs-el | |
64 | This package contains ECB source elisp files for GNU Emacs | |
65 | ||
acc250e2 JR |
66 | %description emacs-el -l pl.UTF-8 |
67 | Pakiet zawiera źródłowe pliki elisp z kodem ECB dla GNU Emacsa. | |
637ed623 | 68 | |
637ed623 | 69 | %package xemacs |
70 | Summary: ECB elisp files for XEmacs | |
c4e2cbee | 71 | Summary(pl.UTF-8): Kod elisp ECB dla XEmacsa |
637ed623 | 72 | Group: Applications/Editors/Emacs |
73 | Requires: %{name} = %{version}-%{release} | |
637ed623 | 74 | Provides: cedet-elisp-code = %{version}-%{release} |
49c7f811 | 75 | %requires_eq xemacs |
637ed623 | 76 | |
77 | %description xemacs | |
78 | This package contains compiled elisp files needed to run ECB on XEmacs | |
79 | ||
acc250e2 | 80 | %description xemacs -l pl.UTF-8 |
637ed623 | 81 | Pakiet zawiera skompilowane pliki elisp z kodem ECB dla XEmacsa. |
82 | ||
83 | %package xemacs-el | |
84 | Summary: ECB elisp source files for XEmacs | |
c4e2cbee | 85 | Summary(pl.UTF-8): Kod źródłowy elisp ECB dla XEmacsa |
637ed623 | 86 | Group: Applications/Editors/Emacs |
87 | Requires: %{name}-xemacs = %{version}-%{release} | |
88 | ||
89 | %description xemacs-el | |
07bdc331 | 90 | This package contains source ECB elisp files for XEmacs |
637ed623 | 91 | |
acc250e2 JR |
92 | %description xemacs-el -l pl.UTF-8 |
93 | Pakiet zawiera pliki źródłowe elisp z kodem ECB dla XEmacsa. | |
637ed623 | 94 | |
95 | %prep | |
96 | %setup -q -n %{_the_name}-%{version} | |
97 | ||
637ed623 | 98 | %build |
637ed623 | 99 | %if %{with xemacs} |
100 | mkdir _xemacs | |
101 | %endif | |
102 | ||
103 | %if %{with emacs} | |
104 | mkdir _emacs | |
5c116cf1 | 105 | cp -a [!_]* _emacs |
637ed623 | 106 | %{__make} -C _emacs \ |
107 | EMACS=emacs \ | |
108 | CEDET=%{_datadir}/emacs/cedet | |
109 | %endif | |
110 | ||
111 | %install | |
07bdc331 | 112 | rm -rf $RPM_BUILD_ROOT |
5c116cf1 | 113 | install -d $RPM_BUILD_ROOT%{_infodir} |
637ed623 | 114 | |
115 | %if %{with xemacs} | |
116 | %endif | |
117 | ||
118 | %if %{with emacs} | |
5c116cf1 JB |
119 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir} |
120 | install _emacs/*.{el,elc} $RPM_BUILD_ROOT%{_emacs_lispdir} | |
d753fbf3 | 121 | rm _emacs/ecb-images/klaus.sh |
122 | cp -a _emacs/ecb-images $RPM_BUILD_ROOT%{_emacs_lispdir} | |
637ed623 | 123 | %endif |
124 | ||
5c116cf1 | 125 | install info-help/* $RPM_BUILD_ROOT%{_infodir} |
637ed623 | 126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
132 | %doc NEWS README RELEASE_NOTES html-help | |
5c116cf1 | 133 | %{_infodir}/*.info* |
637ed623 | 134 | |
135 | %if %{with emacs} | |
136 | %files emacs | |
137 | %defattr(644,root,root,755) | |
138 | %{_emacs_lispdir}/*.elc | |
d753fbf3 | 139 | %{_emacs_lispdir}/ecb-images |
637ed623 | 140 | %{_emacs_lispdir}/ecb-autoloads.el |
141 | ||
142 | %files emacs-el | |
143 | %defattr(644,root,root,755) | |
144 | # All except ecb-autoloads.el | |
5c116cf1 JB |
145 | %{_emacs_lispdir}/[!e]*.el |
146 | %{_emacs_lispdir}/ecb-[!a]*.el | |
637ed623 | 147 | %{_emacs_lispdir}/ecb-autogen.el |
148 | %endif | |
149 | ||
150 | %if %{with xemacs} | |
151 | %files xemacs | |
152 | %defattr(644,root,root,755) | |
153 | %dir %{_datadir}/xemacs-packages/lisp/%{_the_name} | |
154 | %{_datadir}/xemacs-packages/lisp/%{_the_name}/*.elc | |
155 | %{_datadir}/xemacs-packages/etc/%{_the_name} | |
156 | ||
157 | %files xemacs-el | |
158 | %defattr(644,root,root,755) | |
159 | %{_datadir}/xemacs-packages/lisp/%{_the_name}/*.el | |
160 | %endif |