vine-spec-skeleton-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Summary:rpm spec file generator for Vine Linux
  2. Name: vine-spec-skeleton
  3. Version: 0.3
  4. Release: 1%{?_dist_release}
  5. License: perl's
  6. Group: Development/Tools
  7. Source0: %{name}-%{version}.tar.gz
  8. Patch1: vine-spec-skeleton-0.3-svn664.patch
  9. Url: http://trac.vinelinux.org/wiki/vine-spec-skeleton
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl perl-YAML perl-Class-Accessor perl-HTML-Template
  13. Requires: perl perl-YAML perl-Class-Accessor perl-HTML-Template
  14. Distribution: Vine Linux
  15. Vendor: Project Vine
  16. Packager: iwaim
  17. %description
  18. rpm spec file generator for Vine Linux
  19. %prep
  20. %setup -q
  21. %patch1
  22. %build
  23. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  24. make
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  28. make DESTDIR=$RPM_BUILD_ROOT install
  29. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  30. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  31. sed "s@^$RPM_BUILD_ROOT@@g" |
  32. grep -v ^%{_mandir} |
  33. grep -v perllocal.pod |
  34. grep -v "\.packlist" > %{name}.files
  35. if [ "$(cat %{name}.files)X" = "X" ] ; then
  36. echo "ERROR: EMPTY FILE LIST"
  37. exit -1
  38. fi
  39. %check
  40. make test
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files -f %{name}.files
  44. %defattr(-,root,root)
  45. %doc README Changes LICENSE
  46. %dir %{perl_vendorlib}/VineLinux
  47. %dir %{perl_vendorlib}/VineLinux/VSS
  48. %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton
  49. %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton/Elisp
  50. %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton/PerlModule
  51. %dir %{perl_vendorlib}/VineLinux/VSS/Skeleton/SelfBuild
  52. %dir %{perl_vendorlib}/VineLinux/VSS/Type
  53. #%{_mandir}/man3/*
  54. %changelog
  55. * Thu Mar 25 2010 IWAI, Masaharu <iwai@alib.jp> 0.3-1
  56. - new upstream release
  57. - drop fix elisp skeleton patch (Patch0): upstream fixed
  58. - add upstream svn r664 patch (Patch1)
  59. - update Requires and BuildRequires: perl-HTML-Template
  60. * Tue Feb 23 2010 IWAI, Masaharu <iwai@alib.jp> 0.2-1
  61. - first release for Vine Linux