diff --git a/.cvsignore b/.cvsignore index e69de29..f1af0e7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +anyjson-0.2.4.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..1093508 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-anyjson-0_2_4-1_fc13:F-13:python-anyjson-0.2.4-1.fc13.src.rpm:1279665267 diff --git a/python-anyjson.spec b/python-anyjson.spec new file mode 100644 index 0000000..49d729a --- /dev/null +++ b/python-anyjson.spec @@ -0,0 +1,54 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%endif + +%global srcname anyjson + +Name: python-%{srcname} +Version: 0.2.4 +Release: 1%{?dist} +Summary: Wraps the best available JSON implementation available + +Group: Development/Languages +License: BSD +URL: http://pypi.python.org/pypi/anyjson +Source0: http://pypi.python.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python-devel +BuildRequires: python-setuptools + + +%description +Anyjson loads whichever is the fastest JSON module installed and +provides a uniform API regardless of which JSON implementation is used. + + +%prep +%setup -q -n %{srcname}-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +%{__python} setup.py install --skip-build --root %{buildroot} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc CHANGELOG LICENSE README +%{python_sitelib}/%{srcname}/ +%{python_sitelib}/%{srcname}*.egg-info + + +%changelog +* Sat Jul 03 2010 Fabian Affolter - 0.2.4-1 +- Initial package diff --git a/sources b/sources index e69de29..bc8fc16 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ed707033ad6cee0a44db199c289a4c80 anyjson-0.2.4.tar.gz