rpms/python-turbojson/devel python-turbojson.spec,1.3,1.4

Toshio Ernie Kuratomi (toshio) fedora-extras-commits at redhat.com
Wed Oct 3 19:55:03 UTC 2007


Author: toshio

Update of /cvs/pkgs/rpms/python-turbojson/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17305

Modified Files:
	python-turbojson.spec 
Log Message:
* Wed Oct  3 2007 Toshio Kuratomi <a.badger at gmail.com> 1.1-2
- BuildRequire python-devel and setuptools-devel
- Use the setup.py script to build and install



Index: python-turbojson.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-turbojson/devel/python-turbojson.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- python-turbojson.spec	3 Oct 2007 15:00:43 -0000	1.3
+++ python-turbojson.spec	3 Oct 2007 19:54:28 -0000	1.4
@@ -5,7 +5,7 @@
 
 Name:           python-turbojson
 Version:        1.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Python template plugin that supports json
 
 Group:          Development/Languages
@@ -15,6 +15,9 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
+BuildRequires: python-devel
+BuildRequires: python-setuptools-devel
+
 %description
 This package provides a template engine plugin, allowing you
 to easily use Json with TurboGears, Buffet or other systems
@@ -22,20 +25,17 @@
 
 
 %prep
-%setup -q -c
-
+%setup -q -n TurboJson-%{version}
 
 %build
+%{__python} setup.py build
 
 
 %install
 rm -rf %{buildroot}
-mkdir -p %{buildroot}%{python_sitelib}/%{module}
-mkdir -p %{buildroot}%{python_sitelib}/%{module}/tests
-install -p -m 0644 TurboJson-%{version}/%{module}/*.py %{buildroot}%{python_sitelib}/%{module}
-install -p -m 0644 TurboJson-%{version}/%{module}/tests/*.py %{buildroot}%{python_sitelib}/%{module}/tests
-mkdir -p %{buildroot}%{python_sitelib}/TurboJson-%{version}-py%{pyver}.egg-info
-install -p -m 0644 TurboJson-%{version}/TurboJson.egg-info/* %{buildroot}%{python_sitelib}/TurboJson-%{version}-py%{pyver}.egg-info
+%{__python} setup.py install --skip-build --root=%{buildroot} \
+    --single-version-externally-managed
+
 
 %clean
 rm -rf %{buildroot}
@@ -44,10 +44,14 @@
 %files
 %defattr(-,root,root,-)
 %{python_sitelib}/%{module}/
-%{python_sitelib}/TurboJson-%{version}-py%{pyver}.egg-info
+%{python_sitelib}/TurboJson-%{version}-py%{pyver}.egg-info/
 
 
 %changelog
+* Wed Oct  3 2007 Toshio Kuratomi <a.badger at gmail.com> 1.1-2
+- BuildRequire python-devel and setuptools-devel
+- Use the setup.py script to build and install
+
 * Wed Oct  3 2007 Luke Macken <lmacken at redhat.com> 1.1-1
 - 1.1
 - Update URL and Source




More information about the fedora-extras-commits mailing list