perltidy-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. Name: perltidy
  2. Version: 20101217
  3. Release: 1%{?_dist_release}
  4. Summary: Tool for indenting and reformatting Perl scripts
  5. Group: Development/Tools
  6. License: GPLv2+
  7. URL: http://perltidy.sourceforge.net/
  8. Source: http://downloads.sourceforge.net/perltidy/Perl-Tidy-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: shaolin
  16. %description
  17. Perltidy is a Perl script which indents and reformats Perl scripts to
  18. make them easier to read. If you write Perl scripts, or spend much
  19. time reading them, you will probably find it useful. The formatting
  20. can be controlled with command line parameters. The default parameter
  21. settings approximately follow the suggestions in the Perl Style Guide.
  22. Perltidy can also output HTML of both POD and source code. Besides
  23. reformatting scripts, Perltidy can be a great help in tracking down
  24. errors with missing or extra braces, parentheses, and square brackets
  25. because it is very good at localizing errors.
  26. %prep
  27. %setup -q -n Perl-Tidy-%{version}
  28. rm -f docs/perltidy.1 examples/pt.bat
  29. f=CHANGES ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
  30. %build
  31. %{__perl} Makefile.PL INSTALLDIRS=vendor
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  36. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  37. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  38. chmod -R u+w $RPM_BUILD_ROOT/*
  39. %check
  40. make test
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc BUGS CHANGES COPYING README TODO docs/ examples/
  46. %{_bindir}/perltidy
  47. %{perl_vendorlib}/Perl/
  48. %{_mandir}/man1/perltidy.1*
  49. %{_mandir}/man3/Perl::Tidy.3*
  50. %changelog
  51. * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 20101217-1
  52. - initial build for Vine Linux
  53. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101217-4
  54. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  55. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 20101217-3
  56. - Perl mass rebuild
  57. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101217-2
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  59. * Sun Dec 26 2010 Ville Skyttä <ville.skytta@iki.fi> - 20101217-1
  60. - Update to 20101217.
  61. * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 20090616-4
  62. - Mass rebuild with perl-5.12.0
  63. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 20090616-3
  64. - rebuild against perl 5.10.1
  65. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090616-2
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  67. * Thu Jun 18 2009 Ville Skyttä <ville.skytta at iki.fi> - 20090616-1
  68. - Update to 20090616.
  69. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20071205-4
  70. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  71. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 20071205-3
  72. - Rebuild for perl 5.10 (again)
  73. * Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 20071205-2
  74. - rebuild for new perl
  75. * Thu Dec 6 2007 Ville Skyttä <ville.skytta at iki.fi> - 20071205-1
  76. - 20071205.
  77. - Convert docs to UTF-8.
  78. * Wed Aug 1 2007 Ville Skyttä <ville.skytta at iki.fi> - 20070801-1
  79. - 20070801.
  80. * Wed May 9 2007 Ville Skyttä <ville.skytta at iki.fi> - 20070508-1
  81. - 20070508.
  82. * Sat May 5 2007 Ville Skyttä <ville.skytta at iki.fi> - 20070504-1
  83. - 20070504.
  84. * Tue Apr 24 2007 Ville Skyttä <ville.skytta at iki.fi> - 20070424-1
  85. - 20070424.
  86. * Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 20060719-3
  87. - BuildRequire perl(ExtUtils::MakeMaker).
  88. * Fri Sep 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060719-2
  89. - Rebuild.
  90. * Thu Jul 20 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060719-1
  91. - 20060719.
  92. - Fix order of options to find(1) in %%install.
  93. * Thu Jun 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 20060614-1
  94. - 20060614, specfile cleanups, include examples in docs.
  95. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  96. - rebuilt
  97. * Thu Dec 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:20031021-1
  98. - Sync with fedora-rpmdevtools' Perl spec template to fix x86_64 build.
  99. - Move version to the version field.
  100. * Wed Oct 22 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20031021
  101. - Update to 20031021.
  102. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.3.20030726
  103. - Install into vendor dirs.
  104. - Spec cleanups.
  105. * Tue Jul 29 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20030726
  106. - Update to 20030726.
  107. - Use fedora-rpm-helper.
  108. * Mon Jun 23 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.2.20021130
  109. - Address issues in #194:
  110. - Patch to get rid of a warning on startup.
  111. - Do defattr before doc.
  112. * Fri May 30 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.1.20021130
  113. - Fix release naming scheme (this is snapshot-only).
  114. * Wed May 7 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.0.2.20021130
  115. - Own dirs.
  116. - Save .spec in UTF-8.
  117. * Mon Apr 21 2003 Ville Skyttä <ville.skytta at iki.fi> 0:0.0-0.fdr.0.1.20021130
  118. - First Fedora release, based on Simon Perreault's work.
  119. * Mon Mar 10 2003 Simon Perreault <nomis80@nomis80.org> 20021130-2
  120. - Changed architecture from i386 to noarch
  121. - Added my name as packager
  122. - Bumped up release number, which was forgotten by Anthony Rumble
  123. * Sun Mar 09 2003 Anthony Rumble <anthony@linuxhelp.com.au>
  124. - Tidied up RPM Source
  125. * Sun Dec 1 2002 Simon Perreault <nomis80@linuxquebec.com>
  126. - Update to 20021130
  127. * Sat Nov 9 2002 Simon Perreault <nomis80@linuxquebec.com>
  128. - Update to 20021106
  129. * Mon Sep 23 2002 Simon Perreault <nomis80@linuxquebec.com>
  130. - Update to 20020922
  131. * Wed Aug 28 2002 Simon Perreault <nomis80@linuxquebec.com>
  132. - Update to 20020826
  133. * Tue May 7 2002 Simon Perreault <nomis80@linuxquebec.com>
  134. - Require 5.6.1 because Tidy.pm is placed in a directory dependant on perl
  135. version.
  136. * Sat Apr 27 2002 Simon Perreault <nomis80@linuxquebec.com>
  137. - Update to 20020425.
  138. * Wed Apr 17 2002 Simon Perreault <nomis80@linuxquebec.com>
  139. - Generalized spec file. Added some documentation.
  140. * Wed Apr 17 2002 Simon Perreault <nomis80@linuxquebec.com>
  141. - Upgraded to version 20020416
  142. * Mon Feb 25 2002 Simon Perreault <nomis80@linuxquebec.com>
  143. - Spec file was created on release of 20020225