- Simplify the %files section to own the tests directory

- Use the fedora documented filter functions to filter provides
epel8
Toshio Kuratomi 14 years ago
parent b893fedf85
commit 3909322dca

@ -2,14 +2,10 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif %endif
%global _use_internal_dependency_generator 0
%global __find_provides /bin/sh -c "%{_rpmconfigdir}/find-provides | grep -v -E '(_speedups.so)' || /bin/true"
%global __find_requires /bin/sh -c "%{_rpmconfigdir}/find-requires | grep -v -E '(_speedups.so)' || /bin/true"
Name: python-simplejson Name: python-simplejson
Version: 2.1.1 Version: 2.1.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: Simple, fast, extensible JSON encoder/decoder for Python Summary: Simple, fast, extensible JSON encoder/decoder for Python
Group: System Environment/Libraries Group: System Environment/Libraries
@ -25,6 +21,13 @@ BuildRequires: python-setuptools-devel
BuildRequires: python-nose BuildRequires: python-nose
# we don't want to provide private python extension libs
%{?filter_setup:
%filter_provides_in %{python_sitearch}/.*\.so$
%filter_setup
}
%description %description
simplejson is a simple, fast, complete, correct and extensible JSON simplejson is a simple, fast, complete, correct and extensible JSON
<http://json.org> encoder and decoder for Python 2.5+. It is pure Python code <http://json.org> encoder and decoder for Python 2.5+. It is pure Python code
@ -65,14 +68,14 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc docs LICENSE.txt %doc docs LICENSE.txt
%dir %{python_sitearch}/simplejson %{python_sitearch}/*
%{python_sitearch}/simplejson-*.egg-info
%{python_sitearch}/simplejson/*.py*
%{python_sitearch}/simplejson/tests/*.py*
%{python_sitearch}/simplejson/_speedups.so
%changelog %changelog
* Wed Oct 20 2010 Toshio Kuratomi <toshoi@fedoraproject.org> - 2.1.1-4
- Simplify the %%files section to own the tests directory
- Use the fedora documented filter functions to filter provides
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.1-3 * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

Loading…
Cancel
Save