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