rpms/python-json/devel python-json.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ignacio Vazquez-Abrams (ivazquez) fedora-extras-commits at redhat.com
Sat Feb 4 21:25:44 UTC 2006


Author: ivazquez

Update of /cvs/extras/rpms/python-json/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20377/devel

Modified Files:
	.cvsignore sources 
Added Files:
	python-json.spec 
Log Message:
auto-import python-json-3.4-1 on branch devel from python-json-3.4-1.src.rpm


--- NEW FILE python-json.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?pydir: %define pydir %(%{__python} -c "from distutils.sysconfig import get_config_vars; print get_config_vars()['LIBDEST']")}

Name:           python-json
Version:        3.4
%define version_munge %(sed 's/\\./_/g' <<< %{version})
Release:        1
Summary:        A JSON reader and writer for Python

Group:          Development/Languages
License:        LGPL
URL:            https://sourceforge.net/projects/json-py/
Source0:        http://dl.sourceforge.net/json-py/json-py-%{version_munge}.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
Requires:   python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")

%description
json.py is an implementation of a JSON (http://json.org) reader and writer in
Python.

%prep
%setup -q -c
chmod a-x *

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
install -p -m 0644 json.py minjson.py $RPM_BUILD_ROOT%{python_sitelib}
%{__python} %{pydir}/compileall.py $RPM_BUILD_ROOT%{python_sitelib}
%{__python} -O %{pydir}/compileall.py $RPM_BUILD_ROOT%{python_sitelib}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc changes.txt jsontest.py license.txt readme.txt
%{python_sitelib}/*.py
%{python_sitelib}/*.py[co]

%changelog
* Fri Dec 30 2005 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 3.4-1
- Initial RPM release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-json/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 Feb 2006 21:25:04 -0000	1.1
+++ .cvsignore	4 Feb 2006 21:25:44 -0000	1.2
@@ -0,0 +1 @@
+json-py-3_4.zip


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-json/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Feb 2006 21:25:04 -0000	1.1
+++ sources	4 Feb 2006 21:25:44 -0000	1.2
@@ -0,0 +1 @@
+921ebfede886a10ff32d6d4b4e216f8f  json-py-3_4.zip




More information about the fedora-extras-commits mailing list