Use version macro replace the number
This commit is contained in:
parent
67c8cbb76a
commit
7a6091e770
13
thrift.spec
13
thrift.spec
@ -38,7 +38,7 @@
|
|||||||
%global lua_configure --without-lua
|
%global lua_configure --without-lua
|
||||||
Name: thrift
|
Name: thrift
|
||||||
Version: 0.14.0
|
Version: 0.14.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Software framework for cross-language services development
|
Summary: Software framework for cross-language services development
|
||||||
License: ASL 2.0 and BSD and zlib
|
License: ASL 2.0 and BSD and zlib
|
||||||
URL: https://thrift.apache.org/
|
URL: https://thrift.apache.org/
|
||||||
@ -94,8 +94,8 @@ The thrift-qt package contains GLib bindings for thrift.
|
|||||||
Summary: Python 3 support for thrift
|
Summary: Python 3 support for thrift
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
Requires: thrift%{?_isa} = %{version}-%{release} python3
|
Requires: thrift%{?_isa} = %{version}-%{release} python3
|
||||||
Obsoletes: python-thrift < 0.10.0-1%
|
Obsoletes: python-thrift < 0.10.0-1
|
||||||
Obsoletes: python2-thrift < 0.10.0-14%
|
Obsoletes: python2-thrift < 0.10.0-14
|
||||||
%description -n python3-thrift
|
%description -n python3-thrift
|
||||||
The python3-thrift package contains Python bindings for thrift.
|
The python3-thrift package contains Python bindings for thrift.
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ mkdir libthrift_dir
|
|||||||
cp %{SOURCE1} ./libthrift_dir/pom.xml
|
cp %{SOURCE1} ./libthrift_dir/pom.xml
|
||||||
cp %{SOURCE3} ./libthrift_dir
|
cp %{SOURCE3} ./libthrift_dir
|
||||||
pushd libthrift_dir
|
pushd libthrift_dir
|
||||||
jar -xvf libthrift-0.14.0-sources.jar
|
jar -xvf libthrift-%{version}-sources.jar
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -234,7 +234,7 @@ find %{buildroot} -name \*.py -exec grep -q /usr/bin/env {} \; -print | xargs -r
|
|||||||
|
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/java/libthrift
|
install -d -m 755 %{buildroot}%{_datadir}/java/libthrift
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/maven-poms/libthrift
|
install -d -m 755 %{buildroot}%{_datadir}/maven-poms/libthrift
|
||||||
cp libthrift_dir/target/libthrift-0.14.0.jar %{buildroot}%{_datadir}/java/libthrift/libthrift.jar
|
cp libthrift_dir/target/libthrift-%{version}.jar %{buildroot}%{_datadir}/java/libthrift/libthrift.jar
|
||||||
cp libthrift_dir/pom.xml %{buildroot}%{_datadir}/maven-poms/libthrift/libthrift.pom
|
cp libthrift_dir/pom.xml %{buildroot}%{_datadir}/maven-poms/libthrift/libthrift.pom
|
||||||
%add_maven_depmap libthrift/libthrift.pom libthrift/libthrift.jar -f "libthrift"
|
%add_maven_depmap libthrift/libthrift.pom libthrift/libthrift.jar -f "libthrift"
|
||||||
|
|
||||||
@ -299,6 +299,9 @@ cp libthrift_dir/pom.xml %{buildroot}%{_datadir}/maven-poms/libthrift/libthrift.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 30 2022 Cao Jingbo <caojb@chinatelecom.cn> - 0.14.0-5
|
||||||
|
- Use version macro relpace version number text.
|
||||||
|
|
||||||
* Wed Dec 28 2022 Cao Jingbo <caojb@chinatelecom.cn> - 0.14.0-4
|
* Wed Dec 28 2022 Cao Jingbo <caojb@chinatelecom.cn> - 0.14.0-4
|
||||||
- THRIFT-5348: Update debian/copyright [skip ci] Patch: Jihoon Seo
|
- THRIFT-5348: Update debian/copyright [skip ci] Patch: Jihoon Seo
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user