From 18556ed1874c7509907ed316a68f76498ed4cda8 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 16 Jan 2025 18:03:33 +0800 Subject: [PATCH] drop useless perl(:MODULE_COMPAT) requirement --- thrift.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/thrift.spec b/thrift.spec index 6b37c25..289ed0d 100644 --- a/thrift.spec +++ b/thrift.spec @@ -38,9 +38,9 @@ %global lua_configure --without-lua Name: thrift Version: 0.14.0 -Release: 6 +Release: 7 Summary: Software framework for cross-language services development -License: ASL 2.0 and BSD and zlib +License: Apache-2.0 and BSD-3-Clause and Zlib URL: https://thrift.apache.org/ Source0: https://archive.apache.org/dist/thrift/%{version}/thrift-%{version}.tar.gz # wget https://repo1.maven.org/maven2/org/apache/thrift/libthrift/%{version}/libthrift-%{version}.pom @@ -104,7 +104,6 @@ Summary: Perl support for thrift Provides: perl(Thrift) = %{version}-%{release} BuildRequires: perl(Bit::Vector) perl(Class::Accessor) perl(ExtUtils::MakeMaker) BuildRequires: perl-generators -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Bit::Vector) perl(Encode) perl(HTTP::Request) perl(IO::Select) Requires: perl(IO::Socket::INET) perl(IO::String) perl(LWP::UserAgent) perl(POSIX) Requires: perl(base) perl(constant) perl(strict) perl(utf8) perl(warnings) @@ -219,7 +218,7 @@ popd %install %make_install -find %{buildroot} -name '*.la' -exec rm -f {} ';' +%delete_la find %{buildroot} -name fastbinary.so | xargs -r chmod 755 find %{buildroot} -name \*.erl -or -name \*.hrl -or -name \*.app | xargs -r chmod 644 find %{buildroot} -name \*.jar -a \! -name \*thrift\* -exec rm -f '{}' \; @@ -234,7 +233,6 @@ mv %{buildroot}/%{php_extdir}/Thrift %{buildroot}/%{_datadir}/php/ %endif # want_php find %{buildroot} -name Thread.h -exec chmod a-x '{}' \; find %{buildroot} -name \*.py -exec grep -q /usr/bin/env {} \; -print | xargs -r chmod 755 -%ldconfig_scriptlets install -d -m 755 %{buildroot}%{_datadir}/java/libthrift install -d -m 755 %{buildroot}%{_datadir}/maven-poms/libthrift @@ -303,6 +301,9 @@ cp libthrift_dir/pom.xml %{buildroot}%{_datadir}/maven-poms/libthrift/libthrift. %endif %changelog +* Thu Jan 16 2025 Funda Wang - 0.14.0-7 +- drop useless perl(:MODULE_COMPAT) requirement + * Thu May 18 2023 Wenlong Zhang - 0.14.0-6 - specify boost-libdir for loongarch64 -- Gitee