SHA256
1
0
forked from pool/thrift
Dirk Stoecker 2014-02-22 20:05:33 +00:00 committed by Git OBS Bridge
parent 7b4e63a599
commit 6f29c64a2f
2 changed files with 48 additions and 12 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Feb 22 20:05:26 UTC 2014 - opensuse@dstoecker.de
- enable perl and python packages
-------------------------------------------------------------------
Thu Feb 20 20:49:32 UTC 2014 - opensuse@dstoecker.de

View File

@ -16,34 +16,62 @@
#
# hardcode the conditionals, so projectconfig needs to be modified.
%define _with_c 1
%define _with_perl 1
%define _with_python 1
#%#define _with_java 1
#%#define _with_ruby 1
%define _with_qt 1
%bcond_with perl
%bcond_with c
%bcond_with python
%bcond_with java
%bcond_with ruby
%bcond_with qt
Name: thrift
Version: 0.9.1
Release: 0
%define libversion 0_9_1
%define libname %{version}
Release: 0
Url: http://thrift.apache.org/
Source: http://apache.openmirror.de/thrift/0.9.1/%{name}-%{version}.tar.gz
Patch1: 0001-Add-missing-limits-header.patch
Patch2: 0002-TNonblockingServer-TLibEventTransport.patch
Patch3: 0003-TDenseProtocol.patch
Summary: Framework for scalable cross-language services development in C++, Java, Python, PHP, and Ruby
Summary: Framework for scalable cross-language services development
License: Apache-2.0
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: boost-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
# we build the gem separately
#BuildRequires: ruby-devel
#BuildRequires: java-devel
#%if %{with python}
%if %{with qt}
BuildRequires: qt-devel
%endif
%if %{with python}
BuildRequires: python-devel
#%endif
%endif
%if %{with c}
BuildRequires: glib2-devel
%endif
%if %{with java}
BuildRequires: java-devel
%endif
%if %{with ruby}
BuildRequires: ruby-devel
%endif
%if %{with perl}
BuildRequires: perl
BuildRequires: perl(Bit::Vector)
%endif
BuildRequires: bison
@ -128,11 +156,10 @@ Objective Caml, and Haskell.
%build
export CXXFLAGS="%{optflags} -fPIC"
export LDFLAGS="-Wl,--hash-style=sysv"
%{configure} --without-ruby
%{configure}
# ln -s fixes 0.9.1 build, should not be requires later
ln -s . test/cpp/.libs
make -j1
#%{?jobs:-j%jobs}
%install
pushd compiler/cpp
@ -144,8 +171,11 @@ popd
%if %{with python}
pushd lib/py
%makeinstall
#%#makeinstall
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}%{python_sitearch}
popd
%fdupes
%endif
%if %{with perl}
@ -182,13 +212,14 @@ popd
%defattr(-,root,root)
%{perl_vendorlib}/Thrift
%{perl_vendorlib}/Thrift.pm
/var/adm/perl-modules/thrift
%endif
%if %{with python}
%files -n python-thrift
%defattr(-,root,root)
%{py_sitedir}/*
#%#{py_sitedir}/*
%{python_sitearch}/thrift-%{version}-py%{py_ver}.egg-info
%{python_sitearch}/thrift
%endif
%changelog