Sfoglia il codice sorgente

pyxf86config:
- build for Vine Linux 6
- add patch0-2 from fedora
- add patch3 to build with current xorg


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3971 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 13 anni fa
parent
commit
8d9620de8a
1 ha cambiato i file con 28 aggiunte e 9 eliminazioni
  1. 28 9
      p/pyxf86config/pyxf86config-vl.spec

+ 28 - 9
p/pyxf86config/pyxf86config-vl.spec

@@ -2,11 +2,18 @@ Summary: Python wrappers for libxf86config
 Summary(ja): libxf86config の Python ラッパー
 Name: pyxf86config
 Version: 0.3.37
-Release: 2%{?_dist_release}
+Release: 3%{?_dist_release}
+
 URL: http://fedoraproject.org/wiki/pyxf86config
-Source0: %{name}-%{version}.tar.bz2
-License: GPL
+License: GPLv2
 Group: System Environment/Libraries
+
+Source0: %{name}-%{version}.tar.bz2
+Patch0: 0001-libxf86config.a-gained-dependency-on-xstrtokenize-pu.patch
+Patch1: 0002-Provide-xf86CheckBoolOption.patch
+Patch2: 0003-Initialize-configuration-file-parser-before-use.patch
+Patch3: %{name}-0.3.37-xorg-x11-7.5.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires: glib2
 BuildRequires: glib2-devel
@@ -15,22 +22,29 @@ BuildRequires: python-devel
 BuildRequires: libxf86config-devel
 ExcludeArch: s390 s390x ppc64
 
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: daisuke
+
 %description
 Python wrappers for the X server config file library libxf86config.
 It is used to read and write X server configuration files.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -fPIC"
-pyver=$(python -c 'import sys ; print sys.version[:3]')
-w%configure --x-libraries=%{_libdir} --with-python-version=$pyver
-make
+%configure --x-libraries=%{_libdir} --with-python-version=%{pyver}
+%__make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%makeinstall
+%__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -38,10 +52,15 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root)
 %doc README NEWS AUTHORS COPYING ChangeLog
-%{_libdir}/python?.?/site-packages/ixf86configmodule.so
-%{_libdir}/python?.?/site-packages/xf86config.py
+%{python_sitearch}/ixf86configmodule.so
+%{python_sitearch}/xf86config.py
 
 %changelog
+* Sat May 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.37-3
+- rebuild for Vine 6
+- import patch0-2 from fedora
+- add patch3 to build with new xorg-x11 (adhoc patch)
+
 * Mon Feb 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.37-2
 - rebuild with python-2.6