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