48dccd1
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
48dccd1
48dccd1
Name:           driconf
48dccd1
Version:        0.9.1
7aac6a5
Release:        12%{?dist}
48dccd1
Summary:        A configuration applet for the Direct Rendering Infrastructure
48dccd1
48dccd1
Group:          User Interface/X
5309b4c
License:        GPLv2+
48dccd1
URL:            http://dri.freedesktop.org/wiki/DriConf
48dccd1
Source0:        http://people.freedesktop.org/~fxkuehl/driconf/driconf-%{version}.tar.gz
48dccd1
Patch1:         driconf-0.9.1-setup.patch
732a263
Patch2:		driconf-0.9.1-glxinfo-unicode.patch
732a263
Patch3:		driconf-0.9.1-update-toolbar-methods.patch
43c6938
Patch4:         http://patch-tracking.debian.net/patch/misc/dl/driconf/0.9.1-2/driconf_simpleui.py
732a263
48dccd1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
48dccd1
48dccd1
BuildRequires:  python-devel
48dccd1
BuildRequires:  desktop-file-utils
48dccd1
BuildArch:      noarch
48dccd1
Requires:	pygtk2
48dccd1
Requires:	glx-utils
48dccd1
48dccd1
%description
48dccd1
DRIconf is a configuration applet for the Direct Rendering Infrastructure. 
48dccd1
It allows customizing performance and visual quality settings of OpenGL 
48dccd1
drivers on a per-driver, per-screen and/or per-application level.
48dccd1
48dccd1
The settings are stored in system wide and per-user XML configuration files,
48dccd1
which are parsed by the OpenGL drivers on startup. 
48dccd1
48dccd1
DRIConf is written in Python with the python-gtk toolkit bindings. 
48dccd1
48dccd1
%prep
48dccd1
%setup -q
48dccd1
%patch1 -p1
732a263
%patch2 -p1
732a263
%patch3 -p1
43c6938
%patch4 -p1
48dccd1
48dccd1
%build
48dccd1
%{__python} setup.py build
48dccd1
48dccd1
%install
48dccd1
rm -rf $RPM_BUILD_ROOT
48dccd1
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}
48dccd1
48dccd1
%find_lang driconf
48dccd1
48dccd1
cat << EOF > %{name}.desktop
48dccd1
[Desktop Entry]
48dccd1
Name=Driconf
48dccd1
Comment=configuration applet for the Direct Rendering Infrastructure
48dccd1
Exec=/usr/bin/driconf
48dccd1
Icon=/usr/share/driconf/driconf-icon.png
48dccd1
Terminal=false
48dccd1
Type=Application
48dccd1
Encoding=UTF-8
48dccd1
Categories=Settings;
48dccd1
EOF
48dccd1
48dccd1
desktop-file-install --vendor fedora \
48dccd1
        --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ %{name}.desktop
48dccd1
48dccd1
%clean
48dccd1
rm -rf $RPM_BUILD_ROOT
48dccd1
48dccd1
%files -f driconf.lang
48dccd1
%defattr(-,root,root,-)
48dccd1
%doc COPYING CHANGELOG README TODO
48dccd1
%{_bindir}/driconf
48dccd1
%{python_sitelib}/dri.py
48dccd1
%{python_sitelib}/dri.pyc
48dccd1
%{python_sitelib}/dri.pyo
48dccd1
%{python_sitelib}/driconf.py
48dccd1
%{python_sitelib}/driconf.pyc
48dccd1
%{python_sitelib}/driconf.pyo
48dccd1
%{python_sitelib}/driconf_commonui.py
48dccd1
%{python_sitelib}/driconf_commonui.pyc
48dccd1
%{python_sitelib}/driconf_commonui.pyo
48dccd1
%{python_sitelib}/driconf_complexui.py
48dccd1
%{python_sitelib}/driconf_complexui.pyc
48dccd1
%{python_sitelib}/driconf_complexui.pyo
48dccd1
%{python_sitelib}/driconf_simpleui.py
48dccd1
%{python_sitelib}/driconf_simpleui.pyc
48dccd1
%{python_sitelib}/driconf_simpleui.pyo
5bb8bae
%{python_sitelib}/driconf-0.9.1-py?.?.egg-info
48dccd1
%dir %{_datadir}/driconf
48dccd1
%{_datadir}/driconf/card.png
48dccd1
%{_datadir}/driconf/drilogo.jpg
48dccd1
%{_datadir}/driconf/screen.png
48dccd1
%{_datadir}/driconf/screencard.png
48dccd1
%{_datadir}/driconf/driconf-icon.png
48dccd1
%{_datadir}/applications/*.desktop
48dccd1
48dccd1
%changelog
7aac6a5
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-12
7aac6a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7aac6a5
43c6938
* Tue Feb 03 2009 Kevin Fenzi <kevin@tummy.com> - 0.9.1-11
43c6938
- Add patch for traceback issue (fixes bug #482915)
43c6938
5bb8bae
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.1-10
5bb8bae
- Fix locations for Python 2.6
5bb8bae
6394de8
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.1-9
6394de8
- Rebuild for Python 2.6
6394de8
732a263
* Sun Jun  8 2008 Kevin Fenzi <kevin@tummy.com> - 0.9.1-8
732a263
- Improve unicode support (fixes bug #450083)
732a263
6e2adb8
* Tue Jan 15 2008 Kevin Fenzi <kevin@tummy.com> - 0.9.1-7
6e2adb8
- Add egginfo file. 
6e2adb8
5309b4c
* Tue Aug 21 2007 Kevin Fenzi <kevin@tummy.com> - 0.9.1-6
5309b4c
- Update license tag. 
5309b4c
48dccd1
* Wed Dec 20 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-5
48dccd1
- Remove unneeded post/postun.
48dccd1
48dccd1
* Tue Dec 19 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-4
48dccd1
- Changed desktop catigory to Settings. 
48dccd1
48dccd1
* Mon Dec 18 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-3
48dccd1
- Changed pygtk2-devel BuildRequires to python-devel
48dccd1
- Added desktop file. 
48dccd1
48dccd1
* Sat Dec 16 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-2
48dccd1
- Added Requires for pygtk2 and glx-utils
48dccd1
48dccd1
* Sat Dec 16 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-1
48dccd1
- Inital fedora extras packaging
48dccd1
48dccd1
* Fri Mar 31 2005 D. Hageman <dhageman@dracken.com> 0.9.0-1
48dccd1
- Updated RPM spec file to handle new version
48dccd1
48dccd1
* Mon Mar 14 2005 D. Hageman <dhageman@dracken.com> 0.2.3-1
48dccd1
- Created the initial rpm spec file.