Name: rpmfusion-config-display Version: 0.3 Release: 1%{?dist} Summary: A tool to manage proprietary graphic drivers Group: System Environment/Base License: GPLv2+ URL: http://www.diffingo.com/oss Source0: http://www.diffingo.com/downloads/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: gettext, intltool BuildRequires: python Requires: pyxf86config Requires: pygtk2-libglade Requires: usermode Requires: rpm-python Requires(post): chkconfig Requires(preun): chkconfig # This is for /sbin/service Requires(postun): initscripts Requires(preun): initscripts Obsoletes: livna-config-display <= 0.0.22 Provides: livna-config-display = 0.0.23 %description rpmfusion-config-display is a graphical and command-line tool to manage the display drivers offered in the RPM Fusion repositories. It configures the X server automatically and allows for the autoselection of an appropriate driver based on the installed hardware, or manual override by the user. %prep %setup -q %build %configure # We haven't implemented this yet: make %{?_smp_mflags} make %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install \ --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ --delete-original \ ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}.conf mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/modprobe.d/ touch ${RPM_BUILD_ROOT}%{_sysconfdir}/modprobe.d/%{name} mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/ld.so.conf.d/ touch ${RPM_BUILD_ROOT}%{_sysconfdir}/ld.so.conf.d/%{name}.conf #find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add rpmfusion-config-display %preun if [ $1 = 0 ] ; then /sbin/chkconfig --del rpmfusion-config-display fi # Normally, there's a postun snippet here but since stop does nothing, and # start has already run, we can just skip it. %files #files -f %{name}.lang %defattr(-,root,root,-) %dir %{_sysconfdir}/%{name}.d %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} %config(noreplace) %{_sysconfdir}/pam.d/%{name} %ghost %{_sysconfdir}/%{name}.conf %ghost %{_sysconfdir}/modprobe.d/%{name} %ghost %{_sysconfdir}/ld.so.conf.d/%{name}.conf %{_bindir}/* %{_sbindir}/* %{_initrddir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %doc AUTHORS ChangeLog COPYING README README.developers TODO %changelog * Sat Jan 31 2009 Stewart Adam - 0.3-1 - Update to 0.3 * Fri Jan 23 2009 Stewart Adam - 0.2-1 - Update to 0.2 - Do not package NEWS nor INSTALLING files, they are unrequired - %%ghost all files rpmfusion-config-display creates later on - Fix BuildRequires and Requires - Update %%description * Thu Jan 22 2009 Stewart Adam - 0.1-1 - Update to 1.0 * Mon Jan 5 2009 Stewart Adam - 0.1-0.1.rc3 - Update to 1.0rc3 * Wed Dec 31 2008 Stewart Adam - 0.1-0.1.rc2 - Update to 1.0rc2 * Sat Nov 29 2008 Stewart Adam - 0.1-0.1.rc1 - Update to rc1 - BR: autoconf * Fri Nov 14 2008 Stewart Adam - 0.1-0.1.beta3 - Update to beta3 * Sat Nov 1 2008 Stewart Adam - 0.1-0.1.beta2 - Update to beta2 (bugfixes + adds many error checks) * Thu Oct 30 2008 Stewart Adam - 0.1-0.1.beta1 - Initial beta release