1 Star 0 Fork 14

Venland/perl-XML-LibXML

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-XML-LibXML.spec 3.56 KB
一键复制 编辑 原始数据 按行查看 历史
Venland 提交于 2023-06-30 14:02 . update to version 2.0208
Name: perl-XML-LibXML
Version: 2.0208
Release: 1
Epoch: 1
Summary: Perl Binding for libxml2
License: (GPL+ or Artistic) and MIT
URL: https://metacpan.org/release/XML-LibXML
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz
BuildRequires: coreutils, findutils, glibc-common, libxml2-devel
BuildRequires: perl-interpreter, perl-devel, perl-generators, sed
BuildRequires: perl(Config), perl(Cwd), perl(Devel::CheckLib), perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec), perl(lib), perl(strict), perl(Symbol), perl(vars), perl(warnings)
BuildRequires: perl(base), perl(Carp), perl(constant), perl(Data::Dumper), perl(DynaLoader)
BuildRequires: perl(Encode), perl(Exporter), perl(IO::File), perl(IO::Handle), perl(overload)
BuildRequires: perl(parent), perl(Scalar::Util), perl(Tie::Hash), perl(XML::NamespaceSupport)
BuildRequires: perl(XML::SAX::Base), perl(XML::SAX::DocumentLocator), perl(XML::SAX::Exception)
BuildRequires: perl(Errno), perl(locale), perl(POSIX), perl(Test::More), perl(XML::SAX)
BuildRequires: perl(XML::SAX::ParserFactory), perl(URI::file), perl(utf8), perl(Alien::Base::Wrapper)
BuildRequires: perl(Alien::Libxml2)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)), perl-interpreter
Requires(preun): perl-interpreter
Provides: perl-XML-LibXML-Common = %{version}
Obsoletes: perl-XML-LibXML-Common <= 0.13
%description
This module is Perl Binding for libxml2, which implements a Perl interface to
the GNOME libxml2 library. This module provides interfaces for parsing and
manipulating XML files and allows Perl programmers to use the highly capable
validating XML parser and the high performance DOM implementation.
%package help
Summary: man files for perl-XML-LibXML
Requires: man
%description help
This package includes man files for perl-XML-LibXML.
%prep
%autosetup -n XML-LibXML-%{version} -p1
chmod -x *.c
for i in Changes; do
/usr/bin/iconv -f iso8859-1 -t utf-8 $i > $i.conv && /bin/mv -f $i.conv $i
done
sed -i -e '/^inc\// d' MANIFEST
%build
perl Makefile.PL SKIP_SAX_INSTALL=1 INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT NO_PACKLIST=1
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -delete
chmod -R u+w $RPM_BUILD_ROOT/*
%check
THREAD_TEST=0 make test
%triggerin -- perl-XML-SAX
for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do
/usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q($p))->save_parsers()" \
2>/dev/null || :
done
%preun
if [ $1 -eq 0 ] ; then
for p in XML::LibXML::SAX::Parser XML::LibXML::SAX ; do
/usr/bin/perl -MXML::SAX -e "XML::SAX->remove_parser(q($p))->save_parsers()" \
2>/dev/null || :
done
fi
%files
%license LICENSE
%doc HACKING.txt README
%{perl_vendorarch}/auto/XML
%{perl_vendorarch}/XML
%files help
%{_mandir}/man*/*
%changelog
* Fri Jun 30 2023 liweigang <[email protected]> - 1:2.0208-1
- update to version 2.0208
* Thu Jan 19 2023 yangbo <[email protected]> - 1:2.0207-4
- Correct some broken grammar / spelling / syntax / etc
* Wed Jan 18 2023 yangbo <[email protected]> - 1:2.0207-3
- Add <meta> sniffing warning
* Fri Nov 19 2021 yuanxin <[email protected]> - 1:2.0207-2
- delete the old tar package
* Thu Nov 18 2021 yuanxin <[email protected]> - 1:2.0207-1
- bump to version 2.0207
* Wed Jul 22 2020 dingyue <[email protected]> - 1:2.0205-1
- bump to version 2.0205
* Tue Nov 26 2019 openEuler Buildteam <[email protected]> - 1:2.0132-5
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Venland/perl-XML-LibXML.git
[email protected]:Venland/perl-XML-LibXML.git
Venland
perl-XML-LibXML
perl-XML-LibXML
master

搜索帮助