apt-sourceslist-nonfree-vl.spec 2.0 KB

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