%global gitcommit 9e10362fce9072b104e6d5a51d6f56d939d1f36e %global gitcommit_short 9e10362 #%global debug_package %{nil} Summary: libsignal-protocol-c Name: libsignal-protocol-c Version: 2.3.%{gitcommit_short} Release: 2%{?dist} License: gplv3 Group: System Environment/Libraries URL: https://github.com/signalapp/libsignal-protocol-c Source: https://github.com/signalapp/libsignal-protocol-c/archive/%{gitcommit}.zip BuildRequires: cmake, libtool, gcc-c++ %description libsignal-protocol-c %package devel Summary: Header files and libraries for libsignal-protocol-c Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel libsignal-protocol-c %prep %setup -q -n libsignal-protocol-c-%{gitcommit} %build %cmake . %make_build %install %make_install %ldconfig_scriptlets %files %{!?_licensedir:%global license %%doc} %license LICENSE #%{_libdir}/libsignal-protocol-c.a #%{_libdir}/pkgconfig/libsignal-protocol-c.pc %{_libdir}/%{name}*.so.* #%{_includedir}/signal/* %files devel %{!?_licensedir:%global license %%doc} %license LICENSE #%{_libdir}/libsignal-protocol-c.a %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/%{name}*.so %{_includedir}/signal/*