Use %%license, Don't ship NEWS and Changlog, Ship developer docs in -devel

This commit is contained in:
Peter Robinson 2015-08-02 17:04:13 +01:00
parent d8ae2d8573
commit 069164991a

View File

@ -4,10 +4,11 @@
%else
%bcond_with oniguruma
%endif
Summary: The shared library for the S-Lang extension language
Name: slang
Version: 2.3.0
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2+
Group: System Environment/Libraries
Source: http://www.jedsoft.org/releases/%{name}/%{name}-%{version}.tar.bz2
@ -106,7 +107,9 @@ make check
%postun -p /sbin/ldconfig
%files
%doc COPYING NEWS doc/README changes.txt doc/*/slang*.txt doc/*.txt
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc NEWS
%{_libdir}/libslang*.so.*
%files slsh
@ -118,7 +121,7 @@ make check
%{_datadir}/slsh
%files devel
%doc doc/*/cslang*.txt doc/*/cref.txt
%doc doc/*/cslang*.txt doc/*/cref.txt doc/README doc/*/slang*.txt doc/*.txt
%{_libdir}/libslang*.so
%{_libdir}/pkgconfig/slang.pc
%{_includedir}/sl*.h
@ -128,6 +131,11 @@ make check
%{_libdir}/libslang*.a
%changelog
* Sun Aug 2 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.3.0-4
- Use %%license
- Don't ship NEWS and Changlog
- Ship developer docs in -devel
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild