fix license handling
This commit is contained in:
parent
788a6de5be
commit
4012c54b59
@ -5,10 +5,10 @@
|
|||||||
|
|
||||||
Name: python-iniparse
|
Name: python-iniparse
|
||||||
Version: 0.4
|
Version: 0.4
|
||||||
Release: 14%{?dist}
|
Release: 15%{?dist}
|
||||||
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
|
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: MIT
|
License: MIT and Python
|
||||||
URL: http://code.google.com/p/iniparse/
|
URL: http://code.google.com/p/iniparse/
|
||||||
Source0: http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz
|
Source0: http://iniparse.googlecode.com/files/iniparse-%{version}.tar.gz
|
||||||
Patch0: fix-issue-28.patch
|
Patch0: fix-issue-28.patch
|
||||||
@ -89,6 +89,10 @@ popd
|
|||||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||||
mv $RPM_BUILD_ROOT/usr/share/doc/iniparse-%{version} $RPM_BUILD_ROOT%{_pkgdocdir}
|
mv $RPM_BUILD_ROOT/usr/share/doc/iniparse-%{version} $RPM_BUILD_ROOT%{_pkgdocdir}
|
||||||
|
|
||||||
|
# Don't dupe the license
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}/LICENSE*
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/python3-iniparse/LICENSE*
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -104,17 +108,24 @@ popd
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc %{_pkgdocdir}
|
%doc %{_pkgdocdir}
|
||||||
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
%license LICENSE LICENSE-PSF
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-iniparse
|
%files -n python3-iniparse
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc %{_docdir}/python3-iniparse
|
%doc %{_docdir}/python3-iniparse
|
||||||
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
%license LICENSE LICENSE-PSF
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 0.4-15
|
||||||
|
- fix license handling
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-14
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-14
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user