b7f8540
Name:           cpanspec
465d69c
Version:        1.77
2dafe96
Release:        1%{?dist}
b7f8540
Summary:        RPM spec file generation utility
274c95d
License:        GPL+ or Artistic
b7f8540
Group:          Development/Tools
b7f8540
URL:            http://cpanspec.sourceforge.net/
b7f8540
Source0:        http://dl.sourceforge.net/cpanspec/cpanspec-%{version}.tar.gz
b7f8540
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b7f8540
BuildArch:      noarch
b7f8540
BuildRequires:  perl(Module::Build)
b7f8540
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
465d69c
Requires:       /usr/bin/curl
4c819ce
Requires:       /usr/bin/repoquery
465d69c
Requires:       rpm-build
b7f8540
b7f8540
%description
465d69c
cpanspec generates spec files (and, optionally, source or even binary
465d69c
packages) for Perl modules from CPAN for Fedora.  The quality of the spec
465d69c
file is our primary concern.  It is assumed that maintainers will need to
465d69c
do some (hopefully small) amount of work to clean up the generated spec
465d69c
file to make the package build and to verify that all of the information
465d69c
contained in the spec file is correct.
b7f8540
b7f8540
%prep
b7f8540
%setup -q
b7f8540
b7f8540
%build
daa0a82
%{__perl} Build.PL installdirs=vendor
b7f8540
./Build
b7f8540
b7f8540
%install
b7f8540
rm -rf $RPM_BUILD_ROOT
b7f8540
b7f8540
./Build install destdir=$RPM_BUILD_ROOT
b7f8540
b7f8540
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
b0402d4
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
b7f8540
2dafe96
%{_fixperms} $RPM_BUILD_ROOT/*
b7f8540
b7f8540
# No tests.
b7f8540
#%check
b7f8540
#./Build test
b7f8540
b7f8540
%clean
b7f8540
rm -rf $RPM_BUILD_ROOT
b7f8540
b7f8540
%files
b7f8540
%defattr(-,root,root,-)
daa0a82
%doc Artistic BUGS Changes COPYING TODO
b7f8540
%{_bindir}/*
b7f8540
%{_mandir}/man1/*
b7f8540
b7f8540
%changelog
465d69c
* Mon Jun 16 2008 Steven Pritchard <steve@kspei.com> 1.77-1
465d69c
- Update to 1.77.
465d69c
465d69c
* Mon Jun 16 2008 Steven Pritchard <steve@kspei.com> 1.76-1
465d69c
- Update to 1.76.
465d69c
465d69c
* Thu Jun 12 2008 Steven Pritchard <steve@kspei.com> 1.75-2
465d69c
- Require rpm-build.
465d69c
465d69c
* Mon May 05 2008 Steven Pritchard <steve@kspei.com> 1.75-1
465d69c
- Update to 1.75 (which really fixes BZ#437804).
465d69c
- Require curl instead of wget (BZ#438245).
465d69c
- Update description.
465d69c
465d69c
* Mon Mar 17 2008 Steven Pritchard <steve@kspei.com> 1.74-3
465d69c
- Fix to work properly with 5.10.0 (BZ#437804).
465d69c
465d69c
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.74-2
465d69c
- Rebuild for new perl
465d69c
274c95d
* Tue Dec 11 2007 Steven Pritchard <steve@kspei.com> 1.74-1
274c95d
- Update to 1.74.
274c95d
- Update License tag.
274c95d
7c56e6a
* Sun Jul 22 2007 Steven Pritchard <steve@kspei.com> 1.73-1
7c56e6a
- Update to 1.73.
7c56e6a
de29f7e
* Fri Jul 13 2007 Steven Pritchard <steve@kspei.com> 1.72-1
de29f7e
- Update to 1.72.
de29f7e
daa0a82
* Fri Jun 29 2007 Steven Pritchard <steve@kspei.com> 1.71-1
daa0a82
- Update to 1.71.
daa0a82
- Remove "Extras" from the description.
daa0a82
- Use the __perl macro instead of calling perl directly.
daa0a82
6993379
* Mon Mar 12 2007 Steven Pritchard <steve@kspei.com> 1.70-1
6993379
- Update to 1.70.
6993379
a7f8717
* Mon Oct 16 2006 Steven Pritchard <steve@kspei.com> 1.69.1-1
a7f8717
- Update to 1.69.1.
a7f8717
2dafe96
* Tue Oct 03 2006 Steven Pritchard <steve@kspei.com> 1.69-1
2dafe96
- Update to 1.69.
2dafe96
- Use _fixperms macro instead of our own chmod incantation.
2dafe96
b0402d4
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.68-2
b0402d4
- Fix find option order.
b0402d4
d7bb496
* Thu Jul 20 2006 Steven Pritchard <steve@kspei.com> 1.68-1
d7bb496
- Update to 1.68.
d7bb496
- Include Changes.
d7bb496
287f8fc
* Thu Jul 13 2006 Steven Pritchard <steve@kspei.com> 1.67-1
287f8fc
- Update to 1.67.
287f8fc
4c819ce
* Thu May 18 2006 Steven Pritchard <steve@kspei.com> 1.66-1
4c819ce
- Update to 1.66.
4c819ce
- Drop regex patch.
4c819ce
- cpanspec now uses repoquery.
4c819ce
4332c79
* Thu May 04 2006 Steven Pritchard <steve@kspei.com> 1.65-2
4332c79
- Add cpanspec-1.65-regex.patch (fix broken regex, from 1.66 CVS).
4332c79
18f48fb
* Wed Apr 26 2006 Steven Pritchard <steve@kspei.com> 1.65-1
18f48fb
- Update to 1.65.
18f48fb
- cpanget requires wget.
18f48fb
5795230
* Wed Mar 24 2006 Steven Pritchard <steve@kspei.com> 1.64-1
5795230
- Update to 1.64.
5795230
de7485f
* Wed Mar 24 2006 Steven Pritchard <steve@kspei.com> 1.63-1
de7485f
- Update to 1.63.
de7485f
5bac757
* Wed Mar 22 2006 Steven Pritchard <steve@kspei.com> 1.62-1
5bac757
- Update to 1.62.
5bac757
86101f7
* Sat Mar 11 2006 Steven Pritchard <steve@kspei.com> 1.61-1
86101f7
- Update to 1.61.
86101f7
af24b42
* Tue Mar 07 2006 Steven Pritchard <steve@kspei.com> 1.60-1
af24b42
- Update to 1.60.
af24b42
b7f8540
* Wed Feb 01 2006 Steven Pritchard <steve@kspei.com> 1.59-2
b7f8540
- URL/Source0 on SourceForge.
b7f8540
- Use a more appropriate Group.
b7f8540
b7f8540
* Tue Sep 20 2005 Steven Pritchard <steve@kspei.com> 1.59-1
b7f8540
- Update to 1.59.
b7f8540
b7f8540
* Mon Sep 19 2005 Steven Pritchard <steve@kspei.com> 1.58-1
b7f8540
- Update to 1.58.
b7f8540
- Comment out bogus URL and Source0 URL.
b7f8540
b7f8540
* Fri Sep 16 2005 Steven Pritchard <steve@kspei.com> 1.55-1
b7f8540
- Update to 1.55.
b7f8540
- Include man page.
b7f8540
- Drop explicit module dependencies.  (rpmbuild will figure it out.)
b7f8540
b7f8540
* Fri Sep 16 2005 Steven Pritchard <steve@kspei.com> 1.54-1
b7f8540
- Update to 1.54.
b7f8540
b7f8540
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 1.49-1
b7f8540
- Update to 1.49.
b7f8540
- Remove unneeded BuildRequires (no tests).
b7f8540
- Remove explicit core module requirements.
b7f8540
b7f8540
* Sat Sep 03 2005 Steven Pritchard <steve@kspei.com> 1.46-1
b7f8540
- Initial rpm release.