summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWook Song <wook16.song@samsung.com>2020-09-15 16:48:57 +0900
committerYongjoo Ahn <yongjoo1.ahn@samsung.com>2022-12-02 16:37:25 +0900
commitbf572452976b9756bc1d1ba294c3e735c320b3db (patch)
tree8ff163cc9b172cbdf488cc9fe1cf006c897ce526
parent57880bd0f107b8f2adc0be3aecdda8c8f35c53bc (diff)
downloadflatbuffers-bf572452976b9756bc1d1ba294c3e735c320b3db.tar.gz
flatbuffers-bf572452976b9756bc1d1ba294c3e735c320b3db.tar.bz2
flatbuffers-bf572452976b9756bc1d1ba294c3e735c320b3db.zip
[Dist/Tizen] Revise the rpm spec file to include .pc in the dev package
This patch revises the rpm spec file to include the .pc file in the dev-kit package. Change-Id: I456b1fa494a38cd9cd1724863028a9b69ac7df4b Signed-off-by: Wook Song <wook16.song@samsung.com>
-rw-r--r--packaging/flatbuffers.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/packaging/flatbuffers.spec b/packaging/flatbuffers.spec
index d44c8384..1e6eed6f 100644
--- a/packaging/flatbuffers.spec
+++ b/packaging/flatbuffers.spec
@@ -10,6 +10,7 @@ Source1: %{name}.manifest
BuildRequires: cmake
BuildRequires: gcc-c++
+BuildRequires: sed
%description
FlatBuffers is a cross platform serialization library architected for maximum
@@ -51,6 +52,10 @@ export CXXFLAGS+=" -fno-lto"
%install
%{__make} DESTDIR=%{?buildroot:%{buildroot}} install
+install -D -m 644 packaging/%{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
+sed -i 's#@version@#%{version}#g' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
+sed -i 's#@libdir@#%{_libdir}#g' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
+sed -i 's#@includedir@#%{_includedir}#g' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
%post -p /sbin/ldconfig
@@ -60,7 +65,7 @@ export CXXFLAGS+=" -fno-lto"
%defattr(-,root,root,-)
%manifest %{name}.manifest
%license LICENSE.txt
-%{_libdir}/libflatbuffers.so*
+%{_libdir}/libflatbuffers.so.*
%files devel
%defattr(-,root,root,-)
@@ -68,8 +73,13 @@ export CXXFLAGS+=" -fno-lto"
%{_includedir}/flatbuffers
%{_libdir}/libflatbuffers.a
%{_libdir}/cmake/flatbuffers/*
+%{_libdir}/libflatbuffers.so
+%{_libdir}/pkgconfig/flatbuffers.pc
%changelog
+* Tue Sep 15 2020 Wook Song <wook16.song@samsung.com>
+- Add the pkg-config file to the dev-kit package
+
* Mon Aug 03 2020 Geunsik Lim <geunsik.lim@samsung.com>
- Release of 1.12.0 to support Tensorflow-Lite 2.x