John C. Peterson 7db5c60
# Declare the CPAN name of the module
John C. Peterson 7db5c60
%define mod_basename CAD-Format-STL
John C. Peterson 7db5c60
John C. Peterson 7db5c60
Name:           perl-%{mod_basename}
John C. Peterson 7db5c60
Version:        0.2.1
11e13ff
Release:        11%{?dist}
John C. Peterson 7db5c60
Summary:        Read and Write STL (STereo Lithography) format files 
John C. Peterson 7db5c60
License:        GPL+ or Artistic
John C. Peterson 7db5c60
Group:          Development/Libraries
John C. Peterson 7db5c60
URL:            http://search.cpan.org/dist/%{mod_basename}/
John C. Peterson 7db5c60
Source:         http://www.cpan.org/modules/by-module/CAD/%{mod_basename}-v%{version}.tar.gz
John C. Peterson 7db5c60
BuildArch:      noarch
John C. Peterson 7db5c60
BuildRequires:  perl(strict)
John C. Peterson 7db5c60
BuildRequires:  perl(warnings)
John C. Peterson 7db5c60
BuildRequires:  perl(Carp)
John C. Peterson 7db5c60
BuildRequires:  perl(Class::Accessor::Classy) >= 0.1.3
John C. Peterson 7db5c60
BuildRequires:  perl(Module::Build) >= 0.35
John C. Peterson 7db5c60
# These are needed for "Build test"
John C. Peterson 7db5c60
BuildRequires:  perl(bytes)
John C. Peterson 7db5c60
BuildRequires:  perl(Test::More)
John C. Peterson 7db5c60
Requires:       perl(bytes)
John C. Peterson 7db5c60
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
John C. Peterson 7db5c60
Requires:       perl(Class::Accessor::Classy) >= 0.1.3
John C. Peterson 7db5c60
# RPM's auto require for perl(Class::Accessor::Classy) fails, handle manually
John C. Peterson 7db5c60
%define __requires_exclude ^perl\\(Class::Accessor::Classy\\)$
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%description
John C. Peterson 7db5c60
The CAD::Format::STL perl module provides object-oriented methods to read
John C. Peterson 7db5c60
and write files in STL (STereo Lithography) format. Support is provided
John C. Peterson 7db5c60
for both the ASCII and binary versions of the STL format.
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%prep
John C. Peterson 7db5c60
%setup -q -n %{mod_basename}-v%{version}
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%build
John C. Peterson 7db5c60
# Using Module::Build since a Build.PL is present
John C. Peterson 7db5c60
perl Build.PL installdirs=vendor
John C. Peterson 7db5c60
./Build
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%install
John C. Peterson 7db5c60
%if 0%{?rhel} && 0%{?rhel} < 6
John C. Peterson 7db5c60
rm -rf %{buildroot}
John C. Peterson 7db5c60
%endif
John C. Peterson 7db5c60
./Build install destdir=%{buildroot} create_packlist=0
John C. Peterson 7db5c60
%{_fixperms} %{buildroot}/*
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%check
John C. Peterson 7db5c60
./Build test
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%if 0%{?rhel} && 0%{?rhel} < 6
John C. Peterson 7db5c60
%clean
John C. Peterson 7db5c60
rm -rf %{buildroot}
John C. Peterson 7db5c60
%endif
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%files
John C. Peterson 7db5c60
%doc files Changes README
John C. Peterson 7db5c60
%{perl_vendorlib}/*
John C. Peterson 7db5c60
%{_mandir}/man3/*
John C. Peterson 7db5c60
John C. Peterson 7db5c60
%changelog
11e13ff
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.1-11
11e13ff
- Perl 5.24 rebuild
11e13ff
d0fd85e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-10
d0fd85e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d0fd85e
c13087d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-9
c13087d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c13087d
8c46412
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.1-8
8c46412
- Perl 5.22 rebuild
8c46412
eaad24d
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.2.1-7
eaad24d
- Perl 5.20 rebuild
eaad24d
87432d5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-6
87432d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
87432d5
John C. Peterson 7db5c60
* Thu Oct 17 2013 John C. Peterson <jcp@eskimo.com> 0.2.1-5
John C. Peterson 7db5c60
- Moved def of __requires_exclude macro to just before description section
John C. Peterson 7db5c60
- Replaced the __perl macro with just perl in the expansion of MODULE_COMPAT_
John C. Peterson 7db5c60
- Package approved and should be ready to build for distribution.
John C. Peterson 7db5c60
John C. Peterson 7db5c60
* Wed Oct 16 2013 John C. Peterson <jcp@eskimo.com> 0.2.1-4
John C. Peterson 7db5c60
- Various fixes that were required or suggested by the package reviewer:
John C. Peterson 7db5c60
  Added the package's version number build requirement for perl(Module::Build)
John C. Peterson 7db5c60
  Added filter rule for rpm's auto require of perl(Class::Accessor::Classy)
John C. Peterson 7db5c60
  Added perl(bytes) to both the build and runtime requirements
John C. Peterson 7db5c60
  Removed the redundant defattr macro from the files section
John C. Peterson 7db5c60
  Replaced the __perl macro with just perl in the build section
John C. Peterson 7db5c60
John C. Peterson 7db5c60
* Tue Aug 13 2013 John C. Peterson <jcp@eskimo.com> 0.2.1-3
John C. Peterson 7db5c60
- Some cosmetic tweaks to the macros that check for the specific case of RHEL.
John C. Peterson 7db5c60
John C. Peterson 7db5c60
* Mon Aug 12 2013 John C. Peterson <jcp@eskimo.com> 0.2.1-2
John C. Peterson 7db5c60
- Some corrections to the macros that check for the specific case of RHEL.
John C. Peterson 7db5c60
- Eliminated find command in the install section as suggested by the reviewer.
John C. Peterson 7db5c60
John C. Peterson 7db5c60
* Mon Aug 12 2013 John C. Peterson <jcp@eskimo.com> 0.2.1-1
John C. Peterson 7db5c60
- Some minor cosmetic fixes to improve readability and to pacify rpmlint.
John C. Peterson 7db5c60
John C. Peterson 7db5c60
* Tue Jun 18 2013 John C. Peterson <jcp@eskimo.com> 0.2.1-1
John C. Peterson 7db5c60
- Baseline specfile autogenerated by cpanspec 1.78.
John C. Peterson 7db5c60