RPM for navi2ch
Revision | 83c8d851bfa2bc3ce53c63e9ffb5fa92c9eda053 (tree) |
---|---|
Time | 2014-07-21 15:48:15 |
Author | Katsuyuki TATEISHI <kt@whee...> |
Commiter | Katsuyuki TATEISHI |
Prepare for new archive
@@ -0,0 +1,81 @@ | ||
1 | +%define snapshot_date 20101224 | |
2 | +%define rpm_ver 0.0.%{snapshot_date}.1 | |
3 | +%define archive_ver 0.0.%{snapshot_date}-1 | |
4 | + | |
5 | +%define elispdir %(pkg-config emacs --variable=sitepkglispdir) | |
6 | + | |
7 | +Name: navi2ch-cvs | |
8 | +Version: %{rpm_ver} | |
9 | +Release: 3%{?dist} | |
10 | +Summary: Navigator for 2ch(navi2ch) is a '2ch bbs' browser worked on Emacsen | |
11 | + | |
12 | +Group: Applications/Internet | |
13 | +License: GPLv2 | |
14 | +URL: http://navi2ch.sourceforge.net | |
15 | +Source0: %{name}_%{archive_ver}.tar.gz | |
16 | +BuildRoot: %{_tmppath}/%{name}_%{version}-%{release}-root-%(%{__id_u} -n) | |
17 | +BuildArch: noarch | |
18 | + | |
19 | +BuildRequires: emacs emacs-el | |
20 | +Requires: emacs >= 21 | |
21 | +conflicts: navi2ch | |
22 | + | |
23 | +%description | |
24 | +Navigator for 2ch(navi2ch) is a '2ch bbs' browser worked on Emacsen | |
25 | + | |
26 | +%package el | |
27 | +Summary: Elisp source files for %{name} | |
28 | +Requires: %{name} = %{version}-%{release} | |
29 | + | |
30 | +%description el | |
31 | +Elisp source files for %{name}-%{version} | |
32 | + | |
33 | +%prep | |
34 | +%setup -q -n %{name}-%{snapshot_date} | |
35 | + | |
36 | + | |
37 | +%build | |
38 | +%configure --with-lispdir=%{elispdir}/%{name} --with-icondir=%{_datadir}/%{name} | |
39 | +make %{?_smp_mflags} | |
40 | + | |
41 | + | |
42 | +%install | |
43 | +rm -rf $RPM_BUILD_ROOT | |
44 | +make install DESTDIR=$RPM_BUILD_ROOT | |
45 | +rm -f $RPM_BUILD_ROOT/%{_infodir}/dir | |
46 | + | |
47 | + | |
48 | +%clean | |
49 | +rm -rf $RPM_BUILD_ROOT | |
50 | + | |
51 | +%post | |
52 | +/sbin/install-info %{_infodir}/navi2ch.info.gz %{_infodir}/dir | |
53 | + | |
54 | +%preun | |
55 | +/sbin/install-info --delete %{_infodir}/navi2ch.info.gz %{_infodir}/dir | |
56 | + | |
57 | +%files | |
58 | +%defattr(-,root,root,-) | |
59 | +%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO | |
60 | +%{elispdir}/%{name}/*.elc | |
61 | +%dir %{elispdir}/%{name} | |
62 | +%{_datadir}/%{name}/ | |
63 | +%{_infodir}/* | |
64 | + | |
65 | +%files el | |
66 | +%defattr(-,root,root,-) | |
67 | +%{elispdir}/%{name}/*.el | |
68 | + | |
69 | +%changelog | |
70 | +* Fri Feb 11 2011 TATEISHI Katsuyuki <kt@wheel.jp> 0.0.20101224.1-3 | |
71 | +- Add emacs-el as BuildRequires to avoid installation path error. | |
72 | + | |
73 | +* Fri Feb 11 2011 TATEISHI Katsuyuki <kt@wheel.jp> 0.0.20101224.1-2 | |
74 | +- Rebuild to fix installation path depending build env. No changes to | |
75 | + the spec but bump Release. | |
76 | + | |
77 | +* Wed Feb 2 2011 TATEISHI Katsuyuki <kt@wheel.jp> 0.0.20101224.1-1 | |
78 | +- Update for cvs snapshot 20101224. | |
79 | + | |
80 | +* Wed Feb 2 2011 TATEISHI Katsuyuki <kt@wheel.jp> 1.8.3-1 | |
81 | +- Initial revision |