1 # TODO: build for xemacs
4 %bcond_with xemacs # Build without XEmacs support
5 %bcond_without emacs # Build without GNU Emacs support
8 Summary: Emacs Code Browser IDE
9 Summary(pl): ¦rodowisko programistyczne dla Emacsa
10 Name: emacsen-%{_the_name}-pkg
14 Group: Applications/Editors/Emacs
15 Source0: http://dl.sourceforge.net/ecb/%{_the_name}-%{version}.tar.gz
16 # Source0-md5: 89bea4c856b96a943e83f14ef650e753
17 URL: http://ecb.sf.net/
18 BuildRequires: emacsen-cedet-pkg
25 Requires: cedet-elisp-code = %{version}-%{release}
26 Conflicts: xemacs-cedet-pkg
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 ECB is a global minor-mode which offers a couple of ECB-windows for
32 browsing your sources comfortable with the mouse and the keyboard.
34 This package contains files common to both GNU Emacs and XEmacs.
37 ECB jest globalnym minor mode wy¶wietlaj±cym kilka w³asnych okienek
38 u³atwiaj±cych przegl±danie kodu mysz± i klawiatur±.
40 Ten pakiet zawiera pliki wspólne dla GNU Emacsa i XEmacsa.
42 %define version_of() %{expand:%%(rpm -q %1 --queryformat '%%%%{version}-%%%%{release}')}
45 Summary: ECB compiled elisp files for GNU Emacs
46 Summary(pl): Skompilowany kod elisp ECB dla GNU Emacsa
47 Group: Applications/Editors/Emacs
48 Requires: %{name} = %{version}-%{release}
49 Requires: emacs = %{version_of emacs}
50 Provides: cedet-elisp-code = %{version}-%{release}
53 This package contains compiled elisp files needed to run ECB on GNU Emacs
55 %description emacs -l pl
56 Pakiet zawiera skompilowane pliki elisp z kodem ECB dla GNU Emacsa.
59 Summary: ECB elisp files for GNU Emacs
60 Summary(pl): Kod elisp ECB dla GNU Emacsa
61 Group: Applications/Editors/Emacs
62 Requires: %{name}-emacs = %{version}-%{release}
65 This package contains ECB source elisp files for GNU Emacs
67 %description emacs-el -l pl
68 Pakiet zawiera ¼ród³owe pliki elisp z kodem ECB dla GNU Emacsa.
71 Summary: ECB elisp files for XEmacs
72 Summary(pl): Kod elisp ECB dla XEmacsa
73 Group: Applications/Editors/Emacs
74 Requires: %{name} = %{version}-%{release}
75 Requires: xemacs = %{version_of xemacs}
76 Provides: cedet-elisp-code = %{version}-%{release}
79 This package contains compiled elisp files needed to run ECB on XEmacs
81 %description xemacs -l pl
82 Pakiet zawiera skompilowane pliki elisp z kodem ECB dla XEmacsa.
85 Summary: ECB elisp source files for XEmacs
86 Summary(pl): Kod ¼ród³owy elisp ECB dla XEmacsa
87 Group: Applications/Editors/Emacs
88 Requires: %{name}-xemacs = %{version}-%{release}
90 %description xemacs-el
91 This package contains source ECB elisp files for XEmacs
93 %description xemacs-el -l pl
94 Pakiet zawiera pliki ¼ród³owe elisp z kodem ECB dla XEmacsa.
97 %setup -q -n %{_the_name}-%{version}
107 %{__make} -C _emacs \
109 CEDET=%{_datadir}/emacs/cedet
113 install -d $RPM_BUILD_ROOT%{_infodir}
119 install -d $RPM_BUILD_ROOT%{_emacs_lispdir}
120 install _emacs/*.{el,elc} $RPM_BUILD_ROOT%{_emacs_lispdir}
121 rm _emacs/ecb-images/klaus.sh
122 cp -a _emacs/ecb-images $RPM_BUILD_ROOT%{_emacs_lispdir}
125 install info-help/* $RPM_BUILD_ROOT%{_infodir}
128 rm -rf $RPM_BUILD_ROOT
131 %defattr(644,root,root,755)
132 %doc NEWS README RELEASE_NOTES html-help
137 %defattr(644,root,root,755)
138 %{_emacs_lispdir}/*.elc
139 %{_emacs_lispdir}/ecb-images
140 %{_emacs_lispdir}/ecb-autoloads.el
143 %defattr(644,root,root,755)
144 # All except ecb-autoloads.el
145 %{_emacs_lispdir}/[!e]*.el
146 %{_emacs_lispdir}/ecb-[!a]*.el
147 %{_emacs_lispdir}/ecb-autogen.el
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}
158 %defattr(644,root,root,755)
159 %{_datadir}/xemacs-packages/lisp/%{_the_name}/*.el