86 lines
2.5 KiB
RPMSpec
86 lines
2.5 KiB
RPMSpec
|
Name: flatbuffers
|
||
|
Version: 1.12.0
|
||
|
Release: 1mamba
|
||
|
Summary: A cross platform serialization library architected for maximum memory efficiency
|
||
|
Group: Applications/Development
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://google.github.io/flatbuffers
|
||
|
Source: https://github.com/google/flatbuffers.git/v%{version}/flatbuffers-%{version}.tar.bz2
|
||
|
License: Apache License 2.0
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: ldconfig
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: cmake
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.
|
||
|
|
||
|
%package -n lib%{name}
|
||
|
Group: System/Libraries
|
||
|
Summary: Shared libraries for %{name}
|
||
|
|
||
|
%description -n lib%{name}
|
||
|
This package contains shared libraries for %{name}.
|
||
|
|
||
|
%package -n lib%{name}-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description -n lib%{name}-devel
|
||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||
|
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
sed -i 's/-Werror=/-W/g;s/-Werror//g' CMakeLists.txt
|
||
|
|
||
|
%build
|
||
|
%cmake -d build \
|
||
|
-DFLATBUFFERS_BUILD_FLATLIB=OFF \
|
||
|
-DFLATBUFFERS_BUILD_SHAREDLIB=ON
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall -C build
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||
|
%postun -n lib%{name} -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/flatc
|
||
|
|
||
|
%files -n lib%{name}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libflatbuffers.so.*
|
||
|
%doc LICENSE.txt
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/flatbuffers
|
||
|
%{_includedir}/flatbuffers/*.h
|
||
|
%{_libdir}/libflatbuffers.so
|
||
|
%dir %{_libdir}/cmake/flatbuffers
|
||
|
%{_libdir}/cmake/flatbuffers/Flatbuffers*.cmake
|
||
|
%{_libdir}/cmake/flatbuffers/FlatcTargets*.cmake
|
||
|
|
||
|
%changelog
|
||
|
* Sun Sep 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12.0-1mamba
|
||
|
- package created using the webbuild interface
|