From bfa6ec614b1219ec95ae4f09b9a04a8d7e210938c6a343fe815169c7a1cc730f Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Mon, 25 Dec 2017 11:48:46 +0000 Subject: [PATCH] Accepting request 555058 from home:MargueriteSu:branches:M17N - add a pkgconfig file, fix boo#1068836 OBS-URL: https://build.opensuse.org/request/show/555058 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpprest?expand=0&rev=27 --- cpprest.changes | 5 +++++ cpprest.spec | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/cpprest.changes b/cpprest.changes index 9c59f06..fc3b3cb 100644 --- a/cpprest.changes +++ b/cpprest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 5 11:49:40 UTC 2017 - i@marguerite.su + +- add a pkgconfig file, fix boo#1068836 + ------------------------------------------------------------------- Thu Nov 16 18:28:44 UTC 2017 - astieger@suse.com diff --git a/cpprest.spec b/cpprest.spec index 5a15a3b..798b441 100644 --- a/cpprest.spec +++ b/cpprest.spec @@ -94,6 +94,22 @@ chmod -x %{buildroot}%{_includedir}/cpprest/oauth1.h cp build/Binaries/libcpprest.so.%{major}.%{minor} %{buildroot}%{_libdir}/ ln -sf libcpprest.so.%{major}.%{minor} %{buildroot}%{_libdir}/libcpprest.so +# create a pkgconfig file +install -d %{buildroot}%{_libdir}/pkgconfig +cat << EOF > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc +prefix=%{_prefix} +exec_prefix=%{_prefix} +libdir=%{_libdir} +includedir=%{_includedir} + +Name: %{name} +Description: cloud-based client-server communication +URL: %{url} +Version: %{version} +Libs: -L%{_libdir} -lcpprest +Cflags: -I%{_includedir}/cpprest -I%{_includedir}/pplx +EOF + %post -n libcpprest%{major}_%{minor} -p /sbin/ldconfig %postun -n libcpprest%{major}_%{minor} -p /sbin/ldconfig @@ -106,5 +122,6 @@ ln -sf libcpprest.so.%{major}.%{minor} %{buildroot}%{_libdir}/libcpprest.so %{_includedir}/%{name} %{_includedir}/pplx %{_libdir}/libcpprest.so +%{_libdir}/pkgconfig/%{name}.pc %changelog