Репозиторий Sisyphus
Последнее обновление: 18 сентября 2019 | Пакетов: 17444 | Посещений: 15120511
en ru br
Репозитории ALT
S:3.6.1.3-alt2
5.1: 2.1.0-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: protobuf

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define soversion 4

Name: protobuf
Version: 2.1.0
Release: alt1
Summary: Protocol Buffers - Google's data interchange format
License: Apache License 2.0
Group: System/Libraries
Url: http://code.google.com/p/protobuf/
Packager: Mikhail A Pokidko <pma at altlinux.ru>

Source: %name-%version.tar

Obsoletes: libprotobuf <= 2.0.0-alt1

# Automatically added by buildreq on Wed Nov 19 2008

BuildRequires: gcc-c++ glibc-devel-static python-devel

%description
Protocol Buffers are a way of encoding structured data in
an efficient yet extensible format. Google uses Protocol Buffers for
almost all of its internal RPC protocols and file formats.

%package compiler
Summary: Protocol Buffers Compiler
Group: Development/Other
Requires: lib%{name}%{soversion} = %version-%release

%description compiler
Compiler for protocol buffer definition files

%package -n lib%{name}%{soversion}
Summary: Protocol Buffer c++ library.
Group: System/Libraries

Provides: libprotobuf = %version-%release

%description -n lib%{name}%{soversion}
Protocol Buffers are a way of encoding structured data in
an efficient yet extensible format. Google uses Protocol Buffers for
almost all of its internal RPC protocols and file formats.

%package -n lib%{name}-devel
Summary: Development files for %name
Group: Development/C
Requires: lib%{name}%{soversion} = %version-%release

%description -n lib%{name}-devel
This package contains development files required for packaging
%name.

%package -n python-module-%name
Summary: Python module files for %name
Group: Development/Python
Requires: lib%{name}%{soversion} = %version-%release
BuildArch: noarch

%description -n python-module-%name
Python bindings for protocol buffers

#%%package java

#%Summary: Java binding files for %name%soversion
#Group: Development/Java
#
#BuildRequires:    java-devel >= 1.6
#BuildRequires:    jpackage-utils
#BuildRequires:    maven2
#BuildRequires:    maven2-plugin-compiler
#BuildRequires:    maven2-plugin-install
#BuildRequires:    maven2-plugin-jar
#BuildRequires:    maven2-plugin-javadoc
#BuildRequires:    maven2-plugin-release
#BuildRequires:    maven2-plugin-resources
#BuildRequires:    maven2-plugin-surefire
#BuildRequires:    maven2-plugin-antrun
#Requires:         java jpackage-utils
#
#%description java
#Java bindings for protocol buffers

%prep
%setup -q
rm -rf java/src/test

%build
rm -f m4/{lt*,libtool*}.m4
%autoreconf
%configure --disable-static
%make_build
pushd python
%__python setup.py build
popd

#pushd java

#export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
#mkdir -p $MAVEN_REPO_LOCAL
#mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL install javadoc:javadoc
#popd


%install
%makeinstall_std
mkdir -p %buildroot%python_sitelibdir/google/

pushd python
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
popd

#pushd java

#install -d -m 755 %{buildroot}%{_javadir}
#install -pm 644 target/%{name}-java-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
#
#install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
#cp -rp target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
#
#install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
#install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
##add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
#popd

%files compiler
%_bindir/protoc

%files -n lib%{name}4
%doc CONTRIBUTORS.txt README.txt examples/
%_libdir/*.so.*

%files -n lib%{name}-devel
%dir %_includedir/google/
%_includedir/google/protobuf/
%_libdir/*.so

%files -n python-module-%name -f python/INSTALLED_FILES
#python_sitelibdir/google/

#%files java

#%defattr(-, root, root, -)
#%{_datadir}/maven2/poms/JPP-protobuf.pom
#%{_mavendepmapfragdir}/protobuf
#%{_javadir}/*
#%doc examples/AddPerson.java examples/ListPeople.java

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin