%global git_commit_0 6027674bc2ef400147f1607d0252e5347163f2f7 %global git_snap_date 20170207 %global git_user analogdevicesinc %global git_project libad9361-iio %global git_short_commit_0 %(c=%{git_commit_0}; echo ${c:0:7}) Name: libad9361 Version: 0 Release: 0.2.%{git_snap_date}git%{git_short_commit_0}%{?dist} Summary: Library for access to Analog Devices AD9361 radio IC License: LGPLv2+ URL: https://github.com/%{git_user}/%{git_project}/ #Source0: https://github.com/%{git_user}/%{git_project}/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/%{git_user}/%{git_project}/archive/%{git_commit_0}/%{name}-%{git_short_commit_0}.tar.gz BuildRequires: gcc BuildRequires: cmake BuildRequires: pkgconfig(libiio) %description Library for access to Analog Devices AD9361 radio IC. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Files for development with %{name}. %prep %setup -q -n %{git_project}-%{git_commit_0} %build if [ "%{_libdir}" = "%{_prefix}/lib64" ]; then %cmake -DINSTALL_LIB_DIR=%{_libdir} . else %cmake . fi %make_build V=1 %install %make_install INSTALL='install -p' # Remove libtool archives. find %{buildroot} -name '*.la' -delete %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %{_libdir}/%{name}.so.* %files devel %{_includedir}/ad9361.h %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Tue Sep 19 2017 Eric Smith 0-0.2.20170207git6027674 - Update per package review (#1482246) comments. * Wed Aug 16 2017 Eric Smith 0-0.1.20170207git6027674 - Initial version.