Christoph Maser wrote:
> Am Dienstag, den 07.07.2009, 18:32 +0200 schrieb Joe Ogulin:
>> Error: Missing Dependency: perl(Normalize::Text::Normalize_Fields) is
>> needed by package
>> perl-MP3-Tag-1.11-1.el5.rf.noarch (rpmforge)
>>
>
> This one i broken. Seems like a mistake from find-requires skript. Is it
> ok to simply put "Provides: perl(Normalize::Text::Normalize_Fields)" in
> the spec of MP3-Tag? Or is there a way to remove things from requires
> list?
The attached works for me. It was generated by cpanspec and I added lines
from the rpmforge spec to handle the man and bin files.
--
David Steinbrunner
Name: perl-MP3-Tag
Version: 1.11
Release: 1%{?dist}
Summary: Module for reading tags of MP3 audio files
License: CHECK(GPL+ or Artistic)
Group: Development/Libraries
URL: http://search.cpan.org/dist/MP3-Tag/
Source0:
http://www.cpan.org/authors/id/I/IL/ILYAZ/modules/MP3-Tag-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
%description
MP3::Tag is a wrapper module to read different tags of mp3 files. It
provides an easy way to access the functions of separate modules which do
the handling of reading/writing the tags itself.
%prep
%setup -q -n MP3-Tag-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc cddb.tm cddb.tmp Changes README.shrink README.txt test.mp3 TODO
%{perl_vendorlib}/*
%{_mandir}/man3/*
%doc %{_mandir}/man1/audio_rename.1*
%doc %{_mandir}/man1/mp3info2.1*
%doc %{_mandir}/man1/typeset_audio_dir.1*
%{_bindir}/audio_rename
%{_bindir}/mp3info2
%{_bindir}/typeset_audio_dir
%changelog
* Thu Jul 16 2009 fl 1.11-1
- Specfile autogenerated by cpanspec 1.78.
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users