Create sub-package for PathTools (Cwd) rhbz#680923.

Revert previous commit with Path-Tools.
This commit is contained in:
Marcela Mašláňová 2011-03-15 18:02:00 +01:00
parent 5e61ede315
commit a803d531fa
1 changed files with 15 additions and 18 deletions

View File

@ -21,7 +21,7 @@
Name: perl
Version: %{perl_version}
# release number must be even higher, becase dual-lived modules will be broken otherwise
Release: 155%{?dist}
Release: 156%{?dist}
Epoch: %{perl_epoch}
Summary: Practical Extraction and Report Language
Group: Development/Languages
@ -661,14 +661,15 @@ can be useful for, among others, setting up an autogenerated @EXPORT/@EXPORT_OK
for a Constants.pm file.
%package Path-Tools
%package PathTools
Summary: PathTools Perl module (Cwd, File::Spec)
Group: Development/Libraries
License: GPL+ or Artistic
License: (GPL+ or Artistic) and BSD
Epoch: 0
Version: 3.31
Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
%description Path-Tools
%description PathTools
PathTools Perl module (Cwd, File::Spec).
@ -922,9 +923,9 @@ Requires: perl-File-Fetch, perl-IO-Compress, perl-IO-Zlib,
Requires: perl-IPC-Cmd, perl-Locale-Maketext-Simple, perl-Log-Message, perl-Log-Message-Simple,
Requires: perl-Module-Build, perl-Module-CoreList, perl-Module-Load,
Requires: perl-Module-Load-Conditional, perl-Module-Loaded,
Requires: perl-Module-Pluggable, perl-Object-Accessor, perl-Package-Constants, perl-Path-Tools
Requires: perl-Params-Check, perl-Pod-Escapes, perl-Pod-Simple, perl-Scalar-List-Utils
Requires: perl-Term-UI, perl-Test-Harness, perl-Test-Simple, perl-Time-Piece, perl-version
Requires: perl-Module-Pluggable, perl-Object-Accessor, perl-Package-Constants, perl-PathTools
Requires: perl-Params-Check, perl-Pod-Escapes, perl-Pod-Simple, perl-Term-UI,
Requires: perl-Test-Harness, perl-Test-Simple, perl-Time-Piece, perl-version
Requires: perl-threads, perl-threads-shared, perl-parent, perl-Parse-CPAN-Meta
%description core
@ -1482,12 +1483,10 @@ rm -rf $RPM_BUILD_ROOT
%exclude %{privlib}/Package/
%exclude %{_mandir}/man3/Package::Constants*
# Path-Tools
%exclude %{archlib}/auto/Cwd/Cwd.so
# PathTools
%exclude %{archlib}/Cwd.pm
%exclude %{archlib}/File/Spec/*
%exclude %{archlib}/File/Spec.pm
%exclude %{_mandir}/man3/Cwd.3pm*
%exclude %{archlib}/File/Spec*
%exclude %{_mandir}/man3/Cwd*
%exclude %{_mandir}/man3/File::Spec*
# Params-Check
@ -1846,13 +1845,11 @@ rm -rf $RPM_BUILD_ROOT
%{privlib}/Package/
%{_mandir}/man3/Package::Constants*
%files Path-Tools
%files PathTools
%defattr(-,root,root,-)
%{archlib}/auto/Cwd/Cwd.so
%{archlib}/Cwd.pm
%{archlib}/File/Spec/*
%{archlib}/File/Spec.pm
%{_mandir}/man3/Cwd.3pm*
%{archlib}/File/Spec*
%{_mandir}/man3/Cwd*
%{_mandir}/man3/File::Spec*
%files Params-Check
@ -1965,7 +1962,7 @@ rm -rf $RPM_BUILD_ROOT
# Old changelog entries are preserved in CVS.
%changelog
* Tue Mar 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4:5.12.3-155
* Tue Mar 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 4:5.12.3-156
- sub-package Path-Tools
* Sat Feb 19 2011 Iain Arnell <iarnell@gmail.com> 4:5.12.3-154