Change architecture to noarch
Change python_sitearch to python_sitelib Changelog in no longer in source tarball
This commit is contained in:
parent
604f18821f
commit
7417da4606
@ -1,5 +1,3 @@
|
|||||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
||||||
|
|
||||||
Name: python-enchant
|
Name: python-enchant
|
||||||
Version: 1.6.5
|
Version: 1.6.5
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -11,11 +9,12 @@ URL: http://pyenchant.sourceforge.net/
|
|||||||
Source0: http://dl.sourceforge.net/sourceforge/pyenchant/pyenchant-%{version}.tar.gz
|
Source0: http://dl.sourceforge.net/sourceforge/pyenchant/pyenchant-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: python-devel enchant-devel
|
BuildArch: noarch
|
||||||
|
BuildRequires: python2-devel enchant-devel
|
||||||
BuildRequires: python-setuptools >= 0:0.6a9
|
BuildRequires: python-setuptools >= 0:0.6a9
|
||||||
# Work around a problem with libenchant versioning
|
# Work around a problem with libenchant versioning
|
||||||
# (python-enchant-1.3.1 failed to work with enchant-1.4.2-2.fc10)
|
# (python-enchant-1.3.1 failed to work with enchant-1.4.2-2.fc10)
|
||||||
Requires: enchant >= 1.5.0
|
Requires: enchant >= 1.5.0
|
||||||
|
|
||||||
Provides: PyEnchant
|
Provides: PyEnchant
|
||||||
|
|
||||||
@ -35,7 +34,10 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
|
||||||
rm -rf $RPM_BUILD_ROOT/%{python_sitearch}/*.egg-info
|
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/*.egg-info
|
||||||
|
# Directories used in windows build
|
||||||
|
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/enchant/lib
|
||||||
|
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/enchant/share
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -44,20 +46,23 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc ChangeLog LICENSE.txt README.txt TODO.txt
|
%doc LICENSE.txt README.txt TODO.txt
|
||||||
%dir %{python_sitearch}/enchant
|
%dir %{python_sitelib}/enchant
|
||||||
%dir %{python_sitearch}/enchant/checker
|
%dir %{python_sitelib}/enchant/checker
|
||||||
%dir %{python_sitearch}/enchant/tokenize
|
%dir %{python_sitelib}/enchant/tokenize
|
||||||
%{python_sitearch}/enchant/*.py
|
%{python_sitelib}/enchant/*.py
|
||||||
%{python_sitearch}/enchant/*.py[co]
|
%{python_sitelib}/enchant/*.py[co]
|
||||||
%{python_sitearch}/enchant/*/*.py
|
%{python_sitelib}/enchant/*/*.py
|
||||||
%{python_sitearch}/enchant/*/*.py[co]
|
%{python_sitelib}/enchant/*/*.py[co]
|
||||||
%{python_sitearch}/enchant/_enchant.so
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Sep 23 2011 Radek Novacek <rnovacek@redhat.com> 1.6.5-1
|
* Fri Sep 23 2011 Radek Novacek <rnovacek@redhat.com> 1.6.5-1
|
||||||
- Update to version 1.6.5
|
- Update to version 1.6.5
|
||||||
|
- Change architecture to noarch
|
||||||
|
- Change python_sitearch to python_sitelib
|
||||||
|
- Changelog in no longer in source tarball
|
||||||
|
- Remove nonpacked files
|
||||||
|
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user