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.UTF-8): Ś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.sourceforge.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.
36 %description -l pl.UTF-8
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.UTF-8): 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.UTF-8
56 Pakiet zawiera skompilowane pliki elisp z kodem ECB dla GNU Emacsa.
59 Summary: ECB elisp files for GNU Emacs
60 Summary(pl.UTF-8): 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.UTF-8
68 Pakiet zawiera źródłowe pliki elisp z kodem ECB dla GNU Emacsa.
71 Summary: ECB elisp files for XEmacs
72 Summary(pl.UTF-8): 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.UTF-8
82 Pakiet zawiera skompilowane pliki elisp z kodem ECB dla XEmacsa.
85 Summary: ECB elisp source files for XEmacs
86 Summary(pl.UTF-8): 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.UTF-8
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 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT%{_infodir}
120 install -d $RPM_BUILD_ROOT%{_emacs_lispdir}
121 install _emacs/*.{el,elc} $RPM_BUILD_ROOT%{_emacs_lispdir}
122 rm _emacs/ecb-images/klaus.sh
123 cp -a _emacs/ecb-images $RPM_BUILD_ROOT%{_emacs_lispdir}
126 install info-help/* $RPM_BUILD_ROOT%{_infodir}
129 rm -rf $RPM_BUILD_ROOT
132 %defattr(644,root,root,755)
133 %doc NEWS README RELEASE_NOTES html-help
138 %defattr(644,root,root,755)
139 %{_emacs_lispdir}/*.elc
140 %{_emacs_lispdir}/ecb-images
141 %{_emacs_lispdir}/ecb-autoloads.el
144 %defattr(644,root,root,755)
145 # All except ecb-autoloads.el
146 %{_emacs_lispdir}/[!e]*.el
147 %{_emacs_lispdir}/ecb-[!a]*.el
148 %{_emacs_lispdir}/ecb-autogen.el
153 %defattr(644,root,root,755)
154 %dir %{_datadir}/xemacs-packages/lisp/%{_the_name}
155 %{_datadir}/xemacs-packages/lisp/%{_the_name}/*.elc
156 %{_datadir}/xemacs-packages/etc/%{_the_name}
159 %defattr(644,root,root,755)
160 %{_datadir}/xemacs-packages/lisp/%{_the_name}/*.el