use license macro

This commit is contained in:
Jens Petersen 2015-09-17 14:59:27 +09:00
parent 3bdadc8731
commit 699682e4b6
1 changed files with 10 additions and 4 deletions

View File

@ -6,7 +6,7 @@
Name: happy
# part of haskell-platform
Version: 1.19.5
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Parser Generator for Haskell
License: BSD
@ -91,9 +91,10 @@ cd ..
mv %{buildroot}%{_bindir}/%{name}{,.dynamic}
install dist/build/%{name}/%{name}.static %{buildroot}%{_bindir}
touch %{buildroot}%{_bindir}/%{name}
rm %{buildroot}%{_pkgdocdir}/LICENSE
%endif
rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
%check
%if %{with tests}
@ -148,7 +149,8 @@ fi
%ghost %{_bindir}/%{name}
%{_bindir}/%{name}.dynamic
%else
%doc ANNOUNCE CHANGES LICENSE README TODO doc/happy
%license LICENSE
%doc ANNOUNCE CHANGES README TODO doc/happy
%{_bindir}/%{name}
%{_datadir}/%{name}-%{version}
%endif
@ -156,7 +158,8 @@ fi
%if %{with static}
%files common
%doc ANNOUNCE CHANGES LICENSE README TODO doc/happy
%license LICENSE
%doc ANNOUNCE CHANGES README TODO doc/happy
%{_datadir}/%{name}-%{version}
@ -167,6 +170,9 @@ fi
%changelog
* Thu Sep 17 2015 Jens Petersen <petersen@redhat.com> - 1.19.5-4
- use license macro
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild