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