1 | %define build_vineseed %(grep -c VineSeed /etc/vine-release) |
---|
2 | %define build_vine5 %( [ "%{?_dist_release}" == "vl5" ] && echo 1 || echo 0) |
---|
3 | |
---|
4 | Summary: Sources.list file for plus category |
---|
5 | Summary(ja): plus カテゴリ用の sources.list ファイル |
---|
6 | Name: apt-sourceslist-plus |
---|
7 | Version: 1.1 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | Source0: sources.list-vineseed-plus |
---|
10 | Source1: sources.list-vine5-plus |
---|
11 | License: GPL |
---|
12 | Group: Applications/Administration |
---|
13 | #URL: |
---|
14 | |
---|
15 | Requires: apt |
---|
16 | Obsoletes: apt < 0.5.15lorg3.94a-6 |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildArch: noarch |
---|
19 | |
---|
20 | |
---|
21 | %description |
---|
22 | This package contains source.list file for plus category of Vine Plus. |
---|
23 | |
---|
24 | You should install this package if you want to install packages in |
---|
25 | plus category of Vine Plus. |
---|
26 | |
---|
27 | %description -l ja |
---|
28 | このパッケージには Vine Plus の plus カテゴリ用の source.list ファイル |
---|
29 | を含んでいます。 |
---|
30 | |
---|
31 | Vine Plus の plus カテゴリのパッケージをインストールする場合はこのパッ |
---|
32 | ケージをインストールしてください。 |
---|
33 | |
---|
34 | |
---|
35 | %install |
---|
36 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
37 | %{__mkdir_p} ${RPM_BUILD_ROOT}/%{_sysconfdir}/apt/sources.list.d |
---|
38 | |
---|
39 | %if %{build_vineseed} |
---|
40 | %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_sysconfdir}/apt/sources.list.d/plus.list |
---|
41 | %elseif %{build_vine5} |
---|
42 | %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/apt/sources.list.d/plus.list |
---|
43 | %endif |
---|
44 | |
---|
45 | %clean |
---|
46 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
47 | |
---|
48 | |
---|
49 | %files |
---|
50 | %defattr(-,root,root) |
---|
51 | %config(noreplace) %verify(not mtime) %{_sysconfdir}/apt/sources.list.d/plus.list |
---|
52 | |
---|
53 | |
---|
54 | %changelog |
---|
55 | * Sat Feb 13 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1 |
---|
56 | - update to Vine Linux 5.1 |
---|
57 | |
---|
58 | * Fri Jul 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-1 |
---|
59 | - build for Vine Linux 5 |
---|
60 | |
---|
61 | * Sun Feb 01 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1-2 |
---|
62 | - add Obsoletes: apt < 0.5.15lorg3.94a-6 |
---|
63 | - add BuildArch: noarch |
---|
64 | |
---|
65 | * Sun Jan 25 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1-1 |
---|
66 | - initial build for Vine Linux |
---|