Use %%license

This commit is contained in:
Peter Robinson 2015-02-04 09:55:26 +00:00
parent 4f6a59ea6e
commit 173804235c

View File

@ -1,6 +1,6 @@
Name: sbc
Version: 1.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Sub Band Codec used by bluetooth A2DP
License: GPLv2 and LGPLv2+
@ -35,14 +35,16 @@ make %{?_smp_mflags} V=1
make install DESTDIR=%{buildroot} INSTALL='install -p'
#Remove libtool archives.
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -type f -name "*.la" -delete
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING AUTHORS ChangeLog
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc AUTHORS ChangeLog
%{_bindir}/sbc*
%{_libdir}/libsbc.so.1*
@ -52,6 +54,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%{_libdir}/libsbc.so
%changelog
* Wed Feb 4 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-2
- Use %%license
* Thu Nov 20 2014 Bastien Nocera <bnocera@redhat.com> 1.3-1
- Update to 1.3