# TODO # - BR for java, ruby, perl, more general BR # - Separate packages per each lang ? # - Fix ruby install # - Add Mono ? # - thrift-python -> python-trift ? Summary: Framework for scalable cross-language services development Summary(pl.UTF-8): Szkielet budowania skalowalnych usług dla różnych języków programowania Name: thrift Version: 0.2.0 Release: 0.2 License: - enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here) Group: Development/Libraries # http://www.apache.net.pl/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz Source0: http://www.apache.net.pl/incubator/thrift/%{version}-incubating/%{name}-%{version}-incubating.tar.gz # Source0-md5: 9958c57c402c02171ba0bcc96183505c Patch0: %{name}-Werror_strlcpy_fix.patch URL: http://incubator.apache.org/thrift/ BuildRequires: boost-devel >= 1.33.1 BuildRequires: python-devel >= 1:2.4 BuildRequires: zlib-devel >= 1.2.3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and OCaml. %description -l pl.UTF-8 Programowy szkielet dla rozwoju skalowanych usług dla różnych języków programowania. Zawiera oprogramowanie wraz silnikiem generowania kodu do tworzenie usług które spawnie działają pomiędzy C++, Javą, Pythonem, PHP, Rybym, Erlangiem, Perlem, Heskellem, C#, Cocoa, Smalltalikiem i Ocamlem. %package devel Summary: Header files for thrift Summary(pl.UTF-8): Pliki nagłówkowe thrift Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Header files for thrift. %description devel -l pl.UTF-8 Pliki nagłówkowe thrift. %package python Summary: Python thrift interface Summary(pl.UTF-8): Interfejs thrift dla Pythona Group: Development/Languages/Python Requires: %{name} = %{version}-%{release} %description python Python thrift interface. %description python -l pl.UTF-8 Interfejs thrift dla Pythona. %prep %setup -q %patch0 -p1 %build %configure \ --without-ruby %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %files devel %defattr(644,root,root,755) %{_libdir}/lib%{name}.so %{_libdir}/lib%{name}.la %{_libdir}/lib%{name}z.so %{_libdir}/lib%{name}z.la %{_includedir}/%{name} %files python %defattr(644,root,root,755) %{py_sitedir} %if "%{py_ver}" > "2.4" %{py_sitedir}/Thrift-*.egg-info %endif