blob: bd537551adebac89f09a641b41312a693dbfc127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
### Comment
# This file is modified automatically by 'xemacs-adapter' script
# from PLD-project CVS repository: cvs.pld.org.pl, module SPECS
# For more details see comments in this script
### EndComment
Summary: C, C++ and Java language support.
Summary(pl): C, C++ and Java language support.
Name: xemacs-cc-mode-pkg
%define srcname cc-mode
Version: 1.17
Release: 1
### Preamble
Copyright: GPL
Group: Applications/Editors/Emacs
Group(pl): Aplikacje/Edytory/Emacs
URL: http://www.xemacs.org
Source: ftp://ftp.xemacs.org/packages/%{srcname}-%{version}-pkg.tar.gz
BuildRoot: /tmp/%{name}-%{version}-root
BuildArch: noarch
Conflicts: xemacs-sumo
Requires: xemacs
Requires: xemacs-base-pkg
Prereq: /usr/sbin/fix-info-dir
### EndPreamble
%description
%description -l pl
### Main
%prep
%setup -q -c
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/xemacs-packages
cp -a * $RPM_BUILD_ROOT%{_datadir}/xemacs-packages
install -d $RPM_BUILD_ROOT%{_infodir}
mv -f $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/info/*.info* $RPM_BUILD_ROOT%{_infodir}
rm -fr $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/info
gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*.info*
gzip -9nf lisp/cc-mode/ChangeLog
%clean
rm -fr $RPM_BUILD_ROOT
### EndMain
### PrePost
%post
/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%postun
/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
### EndPrePost
### Files
%files
%defattr(644,root,root,755)
%{_infodir}/*
%dir %{_datadir}/xemacs-packages/lisp/*
%{_datadir}/xemacs-packages/lisp/*/*.elc
%doc lisp/cc-mode/ChangeLog.gz
### EndFiles
|