Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:cbcoutinho
avro
avro.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avro.spec of Package avro
# # spec file for package avro # # Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %if 0%{?suse_version} >= 1500 %define skip_python2 1 %endif Name: avro Version: 1.10.1 Release: 0 Summary: A data serialization library License: Apache-2.0 URL: https://avro.apache.org Source0: https://downloads.apache.org/%{name}/%{name}-%{version}/%{name}-src-%{version}.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: asciidoc BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libboost_filesystem-devel BuildRequires: libboost_iostreams-devel BuildRequires: libboost_program_options-devel BuildRequires: libboost_regex-devel BuildRequires: libboost_system-devel BuildRequires: libbz2-devel BuildRequires: libjansson-devel BuildRequires: liblzma5 BuildRequires: ninja #BuildRequires: java >= 1.8.0 #BuildRequires: maven-local #BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) #BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin) #BuildRequires: mvn(org.apache.maven.archetype:archetype-packaging) #BuildRequires: mvn(org.apache.maven.plugins:maven-archetype-plugin) #BuildRequires: mvn(org.codehaus.groovy:groovy) #BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) BuildRequires: python-rpm-macros BuildRequires: snappy-devel BuildRequires: zlib-devel %description Apache Avro is a data serialization system. Avro provides: - Rich data structures. - A compact, fast, binary data format. - A container file, to store persistent data. - Remote procedure call (RPC). - Simple integration with dynamic languages. Code generation is not required to read or write data files nor to use or implement RPC protocols. Code generation as an optional optimization, only worth implementing for statically typed languages. #%%package java #Group: Development/Libraries/Java #Summary: A Java library which implements parts of the Avro Specification #BuildArch: noarch #Requires: java >= 1.8.0 # #%%description java #A Java library which implements parts of the Avro Specification %package -n python-%{name} Summary: A Python library which implements parts of the Avro Specification Group: Development/Libraries/Python BuildRequires: %{python_module Twisted} BuildRequires: %{python_module python-snappy} BuildRequires: %{python_module zope.interface} Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch %python_subpackages %description -n python-%{name} A Python library which implements parts of the Avro Specification. %package -n lib%{name}23 Summary: A C library which implements parts of the Avro Specification Group: Development/Libraries/C and C++ %description -n lib%{name}23 A C library which implements parts of the Avro Specification. %package -n lib%{name}-devel Summary: Development files for lib%{name} Group: Development/Libraries/C and C++ %description -n lib%{name}-devel Development files for lib%{name} %package -n lib%{name}cpp1_10_1 Summary: A C++ library which implements parts of the Avro Specification Group: Development/Libraries/C and C++ %description -n lib%{name}cpp1_10_1 A C++ library which implements parts of the Avro Specification %package -n lib%{name}cpp-devel Summary: Development files for %{name}-c++ Group: Development/Libraries/C and C++ %description -n lib%{name}cpp-devel Development files for %{name}-c++ %prep %setup -q -n %{name}-src-%{version} pushd lang/py sed -i '1{\@^#!%{_bindir}/env python@d}' avro/*.py avro/tether/*.py avro/test/*.py popd #%%pom_remove_parent #%%pom_remove_plugin org.apache.rat:apache-rat-plugin #%%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin #%%pom_remove_plugin com.diffplug.spotless:spotless-maven-plugin #%%pom_disable_module lang/java #%%pom_disable_module avro lang/java #%%pom_disable_module compiler lang/java #%%pom_disable_module maven-plugin lang/java #%%pom_disable_module ipc lang/java #%%pom_disable_module ipc-jetty lang/java #%%pom_disable_module ipc-netty lang/java #%%pom_disable_module trevni lang/java #%%pom_disable_module tools lang/java #%%pom_disable_module mapred lang/java #%%pom_disable_module protobuf lang/java #%%pom_disable_module thrift lang/java #%%pom_disable_module archetypes lang/java #%%pom_disable_module grpc lang/java #%%pom_disable_module integration-test lang/java #%%pom_disable_module perf lang/java #%%pom_remove_plugin com.diffplug.spotless:spotless-maven-plugin lang/java #%%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin lang/java #%%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin lang/java/tools #%%pom_remove_plugin org.codehaus.mojo:javacc-maven-plugin lang/java #%%pom_remove_plugin org.codehaus.mojo:javacc-maven-plugin lang/java/compiler #%%pom_remove_plugin org.codehaus.mojo:build-helper-maven-plugin lang/java/compiler #%%pom_remove_plugin org.codehaus.mojo:exec-maven-plugin lang/java/compiler %build #%%mvn_build -s %define __builder ninja pushd lang/py %python_build popd pushd lang/c %cmake %cmake_build popd pushd lang/c++ %cmake %cmake_build popd %install pushd lang/py %python_install %python_clone -a %{buildroot}%{_bindir}/avro %python_expand %fdupes %{buildroot}%{$python_sitelib} popd pushd lang/c %cmake_install find %{buildroot} -name '*.a' -delete popd pushd lang/c++ %cmake_install find %{buildroot} -name '*.a' -delete mv %{buildroot}%{_prefix}/lib/lib* %{buildroot}%{_libdir} popd %if %{with tests} %check # test_server_with_path: tries to connect to apache.org pushd lang/py %pytest -k "not (server_with_path or tether or script)" popd %endif %post -n lib%{name}23 -p /sbin/ldconfig %post -n lib%{name}cpp1_10_1 -p /sbin/ldconfig %post -n python-%{name} %python_install_alternative %{name} %postun -n lib%{name}23 -p /sbin/ldconfig %postun -n lib%{name}cpp1_10_1 -p /sbin/ldconfig %postun -n python-%{name} %python_uninstall_alternative %{name} #%%files #%%defattr(-,root,root,-) #%%license LICENSE.txt #%%doc add-docs-here %files %{python_files} %python_alternative %{_bindir}/avro %{python_sitelib} %files -n lib%{name}23 %{_bindir}/avroappend %{_bindir}/avrocat %{_bindir}/avromod %{_bindir}/avropipe %{_libdir}/lib%{name}.so.* %files -n lib%{name}-devel %{_includedir}/%{name}.h %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}-c.pc %files -n lib%{name}cpp1_10_1 %{_bindir}/avrogencpp %{_libdir}/lib%{name}cpp*.so.* %files -n lib%{name}cpp-devel %dir %{_includedir}/%{name} %{_includedir}/%{name}/* %{_libdir}/lib%{name}cpp*.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor