2013-10-14 17:02:09 +00:00
|
|
|
%global php_extdir %(php-config --extension-dir 2>/dev/null || echo "undefined")
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
2017-03-07 22:20:17 +00:00
|
|
|
%global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so|%{php_extdir}/.*\\.so)$
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%global have_mongrel 0
|
|
|
|
|
2015-04-21 01:49:30 +00:00
|
|
|
# erlang-jsx is available in F19 but orphaned in F22
|
2013-10-14 17:02:09 +00:00
|
|
|
%global have_jsx 0
|
|
|
|
|
|
|
|
# We should be able to enable this in the future
|
|
|
|
%global want_d 0
|
|
|
|
|
|
|
|
# Thrift's Ruby support depends on Mongrel. Since Mongrel is
|
|
|
|
# deprecated in Fedora, we can't support Ruby bindings for Thrift
|
|
|
|
# unless and until Thrift is patched to use a different HTTP server.
|
|
|
|
%if 0%{?have_mongrel} == 0
|
|
|
|
%global ruby_configure --without-ruby
|
|
|
|
%global with_ruby 0
|
|
|
|
%else
|
|
|
|
%global ruby_configure --with-ruby
|
|
|
|
%global want_ruby 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Thrift's Erlang support depends on the JSX library, which is not
|
|
|
|
# currently available in Fedora.
|
|
|
|
|
|
|
|
%if 0%{?have_jsx} == 0
|
|
|
|
%global erlang_configure --without-erlang
|
|
|
|
%global want_erlang 0
|
|
|
|
%else
|
|
|
|
%global erlang_configure --with-erlang
|
|
|
|
%global want_erlang 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# PHP appears broken in Thrift 0.9.1
|
|
|
|
%global want_php 0
|
|
|
|
|
|
|
|
%if 0%{?want_php} == 0
|
|
|
|
%global php_langname %{nil}
|
|
|
|
%global php_configure --without-php
|
|
|
|
%else
|
|
|
|
%global php_langname PHP,\
|
|
|
|
%global php_configure --with-php
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Thrift's GO support doesn't build under Fedora
|
|
|
|
%global want_golang 0
|
|
|
|
%global golang_configure --without-go
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
Name: thrift
|
|
|
|
Version: 0.10.0
|
2017-03-13 23:58:01 +00:00
|
|
|
Release: 2%{?dist}
|
2017-03-07 22:20:17 +00:00
|
|
|
Summary: Software framework for cross-language services development
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
# Parts of the source are used under the BSD and zlib licenses, but
|
|
|
|
# these are OK for inclusion in an Apache 2.0-licensed whole:
|
2017-03-07 22:20:17 +00:00
|
|
|
# https://www.apache.org/legal/3party.html
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
# Here's the breakdown:
|
2017-03-07 22:20:17 +00:00
|
|
|
# ./lib/py/compat/win32/stdint.h is 2-clause BSD
|
|
|
|
# ./compiler/cpp/src/md5.[ch] are zlib
|
|
|
|
License: ASL 2.0 and BSD and zlib
|
|
|
|
URL: https://thrift.apache.org/
|
2013-10-14 17:02:09 +00:00
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
Source0: https://archive.apache.org/dist/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2013-10-14 17:02:09 +00:00
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
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
|
2013-10-14 17:02:09 +00:00
|
|
|
|
2017-03-13 23:58:01 +00:00
|
|
|
Source3: https://repo1.maven.org/maven2/org/apache/thrift/libfb303/%{version}/libfb303-%{version}.pom
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
# this patch is adapted from Gil Cattaneo's thrift-0.7.0 package
|
2017-03-07 22:20:17 +00:00
|
|
|
Patch0: %{name}-%{version}-buildxml.patch
|
2013-10-14 17:02:09 +00:00
|
|
|
# for fb303, excise maven ant tasks; build against system libraries; etc.
|
2017-03-07 22:20:17 +00:00
|
|
|
Patch1: fb303-%{version}-buildxml.patch
|
|
|
|
# fix configure.ac insistence on using /usr/local/lib for JAVA_PREFIX
|
|
|
|
Patch2: configure-java-prefix.patch
|
2017-03-14 09:22:22 +00:00
|
|
|
# fix for ppc64le builds not linking to /usr/lib64 directory
|
|
|
|
Patch3: fix-ppc64le-builds.patch
|
2013-10-14 17:02:09 +00:00
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
Group: Development/Libraries
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
# BuildRequires for language-specific bindings are listed under these
|
|
|
|
# subpackages, to facilitate enabling or disabling individual language
|
|
|
|
# bindings in the future
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
BuildRequires: ant >= 1.7
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: boost-devel
|
2017-03-13 23:58:01 +00:00
|
|
|
BuildRequires: boost-static
|
2017-03-07 22:20:17 +00:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: flex-devel
|
|
|
|
BuildRequires: glib2-devel
|
2017-03-13 23:58:01 +00:00
|
|
|
BuildRequires: libevent-devel
|
2017-03-07 22:20:17 +00:00
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: qt-devel
|
|
|
|
BuildRequires: texlive
|
|
|
|
BuildRequires: zlib-devel
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%if 0%{?want_golang} > 0
|
2017-03-07 22:20:17 +00:00
|
|
|
BuildRequires: golang
|
|
|
|
Requires: golang
|
2013-10-14 17:02:09 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
The Apache Thrift software framework for cross-language services
|
|
|
|
development combines a software stack with a code generation engine to
|
|
|
|
build services that work efficiently and seamlessly between C++, Java,
|
|
|
|
Python, %{?php_langname}and other languages.
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: boost-devel
|
2013-10-14 17:02:09 +00:00
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%description devel
|
2013-10-14 17:02:09 +00:00
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2015-04-08 14:37:46 +00:00
|
|
|
%package qt
|
|
|
|
Summary: Qt support for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description qt
|
|
|
|
The %{name}-qt package contains Qt bindings for %{name}.
|
|
|
|
|
|
|
|
%package glib
|
|
|
|
Summary: GLib support for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description glib
|
|
|
|
The %{name}-qt package contains GLib bindings for %{name}.
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n python2-%{name}
|
|
|
|
Summary: Python 2 support for %{name}
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: python2
|
|
|
|
Obsoletes: python-%{name} < 0.10.0-1%{?dist}
|
|
|
|
|
|
|
|
%description -n python2-%{name}
|
|
|
|
The python2-%{name} package contains Python bindings for %{name}.
|
|
|
|
|
|
|
|
%package -n perl-%{name}
|
|
|
|
Summary: Perl support for %{name}
|
|
|
|
Provides: perl(Thrift) = %{version}-%{release}
|
|
|
|
BuildRequires: perl(Bit::Vector)
|
|
|
|
BuildRequires: perl(Class::Accessor)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
Requires: perl(Bit::Vector)
|
|
|
|
Requires: perl(Encode)
|
|
|
|
Requires: perl(HTTP::Request)
|
|
|
|
Requires: perl(IO::Select)
|
|
|
|
Requires: perl(IO::Socket::INET)
|
|
|
|
Requires: perl(IO::String)
|
|
|
|
Requires: perl(LWP::UserAgent)
|
|
|
|
Requires: perl(POSIX)
|
|
|
|
Requires: perl(base)
|
|
|
|
Requires: perl(constant)
|
|
|
|
Requires: perl(strict)
|
|
|
|
Requires: perl(utf8)
|
|
|
|
Requires: perl(warnings)
|
|
|
|
BuildArch: noarch
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n perl-%{name}
|
|
|
|
The perl-%{name} package contains Perl bindings for %{name}.
|
|
|
|
|
|
|
|
%if %{?want_d}
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n d-%{name}
|
|
|
|
Summary: D support for %{name}
|
|
|
|
BuildRequires: ldc
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n d-%{name}
|
|
|
|
The d-%{name} package contains D bindings for %{name}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?want_php} != 0
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n php-%{name}
|
|
|
|
Summary: PHP support for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: php(zend-abi) = %{php_zend_api}
|
|
|
|
Requires: php(api) = %{php_core_api}
|
|
|
|
Requires: php(language) >= 5.3.0
|
|
|
|
Requires: php-date
|
|
|
|
Requires: php-json
|
|
|
|
BuildRequires: php-devel
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n php-%{name}
|
|
|
|
The php-%{name} package contains PHP bindings for %{name}.
|
|
|
|
%endif
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n lib%{name}-javadoc
|
|
|
|
Summary: API documentation for java-%{name}
|
|
|
|
Requires: lib%{name}-java = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n lib%{name}-javadoc
|
|
|
|
The lib%{name}-javadoc package contains API documentation for the
|
|
|
|
Java bindings for %{name}.
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n lib%{name}-java
|
|
|
|
Summary: Java support for %{name}
|
|
|
|
|
|
|
|
BuildRequires: apache-commons-codec
|
|
|
|
BuildRequires: apache-commons-lang
|
|
|
|
BuildRequires: apache-commons-logging
|
|
|
|
BuildRequires: httpcomponents-client
|
|
|
|
BuildRequires: httpcomponents-core
|
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: javapackages-tools
|
|
|
|
BuildRequires: junit
|
|
|
|
BuildRequires: log4j
|
|
|
|
BuildRequires: slf4j
|
|
|
|
BuildRequires: tomcat-servlet-3.1-api
|
|
|
|
|
|
|
|
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
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n lib%{name}-java
|
|
|
|
The lib%{name}-java package contains Java bindings for %{name}.
|
|
|
|
|
|
|
|
%if 0%{?want_ruby} > 0
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n ruby-%{name}
|
|
|
|
Summary: Ruby support for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: ruby(release)
|
|
|
|
BuildRequires: ruby-devel
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n ruby-%{name}
|
|
|
|
The ruby-%{name} package contains Ruby bindings for %{name}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?want_erlang} > 0
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n erlang-%{name}
|
|
|
|
Summary: Erlang support for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: erlang
|
|
|
|
Requires: erlang-jsx
|
|
|
|
BuildRequires: erlang
|
|
|
|
BuildRequires: erlang-rebar
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n erlang-%{name}
|
|
|
|
The erlang-%{name} package contains Erlang bindings for %{name}.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package -n fb303
|
2017-03-07 22:20:17 +00:00
|
|
|
Summary: Basic interface for Thrift services
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%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
|
2017-03-07 22:20:17 +00:00
|
|
|
Summary: Development files for fb303
|
|
|
|
Requires: fb303%{?_isa} = %{version}-%{release}
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n fb303-devel
|
|
|
|
The fb303-devel package contains header files for fb303
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%package -n python2-fb303
|
|
|
|
Summary: Python 2 bindings for fb303
|
|
|
|
Requires: fb303%{?_isa} = %{version}-%{release}
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
Obsoletes: python-fb303 < 0.10.0-1%{?dist}
|
2013-10-14 17:02:09 +00:00
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%description -n python2-fb303
|
|
|
|
The python2-fb303 package contains Python bindings for fb303.
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%package -n fb303-java
|
2017-03-07 22:20:17 +00:00
|
|
|
Summary: Java bindings for fb303
|
2017-03-13 23:58:01 +00:00
|
|
|
Requires: java-headless >= 1:1.6.0
|
2017-03-07 22:20:17 +00:00
|
|
|
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
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%description -n fb303-java
|
|
|
|
The fb303-java package contains Java bindings for fb303.
|
|
|
|
|
|
|
|
%prep
|
2017-03-07 22:20:17 +00:00
|
|
|
%autosetup -p1
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
%{?!el5:sed -i -e 's/^AC_PROG_LIBTOOL/LT_INIT/g' configure.ac}
|
|
|
|
|
|
|
|
# avoid spurious executable permissions in debuginfo package
|
|
|
|
find . -name \*.cpp -or -name \*.cc -or -name \*.h | xargs -r chmod 644
|
|
|
|
|
|
|
|
cp -p %{SOURCE2} bootstrap.sh
|
|
|
|
|
|
|
|
# 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 '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
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
# 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
|
|
|
|
|
2013-10-14 17:02:09 +00:00
|
|
|
%build
|
|
|
|
export PY_PREFIX=%{_prefix}
|
|
|
|
export PERL_PREFIX=%{_prefix}
|
|
|
|
export PHP_PREFIX=%{php_extdir}
|
|
|
|
export JAVA_PREFIX=%{_javadir}
|
|
|
|
export RUBY_PREFIX=%{_prefix}
|
|
|
|
export GLIB_LIBS=$(pkg-config --libs glib-2.0)
|
|
|
|
export GLIB_CFLAGS=$(pkg-config --cflags glib-2.0)
|
|
|
|
export GOBJECT_LIBS=$(pkg-config --libs gobject-2.0)
|
|
|
|
export GOBJECT_CFLAGS=$(pkg-config --cflags gobject-2.0)
|
|
|
|
|
|
|
|
find %{_builddir} -name rebar -exec rm -f '{}' \;
|
|
|
|
find . -name Makefile\* -exec sed -i -e 's/[.][/]rebar/rebar/g' {} \;
|
|
|
|
|
|
|
|
# install javadocs in proper places
|
|
|
|
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
|
|
|
|
|
|
|
|
# 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)
|
2017-03-13 23:58:01 +00:00
|
|
|
%configure --disable-dependency-tracking --disable-static --with-boost=/usr %{ruby_configure} %{erlang_configure} %{golang_configure} %{php_configure} --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
# eliminate unused direct shlib dependencies
|
|
|
|
sed -i -e 's/ -shared / -Wl,--as-needed\0/g' libtool
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
# build fb303
|
|
|
|
(
|
|
|
|
cd contrib/fb303
|
2017-03-07 22:20:17 +00:00
|
|
|
sed -i '/^[.][/]configure.*/d' bootstrap.sh
|
2013-10-14 17:02:09 +00:00
|
|
|
sh bootstrap.sh
|
|
|
|
%configure --disable-static --with-java --without-php --libdir=%{_libdir}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
(
|
|
|
|
cd java
|
|
|
|
ant dist
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
find %{buildroot} -name fastbinary.so | xargs -r chmod 755
|
|
|
|
find %{buildroot} -name \*.erl -or -name \*.hrl -or -name \*.app | xargs -r chmod 644
|
|
|
|
|
|
|
|
# Remove javadocs jar
|
|
|
|
find %{buildroot}/%{_javadir} -name lib%{name}-javadoc.jar -exec rm -f '{}' \;
|
|
|
|
|
|
|
|
# Add POM file and depmap
|
|
|
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
|
|
|
|
|
|
|
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-libthrift.pom
|
|
|
|
|
|
|
|
%add_maven_depmap JPP-libthrift.pom libthrift.jar
|
|
|
|
|
|
|
|
# Remove bundled jar files
|
|
|
|
find %{buildroot} -name \*.jar -a \! -name \*thrift\* -exec rm -f '{}' \;
|
|
|
|
|
|
|
|
# Move perl files into appropriate places
|
|
|
|
find %{buildroot} -name \*.pod -exec rm -f '{}' \;
|
|
|
|
find %{buildroot} -name .packlist -exec rm -f '{}' \;
|
|
|
|
find %{buildroot}/usr/lib/perl5 -type d -empty -delete
|
|
|
|
mkdir -p %{buildroot}/%{perl_vendorlib}/
|
|
|
|
mv %{buildroot}/usr/lib/perl5/* %{buildroot}/%{perl_vendorlib}
|
|
|
|
|
|
|
|
%if 0%{?want_php} != 0
|
|
|
|
|
|
|
|
# Move arch-independent php files into the appropriate place
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/php/
|
|
|
|
mv %{buildroot}/%{php_extdir}/Thrift %{buildroot}/%{_datadir}/php/
|
|
|
|
%endif # want_php
|
|
|
|
|
|
|
|
# Fix permissions on Thread.h
|
|
|
|
find %{buildroot} -name Thread.h -exec chmod a-x '{}' \;
|
|
|
|
|
|
|
|
# install fb303
|
|
|
|
(
|
|
|
|
cd contrib/fb303
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
(
|
|
|
|
cd java
|
|
|
|
ant -Dinstall.path=%{buildroot}%{_javadir} -Dinstall.javadoc.path=%{buildroot}%{_javadocdir}/fb303 install
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
# install maven pom and depmaps for fb303
|
2017-03-13 23:58:01 +00:00
|
|
|
install -pm 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/JPP-libfb303.pom
|
2013-10-14 17:02:09 +00:00
|
|
|
%add_maven_depmap JPP-libfb303.pom libfb303.jar -f "fb303"
|
|
|
|
|
|
|
|
# Ensure all python scripts are executable
|
|
|
|
find %{buildroot} -name \*.py -exec grep -q /usr/bin/env {} \; -print | xargs -r chmod 755
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
%{_bindir}/thrift
|
2015-04-08 14:37:46 +00:00
|
|
|
%{_libdir}/libthrift-%{version}.so
|
|
|
|
%{_libdir}/libthriftz-%{version}.so
|
2017-03-13 23:58:01 +00:00
|
|
|
%{_libdir}/libthriftnb-%{version}.so
|
2013-10-14 17:02:09 +00:00
|
|
|
|
2015-04-08 14:37:46 +00:00
|
|
|
%files glib
|
|
|
|
%{_libdir}/libthrift_c_glib.so
|
|
|
|
%{_libdir}/libthrift_c_glib.so.*
|
|
|
|
|
|
|
|
%files qt
|
|
|
|
%{_libdir}/libthriftqt.so
|
|
|
|
%{_libdir}/libthriftqt-%{version}.so
|
|
|
|
|
2013-10-14 17:02:09 +00:00
|
|
|
%files devel
|
|
|
|
%{_includedir}/thrift
|
|
|
|
%exclude %{_includedir}/thrift/fb303
|
|
|
|
%{_libdir}/*.so
|
2017-03-07 22:20:17 +00:00
|
|
|
%{_libdir}/*.so.0
|
|
|
|
%{_libdir}/*.so.0.0.0
|
2013-10-16 19:16:08 +00:00
|
|
|
%exclude %{_libdir}/lib*-%{version}.so
|
2013-10-14 17:02:09 +00:00
|
|
|
%exclude %{_libdir}/libfb303.so
|
|
|
|
%{_libdir}/pkgconfig/thrift-z.pc
|
|
|
|
%{_libdir}/pkgconfig/thrift-qt.pc
|
2017-03-13 23:58:01 +00:00
|
|
|
%{_libdir}/pkgconfig/thrift-nb.pc
|
2013-10-14 17:02:09 +00:00
|
|
|
%{_libdir}/pkgconfig/thrift.pc
|
|
|
|
%{_libdir}/pkgconfig/thrift_c_glib.pc
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
%files -n perl-%{name}
|
|
|
|
%{perl_vendorlib}/Thrift
|
|
|
|
%{perl_vendorlib}/Thrift.pm
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
%if 0%{?want_php} != 0
|
|
|
|
%files -n php-%{name}
|
|
|
|
%config(noreplace) /etc/php.d/thrift_protocol.ini
|
|
|
|
%{_datadir}/php/Thrift/
|
|
|
|
%{php_extdir}/thrift_protocol.so
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{?want_erlang} > 0
|
|
|
|
%files -n erlang-%{name}
|
|
|
|
%{_libdir}/erlang/lib/%{name}-%{version}/
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
%endif
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%files -n python2-%{name}
|
|
|
|
%{python2_sitearch}/%{name}
|
|
|
|
%{python2_sitearch}/%{name}-%{version}-py%{python2_version}.egg-info
|
2013-10-14 17:02:09 +00:00
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
%files -n lib%{name}-javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
2014-06-27 13:18:25 +00:00
|
|
|
%files -n lib%{name}-java -f .mfiles
|
2013-10-14 17:02:09 +00:00
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
%files -n fb303
|
|
|
|
%{_datarootdir}/fb303
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
%files -n fb303-devel
|
|
|
|
%{_libdir}/libfb303.so
|
|
|
|
%{_includedir}/thrift/fb303
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
%files -n python2-fb303
|
|
|
|
%{python2_sitelib}/fb303
|
|
|
|
%{python2_sitelib}/fb303_scripts
|
|
|
|
%{python2_sitelib}/%{name}_fb303-%{version}-py%{python2_version}.egg-info
|
2013-10-14 17:02:09 +00:00
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
2014-06-27 13:18:25 +00:00
|
|
|
%files -n fb303-java -f .mfiles-fb303
|
2013-10-14 17:02:09 +00:00
|
|
|
%doc LICENSE NOTICE
|
|
|
|
|
|
|
|
%changelog
|
2017-03-13 23:58:01 +00:00
|
|
|
* Mon Mar 13 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 0.10.0-2
|
|
|
|
- Build TNonblockingServer, remove useless man page, and use java-headless
|
|
|
|
|
2017-03-07 22:20:17 +00:00
|
|
|
* Tue Mar 07 2017 Christopher Tubbs <ctubbsii@fedoraproject.org> - 0.10.0-1
|
|
|
|
- Update to thrift 0.10.0
|
|
|
|
|
2017-02-11 15:54:29 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-17.6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-07-19 12:51:12 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-17.5
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-05-17 02:49:36 +00:00
|
|
|
* Tue May 17 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.9.1-17.4
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-03-30 12:53:32 +00:00
|
|
|
* Wed Mar 30 2016 Petr Pisar <ppisar@redhat.com> - 0.9.1-17.3
|
|
|
|
- Adapt to GCC 6 (bug #1306671)
|
|
|
|
|
2016-02-05 01:34:38 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-17.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-16 00:37:14 +00:00
|
|
|
* Sat Jan 16 2016 Jonathan Wakely <jwakely@redhat.com> - 0.9.1-17.1
|
|
|
|
- Rebuilt for Boost 1.60
|
|
|
|
|
2015-11-23 13:08:21 +00:00
|
|
|
* Mon Nov 23 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.9.1-17
|
|
|
|
- Fix release
|
|
|
|
|
2015-10-21 10:41:16 +00:00
|
|
|
* Wed Oct 21 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.9.1-16.6
|
|
|
|
- Backport THRIFT-2214 fix to get package built on aarch64.
|
|
|
|
|
2015-08-27 18:39:54 +00:00
|
|
|
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.9.1-16.5
|
|
|
|
- Rebuilt for Boost 1.59
|
|
|
|
|
2015-07-29 18:26:45 +00:00
|
|
|
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-16.4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
|
|
|
|
|
2015-07-22 17:40:08 +00:00
|
|
|
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.9.1-16.3
|
|
|
|
- rebuild for Boost 1.58
|
|
|
|
|
2015-06-19 02:51:39 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-16.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-06 16:11:50 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.9.1-16.1
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2015-04-24 15:11:20 +00:00
|
|
|
* Fri Apr 24 2015 Michal Srb <msrb@redhat.com> - 0.9.1-16
|
|
|
|
- Fix FTBFS (Resolves: rhbz#1195364)
|
2015-04-21 01:49:30 +00:00
|
|
|
|
|
|
|
* Mon Apr 20 2015 Will Benton <willb@redhat.com> - 0.9.1-15
|
|
|
|
- Dropped Erlang support for F22 and above, since erlang-jsx is orphaned
|
|
|
|
|
2015-04-08 14:37:46 +00:00
|
|
|
* Wed Apr 8 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.1-14
|
|
|
|
- Split Qt4/GLib runtimes into separate subpackages
|
|
|
|
- Drop mono support, it's broken and not even shipped (and it pulls mono-core)
|
|
|
|
|
2015-01-26 21:02:12 +00:00
|
|
|
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 0.9.1-13.3
|
|
|
|
- Rebuild for boost 1.57.0
|
2014-08-28 19:24:22 +00:00
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.9.1-13.2
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-08-18 05:39:14 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-13.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-27 13:18:25 +00:00
|
|
|
* Fri Jun 27 2014 Petr Pisar <ppisar@redhat.com> - 0.9.1-13
|
|
|
|
- Use add_maven_depmap-generated file lists (bug #1107448)
|
|
|
|
|
2014-06-08 08:29:36 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-12.2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-23 02:42:07 +00:00
|
|
|
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.9.1-12.1
|
|
|
|
- Rebuild for boost 1.55.0
|
|
|
|
|
2014-05-05 09:39:14 +00:00
|
|
|
* Mon May 05 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.9.1-12
|
|
|
|
- Fix EPEL build
|
2013-12-20 18:07:32 +00:00
|
|
|
|
2014-02-21 14:53:32 +00:00
|
|
|
* Fri Feb 21 2014 willb <willb@redhat> - 0.9.1-11
|
|
|
|
- fix BZ 1068561
|
|
|
|
|
2013-12-20 18:07:32 +00:00
|
|
|
* Fri Dec 20 2013 willb <willb@redhat> - 0.9.1-10
|
|
|
|
- fix BZ 1045544
|
|
|
|
|
2013-10-16 19:16:08 +00:00
|
|
|
* Wed Oct 16 2013 willb <willb@redhat> - 0.9.1-9
|
|
|
|
- Remove spurious dependencies
|
|
|
|
- Move some versioned shared libraries from -devel
|
|
|
|
|
2013-10-16 10:07:17 +00:00
|
|
|
* Wed Oct 16 2013 Dan Horák <dan[at]danny.cz> - 0.9.1-8
|
|
|
|
- Mono available only on selected arches
|
2013-10-14 17:02:09 +00:00
|
|
|
|
|
|
|
* Sun Oct 13 2013 willb <willb@redhat> - 0.9.1-7
|
|
|
|
- minor specfile cleanups
|
|
|
|
|
|
|
|
* Fri Oct 11 2013 willb <willb@redhat> - 0.9.1-6
|
|
|
|
- added thrift man page
|
|
|
|
- integrated fb303
|
|
|
|
- fixed many fb303 library dependency problems
|
|
|
|
|
|
|
|
* Tue Oct 1 2013 willb <willb@redhat> - 0.9.1-5
|
|
|
|
- fixed extension library linking when an older thrift package is not
|
|
|
|
already installed
|
|
|
|
- fixed extension library dependencies in Makefile
|
|
|
|
|
|
|
|
* Tue Oct 1 2013 willb <willb@redhat> - 0.9.1-4
|
|
|
|
- addresses rpmlint warnings and errors
|
|
|
|
- properly links glib, qt, and z extension libraries
|
|
|
|
|
|
|
|
* Mon Sep 30 2013 willb <willb@redhat> - 0.9.1-3
|
|
|
|
- adds QT support
|
|
|
|
- clarified multiple licensing
|
|
|
|
- uses parallel make
|
|
|
|
- removes obsolete M4 macros
|
|
|
|
- specifies canonical location for source archive
|
|
|
|
|
|
|
|
* Tue Sep 24 2013 willb <willb@redhat> - 0.9.1-2
|
|
|
|
- fixes for i686
|
|
|
|
- fixes bogus requires for Java package
|
|
|
|
|
|
|
|
* Fri Sep 20 2013 willb <willb@redhat> - 0.9.1-1
|
|
|
|
- updated to upstream version 0.9.1
|
|
|
|
- disables PHP support, which FTBFS in this version
|
|
|
|
|
|
|
|
* Fri Sep 20 2013 willb <willb@redhat> - 0.9.0-5
|
|
|
|
- patch build xml to generate unversioned jars instead of moving after the fact
|
|
|
|
- unversioned doc dirs on Fedora versions where this is appropriate
|
|
|
|
- replaced some stray hardcoded paths with macros
|
|
|
|
- thanks to Gil for the above observations and suggestions for fixes
|
|
|
|
|
|
|
|
* Thu Aug 22 2013 willb <willb@redhat> - 0.9.0-4
|
|
|
|
- removed version number from jar name (obs pmackinn)
|
|
|
|
|
|
|
|
* Thu Aug 22 2013 willb <willb@redhat> - 0.9.0-3
|
|
|
|
- Fixes for F19 and Erlang support
|
|
|
|
|
|
|
|
* Thu Aug 15 2013 willb <willb@redhat> - 0.9.0-2
|
|
|
|
- Incorporates feedback from comments on review request
|
|
|
|
|
|
|
|
* Mon Jul 1 2013 willb <willb@redhat> - 0.9.0-1
|
|
|
|
- Initial package
|