|
@@ -2,11 +2,18 @@ Summary: Python wrappers for libxf86config
|
|
Summary(ja): libxf86config の Python ラッパー
|
|
Summary(ja): libxf86config の Python ラッパー
|
|
Name: pyxf86config
|
|
Name: pyxf86config
|
|
Version: 0.3.37
|
|
Version: 0.3.37
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Release: 3%{?_dist_release}
|
|
|
|
+
|
|
URL: http://fedoraproject.org/wiki/pyxf86config
|
|
URL: http://fedoraproject.org/wiki/pyxf86config
|
|
-Source0: %{name}-%{version}.tar.bz2
|
|
|
|
-License: GPL
|
|
|
|
|
|
+License: GPLv2
|
|
Group: System Environment/Libraries
|
|
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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
Requires: glib2
|
|
Requires: glib2
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: glib2-devel
|
|
@@ -15,22 +22,29 @@ BuildRequires: python-devel
|
|
BuildRequires: libxf86config-devel
|
|
BuildRequires: libxf86config-devel
|
|
ExcludeArch: s390 s390x ppc64
|
|
ExcludeArch: s390 s390x ppc64
|
|
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: daisuke
|
|
|
|
+
|
|
%description
|
|
%description
|
|
Python wrappers for the X server config file library libxf86config.
|
|
Python wrappers for the X server config file library libxf86config.
|
|
It is used to read and write X server configuration files.
|
|
It is used to read and write X server configuration files.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+%patch0 -p1
|
|
|
|
+%patch1 -p1
|
|
|
|
+%patch2 -p1
|
|
|
|
+%patch3 -p1
|
|
|
|
|
|
%build
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
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
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
-%makeinstall
|
|
|
|
|
|
+%__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -38,10 +52,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc README NEWS AUTHORS COPYING ChangeLog
|
|
%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
|
|
%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
|
|
* Mon Feb 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.37-2
|
|
- rebuild with python-2.6
|
|
- rebuild with python-2.6
|
|
|
|
|