diff options
author | Wook Song <wook16.song@samsung.com> | 2020-09-15 16:48:57 +0900 |
---|---|---|
committer | Gichan Jang <gichan2.jang@samsung.com> | 2021-05-13 11:43:50 +0900 |
commit | f36d79b5bbe4671b65fa40b6d252dd5fe29b9b40 (patch) | |
tree | a36999058b0c46617278ee8fafbfe787a7b5a516 | |
parent | c6e5c140fc5f7fa547efac081b45b0fe1b9139b5 (diff) | |
download | flatbuffers-f36d79b5bbe4671b65fa40b6d252dd5fe29b9b40.tar.gz flatbuffers-f36d79b5bbe4671b65fa40b6d252dd5fe29b9b40.tar.bz2 flatbuffers-f36d79b5bbe4671b65fa40b6d252dd5fe29b9b40.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.spec | 12 |
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 |