| |
@@ -58,8 +58,8 @@
|
| |
%global golang_configure --without-go
|
| |
|
| |
Name: thrift
|
| |
- Version: 0.10.0
|
| |
- Release: 20%{?dist}
|
| |
+ Version: 0.13.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Software framework for cross-language services development
|
| |
|
| |
# Parts of the source are used under the BSD and zlib licenses, but
|
| |
@@ -77,21 +77,10 @@
|
| |
Source1: https://repo1.maven.org/maven2/org/apache/thrift/lib%{name}/%{version}/lib%{name}-%{version}.pom
|
| |
Source2: https://raw.github.com/apache/%{name}/%{version}/bootstrap.sh
|
| |
|
| |
- Source3: https://repo1.maven.org/maven2/org/apache/thrift/libfb303/%{version}/libfb303-%{version}.pom
|
| |
-
|
| |
# this patch is adapted from Gil Cattaneo's thrift-0.7.0 package
|
| |
- Patch0: %{name}-%{version}-buildxml.patch
|
| |
- # for fb303, excise maven ant tasks; build against system libraries; etc.
|
| |
- Patch1: fb303-%{version}-buildxml.patch
|
| |
+ #Patch0: %{name}-%{version}-buildxml.patch
|
| |
# fix configure.ac insistence on using /usr/local/lib for JAVA_PREFIX
|
| |
Patch2: configure-java-prefix.patch
|
| |
- # fix for ppc64le builds not linking to /usr/lib64 directory
|
| |
- Patch3: fix-ppc64le-builds.patch
|
| |
- # fix for s390x build; incorporates fix for THRIFT-4177 with some code from THRIFT-4136
|
| |
- Patch4: THRIFT-4177.patch
|
| |
-
|
| |
- # Update fb303 for python3
|
| |
- Patch5: python3.patch
|
| |
|
| |
|
| |
# BuildRequires for language-specific bindings are listed under these
|
| |
@@ -114,7 +103,7 @@
|
| |
BuildRequires: libstdc++-devel
|
| |
BuildRequires: libtool
|
| |
BuildRequires: openssl-devel
|
| |
- BuildRequires: qt-devel
|
| |
+ BuildRequires: qt5-qtbase-devel
|
| |
BuildRequires: texlive
|
| |
BuildRequires: zlib-devel
|
| |
|
| |
@@ -278,46 +267,6 @@
|
| |
The erlang-%{name} package contains Erlang bindings for %{name}.
|
| |
%endif
|
| |
|
| |
- %package -n fb303
|
| |
- Summary: Basic interface for Thrift services
|
| |
- Requires: %{name}%{?_isa} = %{version}-%{release}
|
| |
-
|
| |
- %description -n fb303
|
| |
- fb303 is the shared root of all Thrift services; it provides a
|
| |
- standard interface to monitoring, dynamic options and configuration,
|
| |
- uptime reports, activity, etc.
|
| |
-
|
| |
- %package -n fb303-devel
|
| |
- Summary: Development files for fb303
|
| |
- Requires: fb303%{?_isa} = %{version}-%{release}
|
| |
-
|
| |
- %description -n fb303-devel
|
| |
- The fb303-devel package contains header files for fb303
|
| |
-
|
| |
- %package -n python3-fb303
|
| |
- Summary: Python 3 bindings for fb303
|
| |
- Requires: fb303%{?_isa} = %{version}-%{release}
|
| |
- BuildRequires: python3-devel
|
| |
- Obsoletes: python-fb303 < 0.10.0-1%{?dist}
|
| |
- Obsoletes: python2-fb303 < 0.10.0-14%{?dist}
|
| |
-
|
| |
- %description -n python3-fb303
|
| |
- The python3-fb303 package contains Python bindings for fb303.
|
| |
-
|
| |
- %if 0%{?want_java} > 0
|
| |
- %package -n fb303-java
|
| |
- Summary: Java bindings for fb303
|
| |
- Requires: java-headless >= 1:1.6.0
|
| |
- Requires: javapackages-tools
|
| |
- Requires: mvn(org.slf4j:slf4j-api)
|
| |
- Requires: mvn(commons-lang:commons-lang)
|
| |
- Requires: mvn(org.apache.httpcomponents:httpclient)
|
| |
- Requires: mvn(org.apache.httpcomponents:httpcore)
|
| |
- BuildArch: noarch
|
| |
-
|
| |
- %description -n fb303-java
|
| |
- The fb303-java package contains Java bindings for fb303.
|
| |
- %endif
|
| |
|
| |
%prep
|
| |
%autosetup -p1
|
| |
@@ -331,18 +280,13 @@
|
| |
|
| |
# work around linking issues
|
| |
echo 'libthrift_c_glib_la_LIBADD = $(GLIB_LIBS) $(GOBJECT_LIBS) -L../cpp/.libs ' >> lib/c_glib/Makefile.am
|
| |
- echo 'libthriftqt_la_LIBADD = $(QT_LIBS) -lthrift -L.libs' >> lib/cpp/Makefile.am
|
| |
+ echo 'libthriftqt5_la_LIBADD = $(QT_LIBS) -lthrift -L.libs' >> lib/cpp/Makefile.am
|
| |
echo 'libthriftz_la_LIBADD = $(ZLIB_LIBS) -lthrift -L.libs' >> lib/cpp/Makefile.am
|
| |
echo 'EXTRA_libthriftqt_la_DEPENDENCIES = libthrift.la' >> lib/cpp/Makefile.am
|
| |
echo 'EXTRA_libthriftz_la_DEPENDENCIES = libthrift.la' >> lib/cpp/Makefile.am
|
| |
|
| |
- # echo 'libfb303_so_LIBADD = -lthrift -L../../../lib/cpp/.libs' >> contrib/fb303/cpp/Makefile.am
|
| |
-
|
| |
- sed -i 's|libfb303_so_LDFLAGS = $(SHARED_LDFLAGS)|libfb303_so_LDFLAGS = $(SHARED_LDFLAGS) -lthrift -L../../../lib/cpp/.libs -Wl,--as-needed|g' contrib/fb303/cpp/Makefile.am
|
| |
-
|
| |
# fix broken upstream check for ant version; we enforce this with BuildRequires, so no need to check here
|
| |
sed -i 's|ANT_VALID=.*|ANT_VALID=1|' aclocal/ax_javac_and_java.m4
|
| |
- sed -i 's|ANT_VALID=.*|ANT_VALID=1|' contrib/fb303/aclocal/ax_javac_and_java.m4
|
| |
|
| |
# explicitly set python3
|
| |
shopt -s globstar
|
| |
@@ -366,56 +310,22 @@
|
| |
sed -i 's|-Dinstall.javadoc.path=$(DESTDIR)$(docdir)/java|-Dinstall.javadoc.path=$(DESTDIR)%{_javadocdir}/%{name}|' lib/java/Makefile.*
|
| |
|
| |
# build a jar without a version number
|
| |
- sed -i 's|${thrift.artifactid}-${version}|${thrift.artifactid}|' lib/java/build.xml
|
| |
+ #sed -i 's|${thrift.artifactid}-${version}|${thrift.artifactid}|' lib/java/build.xml
|
| |
|
| |
# Proper permissions for Erlang files
|
| |
sed -i 's|$(INSTALL) $$p|$(INSTALL) --mode 644 $$p|g' lib/erl/Makefile.am
|
| |
|
| |
- # Build fb303 jars against the in-situ copy of thrift
|
| |
- sed -i 's|$(thrift_home)/bin/thrift|../../../compiler/cpp/thrift|g' \
|
| |
- contrib/fb303/cpp/Makefile.am \
|
| |
- contrib/fb303/py/Makefile.am
|
| |
-
|
| |
- sed -i 's|$(prefix)/lib$|%{_libdir}|g' contrib/fb303/cpp/Makefile.am
|
| |
-
|
| |
- sed -i 's|$(thrift_home)/include/thrift|../../../lib/cpp/src|g' \
|
| |
- contrib/fb303/cpp/Makefile.am
|
| |
-
|
| |
- # Create a straightforward makefile for Java fb303
|
| |
- echo "all:
|
| |
- ant
|
| |
- install: build/libfb303.jar
|
| |
- mkdir -p %{buildroot}%{_javadir}
|
| |
- /usr/bin/install -c -m 644 build/libfb303.jar %{buildroot}%{_javadir}
|
| |
- " > contrib/fb303/java/Makefile
|
| |
-
|
| |
sh ./bootstrap.sh
|
| |
|
| |
# use unversioned doc dirs where appropriate (via _pkgdocdir macro)
|
| |
export PYTHON=%{_bindir}/python3
|
| |
- %configure --disable-dependency-tracking --disable-static --with-boost=/usr %{java_configure} %{ruby_configure} %{erlang_configure} %{golang_configure} %{php_configure} --with-py3 --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
| |
+ %configure --disable-dependency-tracking --disable-static --with-boost=/usr %{java_configure} %{ruby_configure} %{erlang_configure} %{golang_configure} %{php_configure} --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
| |
|
| |
# eliminate unused direct shlib dependencies
|
| |
sed -i -e 's/ -shared / -Wl,--as-needed\0/g' libtool
|
| |
|
| |
make %{?_smp_mflags}
|
| |
|
| |
- # build fb303
|
| |
- (
|
| |
- cd contrib/fb303
|
| |
- sed -i '/^[.][/]configure.*/d' bootstrap.sh
|
| |
- sh bootstrap.sh
|
| |
- %configure --disable-static %{java_configure} --without-php --with-py3 --libdir=%{_libdir}
|
| |
- make %{?_smp_mflags}
|
| |
- )
|
| |
-
|
| |
- # build fb303 java
|
| |
- %if 0%{?want_java} > 0
|
| |
- (
|
| |
- cd contrib/fb303/java
|
| |
- ant dist
|
| |
- )
|
| |
- %endif
|
| |
|
| |
%install
|
| |
%make_install
|
| |
@@ -452,23 +362,6 @@
|
| |
# Fix permissions on Thread.h
|
| |
find %{buildroot} -name Thread.h -exec chmod a-x '{}' \;
|
| |
|
| |
- # install fb303
|
| |
- (
|
| |
- cd contrib/fb303
|
| |
- make DESTDIR=%{buildroot} install
|
| |
- )
|
| |
-
|
| |
- # install fb303 java
|
| |
- %if 0%{?want_java} > 0
|
| |
- (
|
| |
- cd contrib/fb303/java
|
| |
- ant -Dinstall.path=%{buildroot}%{_javadir} -Dinstall.javadoc.path=%{buildroot}%{_javadocdir}/fb303 install
|
| |
- )
|
| |
- # install maven pom and depmaps for fb303
|
| |
- install -pm 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/JPP-libfb303.pom
|
| |
- %add_maven_depmap JPP-libfb303.pom libfb303.jar -f "fb303"
|
| |
- %endif
|
| |
-
|
| |
# Ensure all python scripts are executable
|
| |
find %{buildroot} -name \*.py -exec grep -q /usr/bin/env {} \; -print | xargs -r chmod 755
|
| |
|
| |
@@ -486,19 +379,17 @@
|
| |
%{_libdir}/libthrift_c_glib.so.*
|
| |
|
| |
%files qt
|
| |
- %{_libdir}/libthriftqt.so
|
| |
- %{_libdir}/libthriftqt-%{version}.so
|
| |
+ %{_libdir}/libthriftqt5.so
|
| |
+ %{_libdir}/libthriftqt5-%{version}.so
|
| |
|
| |
%files devel
|
| |
%{_includedir}/thrift
|
| |
- %exclude %{_includedir}/thrift/fb303
|
| |
%{_libdir}/*.so
|
| |
%{_libdir}/*.so.0
|
| |
%{_libdir}/*.so.0.0.0
|
| |
%exclude %{_libdir}/lib*-%{version}.so
|
| |
- %exclude %{_libdir}/libfb303.so
|
| |
%{_libdir}/pkgconfig/thrift-z.pc
|
| |
- %{_libdir}/pkgconfig/thrift-qt.pc
|
| |
+ %{_libdir}/pkgconfig/thrift-qt5.pc
|
| |
%{_libdir}/pkgconfig/thrift-nb.pc
|
| |
%{_libdir}/pkgconfig/thrift.pc
|
| |
%{_libdir}/pkgconfig/thrift_c_glib.pc
|
| |
@@ -537,27 +428,13 @@
|
| |
%doc LICENSE NOTICE
|
| |
%endif
|
| |
|
| |
- %files -n fb303
|
| |
- %{_datarootdir}/fb303
|
| |
- %doc LICENSE NOTICE
|
| |
-
|
| |
- %files -n fb303-devel
|
| |
- %{_libdir}/libfb303.so
|
| |
- %{_includedir}/thrift/fb303
|
| |
- %doc LICENSE NOTICE
|
| |
-
|
| |
- %files -n python3-fb303
|
| |
- %{python3_sitelib}/fb303
|
| |
- %{python3_sitelib}/fb303_scripts
|
| |
- %{python3_sitelib}/%{name}_fb303-%{version}-py%{python3_version}.egg-info
|
| |
- %doc LICENSE NOTICE
|
| |
-
|
| |
- %if 0%{?want_java} > 0
|
| |
- %files -n fb303-java -f .mfiles-fb303
|
| |
- %doc LICENSE NOTICE
|
| |
- %endif
|
| |
|
| |
%changelog
|
| |
+ * Sun Dec 1 Orion Poplawski <orion@nwra.com> - 0.13.0-1
|
| |
+ - Update to 0.13.0 (bz#1778343)
|
| |
+ - Drops fb303 package
|
| |
+ - Switch to Qt5
|
| |
+
|
| |
* Thu Oct 03 2019 Miro HronĨok <mhroncok@redhat.com> - 0.10.0-20
|
| |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
| |
|
| |
It appears the fb303 has been dropped upstream - at least it no longer builds.
It also switches to qt5. Need to decide to change the sub-package name to qt5 as well.