RPM for navi2ch
Révision | 855dfa9c45e94b87ae24ae123d992e46693a3d5a (tree) |
---|---|
l'heure | 2014-07-21 15:56:02 |
Auteur | Katsuyuki TATEISHI <kt@whee...> |
Commiter | Katsuyuki TATEISHI |
Update for the snapshot "ceb8e65"
@@ -1,81 +0,0 @@ | ||
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 |
@@ -1,18 +1,23 @@ | ||
1 | -%define snapshot_date 20101224 | |
2 | -%define rpm_ver 0.0.%{snapshot_date}.1 | |
3 | -%define archive_ver 0.0.%{snapshot_date}-1 | |
1 | +%define snapshot_sha1 ceb8e65 | |
2 | +%define rpm_ver 2.0.0.DEV.0.%{snapshot_sha1} | |
3 | +%define archive_ver %{snapshot_sha1} | |
4 | +# | |
5 | +# The source archive is tar-ed up with: | |
6 | +# git archive --prefix=navi2ch-snapshot-`git describe --always`/ \ | |
7 | +# --format=tgz HEAD > ../navi2ch-snapshot-`git describe --always`.tar.gz | |
8 | +# | |
4 | 9 | |
5 | 10 | %define elispdir %(pkg-config emacs --variable=sitepkglispdir) |
6 | 11 | |
7 | -Name: navi2ch-cvs | |
12 | +Name: navi2ch-snapshot | |
8 | 13 | Version: %{rpm_ver} |
9 | -Release: 3%{?dist} | |
14 | +Release: 1%{?dist} | |
10 | 15 | Summary: Navigator for 2ch(navi2ch) is a '2ch bbs' browser worked on Emacsen |
11 | 16 | |
12 | 17 | Group: Applications/Internet |
13 | 18 | License: GPLv2 |
14 | 19 | URL: http://navi2ch.sourceforge.net |
15 | -Source0: %{name}_%{archive_ver}.tar.gz | |
20 | +Source0: %{name}-%{archive_ver}.tar.gz | |
16 | 21 | BuildRoot: %{_tmppath}/%{name}_%{version}-%{release}-root-%(%{__id_u} -n) |
17 | 22 | BuildArch: noarch |
18 | 23 |
@@ -31,7 +36,7 @@ Requires: %{name} = %{version}-%{release} | ||
31 | 36 | Elisp source files for %{name}-%{version} |
32 | 37 | |
33 | 38 | %prep |
34 | -%setup -q -n %{name}-%{snapshot_date} | |
39 | +%setup -q -n %{name}-%{snapshot_sha1} | |
35 | 40 | |
36 | 41 | |
37 | 42 | %build |
@@ -67,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT | ||
67 | 72 | %{elispdir}/%{name}/*.el |
68 | 73 | |
69 | 74 | %changelog |
75 | +* Mon Jul 21 2014 TATEISHI Katsuyuki <kt@wheel.jp> 2.0.0.DEV.0.ceb8e65-1 | |
76 | +- Switch the source to the snapshot from the git repo. | |
77 | + | |
70 | 78 | * Fri Feb 11 2011 TATEISHI Katsuyuki <kt@wheel.jp> 0.0.20101224.1-3 |
71 | 79 | - Add emacs-el as BuildRequires to avoid installation path error. |
72 | 80 |