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