Группа :: Разработка/Perl
Пакет: perl-RTF-Tokenizer
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pkgname RTF-Tokenizer
Name: perl-%pkgname
Summary: %pkgname - Tokenize RTF
Version: 1.20
Release: alt1
License: GPL or Artistic
Group: Development/Perl
URL: http://www.cpan.org
Source: http://www.cpan.org/authors/id/S/SA/SARGIE/RTF-Tokenizer-%{version}.tar.gz
Buildarch: noarch
BuildRequires: perl-IO-stringy perl-devel perl-Text-Diff
%description
RTF::Tokenizer is an object-orientated low-level RTF reader. If
you're looking to render RTF, or want a higher-level RTF processor,
this is not the module for you - you want RTF::Reader. This is the
sixth release of RTF::Tokenizer - it's faster, higher quality, and
implements the RTF standard better than any previous release.
%prep
%setup -q -n %pkgname-%version
%build
%perl_vendor_build
%install
%perl_vendor_install
mkdir -p %buildroot%_bindir/
install -m 755 eg/rtf{dump,diff} %buildroot%_bindir/
# There is a file in the package with a name starting with <tt>._</tt>,
# the file name pattern used by Mac OS X to store resource forks in non-native
# file systems. Such files are generally useless in packages and were usually
# accidentally included by copying complete directories from the source tarball.
find $RPM_BUILD_ROOT -name '._*' -size 1 -print0 | xargs -0 grep -lZ 'Mac OS X' -- | xargs -0 rm -f
%files
%doc README CHANGES
%_bindir/*
%perl_vendor_privlib/RTF*
%changelog
…
Полный changelog можно просмотреть здесь
%define pkgname RTF-Tokenizer
Name: perl-%pkgname
Summary: %pkgname - Tokenize RTF
Version: 1.20
Release: alt1
License: GPL or Artistic
Group: Development/Perl
URL: http://www.cpan.org
Source: http://www.cpan.org/authors/id/S/SA/SARGIE/RTF-Tokenizer-%{version}.tar.gz
Buildarch: noarch
BuildRequires: perl-IO-stringy perl-devel perl-Text-Diff
%description
RTF::Tokenizer is an object-orientated low-level RTF reader. If
you're looking to render RTF, or want a higher-level RTF processor,
this is not the module for you - you want RTF::Reader. This is the
sixth release of RTF::Tokenizer - it's faster, higher quality, and
implements the RTF standard better than any previous release.
%prep
%setup -q -n %pkgname-%version
%build
%perl_vendor_build
%install
%perl_vendor_install
mkdir -p %buildroot%_bindir/
install -m 755 eg/rtf{dump,diff} %buildroot%_bindir/
# There is a file in the package with a name starting with <tt>._</tt>,
# the file name pattern used by Mac OS X to store resource forks in non-native
# file systems. Such files are generally useless in packages and were usually
# accidentally included by copying complete directories from the source tarball.
find $RPM_BUILD_ROOT -name '._*' -size 1 -print0 | xargs -0 grep -lZ 'Mac OS X' -- | xargs -0 rm -f
%files
%doc README CHANGES
%_bindir/*
%perl_vendor_privlib/RTF*
%changelog
…
Полный changelog можно просмотреть здесь