forked from pool/cpprest
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
This commit is contained in:
17
cpprest.spec
17
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
|
||||
|
||||
Reference in New Issue
Block a user