commit 7db5c60b7e0487bc55310da4a8690b3ead74e86c Author: John C. Peterson <jcp@xxxxxxxxxx> Date: Fri Oct 18 14:39:13 2013 -0700 Initial import (#996311). .gitignore | 1 + perl-CAD-Format-STL.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 88 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..807f6aa 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/CAD-Format-STL-v0.2.1.tar.gz diff --git a/perl-CAD-Format-STL.spec b/perl-CAD-Format-STL.spec new file mode 100644 index 0000000..bb63412 --- /dev/null +++ b/perl-CAD-Format-STL.spec @@ -0,0 +1,86 @@ +# Declare the CPAN name of the module +%define mod_basename CAD-Format-STL + +Name: perl-%{mod_basename} +Version: 0.2.1 +Release: 5%{?dist} +Summary: Read and Write STL (STereo Lithography) format files +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/%{mod_basename}/ +Source: http://www.cpan.org/modules/by-module/CAD/%{mod_basename}-v%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(Carp) +BuildRequires: perl(Class::Accessor::Classy) >= 0.1.3 +BuildRequires: perl(Module::Build) >= 0.35 +# These are needed for "Build test" +BuildRequires: perl(bytes) +BuildRequires: perl(Test::More) +Requires: perl(bytes) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Class::Accessor::Classy) >= 0.1.3 +# RPM's auto require for perl(Class::Accessor::Classy) fails, handle manually +%define __requires_exclude ^perl\\(Class::Accessor::Classy\\)$ + +%description +The CAD::Format::STL perl module provides object-oriented methods to read +and write files in STL (STereo Lithography) format. Support is provided +for both the ASCII and binary versions of the STL format. + +%prep +%setup -q -n %{mod_basename}-v%{version} + +%build +# Using Module::Build since a Build.PL is present +perl Build.PL installdirs=vendor +./Build + +%install +%if 0%{?rhel} && 0%{?rhel} < 6 +rm -rf %{buildroot} +%endif +./Build install destdir=%{buildroot} create_packlist=0 +%{_fixperms} %{buildroot}/* + +%check +./Build test + +%if 0%{?rhel} && 0%{?rhel} < 6 +%clean +rm -rf %{buildroot} +%endif + +%files +%doc files Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Oct 17 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.2.1-5 +- Moved def of __requires_exclude macro to just before description section +- Replaced the __perl macro with just perl in the expansion of MODULE_COMPAT_ +- Package approved and should be ready to build for distribution. + +* Wed Oct 16 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.2.1-4 +- Various fixes that were required or suggested by the package reviewer: + Added the package's version number build requirement for perl(Module::Build) + Added filter rule for rpm's auto require of perl(Class::Accessor::Classy) + Added perl(bytes) to both the build and runtime requirements + Removed the redundant defattr macro from the files section + Replaced the __perl macro with just perl in the build section + +* Tue Aug 13 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.2.1-3 +- Some cosmetic tweaks to the macros that check for the specific case of RHEL. + +* Mon Aug 12 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.2.1-2 +- Some corrections to the macros that check for the specific case of RHEL. +- Eliminated find command in the install section as suggested by the reviewer. + +* Mon Aug 12 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.2.1-1 +- Some minor cosmetic fixes to improve readability and to pacify rpmlint. + +* Tue Jun 18 2013 John C. Peterson <jcp@xxxxxxxxxx> 0.2.1-1 +- Baseline specfile autogenerated by cpanspec 1.78. + diff --git a/sources b/sources index e69de29..68afb87 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +08765e2ac0c84351b960869968de00a9 CAD-Format-STL-v0.2.1.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel