rpms/python-ogg/devel python-ogg.spec,1.4,1.5

Matthias Saou (thias) fedora-extras-commits at redhat.com
Fri Mar 2 18:28:36 UTC 2007


Author: thias

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

Modified Files:
	python-ogg.spec 
Log Message:
Some fixes following the ownership change.



Index: python-ogg.spec
===================================================================
RCS file: /cvs/extras/rpms/python-ogg/devel/python-ogg.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- python-ogg.spec	23 Dec 2006 03:57:22 -0000	1.4
+++ python-ogg.spec	2 Mar 2007 18:28:04 -0000	1.5
@@ -1,37 +1,33 @@
-# Some informations on this spec were based on dries' work available in URL
-# http://dries.ulyssis.org/rpm/packages/python-ogg/info.html
+%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
+%define python_incdir %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")
 
-%{!?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)")}
-%{!?python_incdir: %define python_incdir %(%{__python} -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")}
-
-Name:           python-ogg
-Version:        1.3
-Release:        4%{?dist}
-Summary:        A Python wrapper for the Ogg libraries
-
-Group:          Development/Languages
-License:        LGPL
-URL:            http://www.andrewchatham.com/pyogg/
-Source0:        http://www.andrewchatham.com/pyogg/download/pyogg-1.3.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires:  python-devel, libogg-devel
-Requires:   python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
+Summary: Python wrapper for the Ogg libraries
+Name: python-ogg
+Version: 1.3
+Release: 5%{?dist}
+License: LGPL
+Group: Development/Languages
+URL: http://ekyo.nerim.net/software/pyogg/
+Source: http://ekyo.nerim.net/software/pyogg/pyogg-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: python-devel, libogg-devel
 
 %description
 An object-oriented Python binding for the Ogg libraries. Ogg is a
 multimedia bitstream format. With this you can write your own python
 applications to play and encode audio files in Ogg format.
 
-%package        devel
-Summary:        Development files for the Ogg Python Wrapper
-Group:          Development/Libraries
-Requires:       %{name} = %{version}-%{release}, libogg-devel
-
-%description    devel
-This package contains headers and libraries required to build applications that
-use the python-ogg, a python wrapper for the Ogg libraries.
+
+%package devel
+Summary: Development files for the Ogg libraries Python wrapper
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: python-devel, libogg-devel
+
+%description devel
+This package contains development files required to build applications which
+will use python-ogg, a Python wrapper for the Ogg libraries.
+
 
 %prep
 %setup -q -n pyogg-%{version}
@@ -39,27 +35,22 @@
 
 %build
 %{__python} config_unix.py
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+CFLAGS="%{optflags}" %{__python} setup.py build
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
 
- 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
 
 
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS README
-# Include files and dirs below %{python_sitelib} (for noarch packages) and
-# %{python_sitearch} (for arch-dependent packages) as appropriate.
-%{python_sitearch}/ogg/*.pyo
-%{python_sitearch}/ogg/*.pyc
-%{python_sitearch}/ogg/*.py
-%{python_sitearch}/ogg/_ogg.so
+%{python_sitearch}/ogg/
 
 %files devel
 %defattr(-,root,root,-)
@@ -67,6 +58,13 @@
 
 
 %changelog
+* Fri Mar  2 2007 Matthias Saou <http://freshrpms.net/> 1.3-5
+- Use new URL and source location.
+- Add python-devel requirement to the devel since it #includes Python.h.
+- Remove no longer needed explicit python-abi requirement.
+- Simplify %%files section.
+- Spec file (quick) re-review and cleanup following ownership change.
+
 * Fri Dec 22 2006 Jef Spaleta <jspaleta at gmail.com> 1.3-4
 - Rebuilt for python 2.5 in development tree
 
@@ -79,3 +77,4 @@
 
 * Fri May 19 2006 Hugo Cisneiros <hugo at devin.com.br> 1.3-1
 - Initial RPM release
+




More information about the fedora-extras-commits mailing list