Summary: Python wrappers for libxf86config
Summary(ja): libxf86config の Python ラッパー
Name: pyxf86config
Version: 0.3.37
Release: 4%{?_dist_release}

URL: http://fedoraproject.org/wiki/pyxf86config
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
Patch4: pyxf86config-0.3.37-xorgconf-path.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: glib2
BuildRequires: glib2-devel
BuildRequires: libX11-devel
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
%patch4 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
%configure --x-libraries=%{_libdir} --with-python-version=%{pyver}
%__make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README NEWS AUTHORS COPYING ChangeLog
%{python_sitearch}/ixf86configmodule.so
%{python_sitearch}/xf86config.py

%changelog
* Fri Jun 03 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.37-4
- add patch4 to use /etc/X11/xorg.conf on pyxf86readConfigFile()
  instead of auto search path template.

* 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

* Tue Aug 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.37-1
- new upstream release
- build with xorg-x11-7.3

* Tue Aug 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.19.4-1
- initial build for Vine Linux

* Mon Oct 09 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.19.4-0vl1
- remove unneeded screen resolution from XF86SupportedResolutions 

* Mon Sep 25 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.19.3-0vl1
- add v4l module, remove fbdevhw from xorg.conf

* Tue Aug 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.19.2-0vl1
- add more resolutions

* Tue Aug 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.19.1-0vl1
- update default xorg.conf

* Sun Aug 06 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.19-0vl1
- initial build for Vine Linux

* Wed Aug 11 2004 Jeremy Katz <katzj@redhat.com> - 0.3.19-1
- Change keyboard driver to kbd

* Thu Apr 15 2004 Mike A. Harris <mharris@redhat.com> - 0.3.18-1
- Do not write out XkbRules line to config file, as it is unnecessary hard
  coding the rules file, which has a built in default which should always
  work. (#120858)

* Thu Apr 15 2004 Jeremy Katz <katzj@redhat.com> - 0.3.17-1
- xorg for XkbRules

* Wed Apr 14 2004 Alex Larsson <alexl@redhat.com> 0.3.16
- Rebuild for the new libxf86config
- remove references to XFree86

* Thu Feb 19 2004 Brent Fox <bfox@redhat.com> 0.3.15-1
- remove the setupMice() function createTemplate() 
- because the 2.6 kernel puts both PS/2 and USB mice on the same device

* Mon Feb  9 2004 Alexander Larsson <alexl@redhat.com> 0.3.14-1
- fix range array bug

* Thu Nov  6 2003 Jeremy Katz <katzj@redhat.com> 0.3.13-2
- rebuild for python 2.3
- don't build on ppc64 either since X is missing bits there as well

* Tue Jul 29 2003 Elliot Lee <sopwith@redhat.com> 0.3.13-1
- Rebuild

* Wed Jun  4 2003 Brent Fox <bfox@redhat.com> 0.3.12-1
- add a 'scrnum' attribute to the adjacency section

* Tue Jun  3 2003 Brent Fox <bfox@redhat.com> 0.3.11-1
- add a function to xf86config.py called getAllScreens()

* Tue Jun  3 2003 Brent Fox <bfox@redhat.com> 0.3.10-1
- add a BuildRequires for python-devel
- add an options attribute to the server layout section (for Xinerama)

* Tue Apr 29 2003 Alexander Larsson <alexl@redhat.com> 0.3.6-1
- Added laptop resolutions

* Mon Jan 27 2003 Alexander Larsson <alexl@redhat.com> 0.3.5-1
- Rebuild

* Wed Jan 15 2003 Michael Fulbright <msf@redhat.com> 0.3.4-1
- remove code in xf86config.py:createTemplate() that inserted a Display
  section.  We want user to supply this and it shouldnt be in template.

* Sat Jan 11 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- add ExcludeArch: s390 s390x

* Thu Dec 12 2002 Mike A. Harris <mharris@redhat.com> 0.3.3-1
- Remove Excludearch alpha

* Tue Nov 12 2002 Michael Fulbright <msf@redhat.com> 0.3.2-1
- Added some convenience functions.

* Mon Jul  8 2002 Alexander Larsson <alexl@redhat.com>
- Bump to 0.3.1

* Mon Jun 17 2002 Alexander Larsson <alexl@redhat.com>
- Bump to 0.3.0

* Fri May 24 2002 Alex Larsson <alexl@redhat.com> 0.2.0-3
- Excludearch alpha for now

* Fri May 24 2002 Alex Larsson <alexl@redhat.com> 0.2.0-2
- Add some doc files

* Fri May 24 2002 Alex Larsson <alexl@redhat.com> 0.2.0-1
- Update version number for new release

* Thu Apr 11 2002 Alex Larsson <alexl@redhat.com> 0.1.0-1
- Initial release

* Wed Apr 10 2002 Alex Larsson <alexl@redhat.com>
- Initial specfile
