File libltc.spec of Package libltc
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
%define _description \
Linear (or Longitudinal) Timecode (LTC) is an encoding of SMPTE\
timecode data as a Manchester-Biphase encoded audio signal. The audio\
signal is commonly recorded on a VTR track or other storage media.\
\
libltc provides functionality to encode and decode LTC audio from/to\
SMPTE or EBU timecode, including SMPTE date support.\
%define soname 11
Summary: Linear/longitudinal timecode library
Name: libltc
Version: 1.3.1
Release: 1
License: LGPL-3.0+
Group: System/Libraries
URL: https://github.com/x42/libltc
Source0: https://github.com/x42/libltc/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: doxygen
%description
%_description
%package -n %{name}%soname
Summary: Linear/longitudinal timecode library
Group: System/Libraries
%description -n %{name}%soname
%_description
libltc is the successor of libltcsmpte
(https://sourceforge.net/projects/ltcsmpte/).
%package devel
Summary: Linear/longitudinal timecode library
Group: Development/Libraries/C and C++
Requires: %{name}%soname == %{version}
Provides: pkgconfig(ltc)
%description devel
%_description
%prep
%setup -q
%build
%configure
%{__make} %{?_smp_mflags}
%{__make} dox
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/libltc.la
%check
%{__make} check
%clean
%{__rm} -rf %{buildroot}
%post -n %{name}%soname -p /sbin/ldconfig
%postun -n %{name}%soname -p /sbin/ldconfig
%files -n %{name}%soname
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README.md
%{_libdir}/libltc.so.*
%files devel
%defattr(-,root,root,-)
%doc doc/html
%{_includedir}/ltc.h
%{_libdir}/libltc.a
%{_libdir}/libltc.so
%{_libdir}/pkgconfig/ltc.pc
%doc %{_mandir}/man3/ltc.h.3.gz
%changelog