Name: smart
Summary: Next generation package handling tool
Version: 1.2
Release: 0
License: GPL
Group: Applications/System
URL: http://www.smartpm.org/
Description: Smart Package Manager is a next generation package handling tool.
The build was not successful.
The build was not successful.
The spec file used by the build system currently has the following contents:
# $Id$ # Authority: dag # Upstream: Gustavo Niemeyer <niemeyer$conectiva,com> # ExcludeDist el2 rh7 rh9 el3 fc1 fc2 %{?el5:%define _without_channels 1} %{?el4:%define _without_channels 1} %{?el3:%define _without_channels 1} %{?el3:%define _without_gui 1} %{?el3:%define _without_ksmarttray 1} %ifarch x86_64 %define _without_rpmhelper 0 %else %define _without_rpmhelper 1 %endif %{?el5:%define _without_rpmhelper 1} %define desktop_vendor rpmforge %define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') %define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()') %define python_abi %(%{__python} -c 'import sys; print ".".join(sys.version.split(".")[:2])') %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]') Summary: Next generation package handling tool Name: smart Version: 1.2 Release: 0%{?dist} License: GPL Group: Applications/System URL: http://www.smartpm.org/ Source: http://labix.org/download/smart/smart-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: popt, rpm-devel >= 4.2.1, python-devel, rpm-python, gettext %{!?_without_gui:BuildRequires: pygtk2-devel >= 2.3.94} %{!?_without_ksmarttray:BuildRequires: gcc-c++, kdelibs-devel, qt-devel} # *** KDE requires autoconf 2.52, 2.53 or 2.54 # *** KDE requires automake 1.6.1 or newer BuildRequires: autoconf, automake ### python-abi is not defined on older dists (eg. EL3) #Requires: python-abi = %{python_abi} Requires: python = %{python_version} %description Smart Package Manager is a next generation package handling tool. %package gui Summary: Graphical interface to smart Group: Applications/System Requires: smart = %{version} Requires: pygtk2 >= 2.3.94 %description gui A graphical interface to smart. %package update Summary: Allows execution of 'smart update' by normal users (suid) Group: Applications/System Requires: smart = %{version} %description update Allows execution of 'smart update' by normal users through a special suid command. %package -n ksmarttray Summary: KDE tray program for watching updates with Smart Package Manager Group: Applications/System Requires: smart-update = %{version} Requires: smart-gui = %{version} %description -n ksmarttray KDE tray program for watching updates with Smart Package Manager. %prep %setup %{__cat} <<EOF >distro.py if not sysconf.getReadOnly(): pkgconf.setFlag("multi-version", "kernel") pkgconf.setFlag("multi-version", "kernel-smp") pkgconf.setFlag("multi-version", "kernel-xen") EOF %{__cat} <<EOF >smart-gui.sh #!/bin/sh exec %{_bindir}/smart --gui $@ EOF %if %{!?_without_channels:1}0 %{?fc8:name='Fedora Core'; version='8'} %{?fc7:name='Fedora Core'; version='7'} %{?fc6:name='Fedora Core'; version='6'} %{?fc5:name='Fedora Core'; version='5'} %{?fc4:name='Fedora Core'; version='4'} %{?fc3:name='Fedora Core'; version='3'} %{__cat} <<EOF >os.channel ### URL: http://fedora.redhat.com/ [os] name = OS packages from Red Hat for $name $version - %{_arch} baseurl = http://ayo.freshrpms.net/fedora/linux/$version/%{_arch}/core type = rpm-md EOF %{__cat} <<EOF >updates.channel ### URL: http://fedora.redhat.com/ [updates] name = Updated packages from Red Hat for $name $version - %{_arch} baseurl = http://ayo.freshrpms.net/fedora/linux/$version/%{_arch}/updates type = rpm-md EOF %endif %{__cat} <<EOF >smart-gui.console USER=root PROGRAM=%{_sbindir}/smart-gui SESSION=true EOF %{__cat} <<EOF >smart-gui.desktop [Desktop Entry] Name=Smart Package Manager Comment=Install packages from various sources Icon=smart.png Exec=smart-gui Type=Application Terminal=false StartupNotify=true Categories=GNOME;Application;SystemSetup; EOF %{__cat} <<EOF >smart-gui.pam #%PAM-1.0 auth sufficient pam_rootok.so auth sufficient pam_timestamp.so auth required pam_stack.so service=system-auth session required pam_permit.so session optional pam_timestamp.so session optional pam_xauth.so account required pam_permit.so EOF %build env CFLAGS="%{optflags}" %{__python} setup.py build %if %{!?_without_ksmarttray:1}0 cd contrib/ksmarttray %{__make} -f admin/Makefile.common %configure %{__make} cd - %endif %{__make} -C contrib/smart-update %if %{!?_without_rpmhelper:1}0 cd contrib/rpmhelper/ %{__python} setup.py build cd - %endif %install %{__rm} -rf %{buildroot} %{__python} setup.py install --root="%{buildroot}" %{!?_without_ksmarttray:%{__make} install -C contrib/ksmarttray DESTDIR="%{buildroot}" iconsdir=%{_datadir}/icons/hicolor/48x48/apps} %if %{!?_without_rpmhelper:1}0 cd contrib/rpmhelper/ %{__python} setup.py install --root="%{buildroot}" cd - %endif %find_lang %{name} %{__ln_s} -f consolehelper %{buildroot}%{_bindir}/smart-gui %{__install} -Dp -m0644 distro.py %{buildroot}%{_prefix}/lib/smart/distro.py touch %{buildroot}%{_prefix}/lib/smart/distro.py{c,o} %{__install} -Dp -m4755 contrib/smart-update/smart-update %{buildroot}%{_bindir}/smart-update #%{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{python_dir}/smart/plugins/channelsync.py %{__install} -d -m0755 %{buildroot}%{_sysconfdir}/smart/channels/ %{!?_without_channels:%{__cp} -apvf *.channel %{buildroot}%{_sysconfdir}/smart/channels/} %{__install} -d -m0755 %{buildroot}%{_localstatedir}/lib/smart/ %if %{!?_without_gui:1}0 %{__install} -Dp -m0755 smart-gui.sh %{buildroot}%{_sbindir}/smart-gui %{__install} -Dp -m0644 smart-gui.console %{buildroot}%{_sysconfdir}/security/console.apps/smart-gui %{__install} -Dp -m0644 smart-gui.pam %{buildroot}%{_sysconfdir}/pam.d/smart-gui %{__install} -Dp -m0644 smart/interfaces/images/smart.png %{buildroot}%{_datadir}/pixmaps/smart.png %if %{?_without_freedesktop:1}0 %{__install} -Dp -m0644 smart-gui.desktop %{buildroot}%{_datadir}/gnome/apps/System/smart.desktop %else %{__install} -d -m0755 %{buildroot}%{_datadir}/applications/ desktop-file-install --vendor %{desktop_vendor} \ --dir %{buildroot}%{_datadir}/applications \ --add-category X-Red-Hat-Base \ smart-gui.desktop %endif %endif %clean %{__rm} -rf %{buildroot} %files -f %{name}.lang %defattr(-, root, root, 0755) %doc HACKING IDEAS LICENSE README TODO doc/* %doc %{_mandir}/man8/smart.8* %config %{_prefix}/lib/smart/distro.py %exclude %{_prefix}/lib/smart/distro.py? %dir %{_prefix}/lib/smart/ %config(noreplace) %{_sysconfdir}/smart/channels/ %{_bindir}/smart %{python_sitearch}/smart/ %exclude %{python_sitearch}/smart/interfaces/gtk/ %{_localstatedir}/lib/smart/ %if %{!?_without_rpmhelper:1}0 %{python_sitearch}/rpmhelper.so %endif %if %{!?_without_gui:1}0 %files gui %defattr(-, root, root, 0755) %{_sysconfdir}/pam.d/smart-gui %{_bindir}/smart-gui %{_sbindir}/smart-gui %{_sysconfdir}/security/console.apps/smart-gui %dir %{python_sitearch}/smart/ %dir %{python_sitearch}/smart/interfaces/ %{python_sitearch}/smart/interfaces/gtk/ %{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-smart-gui.desktop} %{?_without_freedesktop:%{_datadir}/gnome/apps/System/smart-gui.desktop} %{_datadir}/pixmaps/smart.png %endif %files update %defattr(4755, root, root, 0755) %{_bindir}/smart-update %if %{!?_without_ksmarttray:1}0 %files -n ksmarttray %defattr(-, root, root, 0755) %{_bindir}/ksmarttray %{_datadir}/apps/ksmarttray/ %{_datadir}/icons/hicolor/48x48/apps/ksmarttray.png %endif %changelog * Tue May 19 2009 Anders F Bjorklund <afb@users.sf.net> - Updated to release 1.2. - fix hardcoded pam paths - multiversion kernel-xen - add --without ksmarttray - add --without rpmhelper * Fri Nov 23 2007 Dag Wieers <dag@wieers.com> - 0.52-1 - Updated to release 0.52. * Wed Sep 5 2007 Dries Verachtert <dries@ulyssis.org> - 0.51-1 - Updated to release 0.51. * Fri Dec 23 2005 Dag Wieers <dag@wieers.com> - 0.42-1 - Updated to release 0.42. * Fri Dec 23 2005 Dag Wieers <dag@wieers.com> - 0.41-2 - Removed standard rpm-sys channel. * Thu Dec 22 2005 Dag Wieers <dag@wieers.com> - 0.41-1 - Updated to release 0.41. * Thu Oct 06 2005 Dag Wieers <dag@wieers.com> - 0.40-1 - Updated to release 0.40. * Mon Sep 19 2005 Dries Verachtert <dries@ulyssis.org> - 0.39-3 - Fix by Jeff Pitman: ksmarttray requires smart-gui. * Sun Sep 18 2005 Dries Verachtert <dries@ulyssis.org> - 0.39-2 - Applied a fix by Ben Segall so smart works with a readonly configuration. * Mon Sep 12 2005 Dag Wieers <dag@wieers.com> - 0.39-1 - Updated to release 0.39. * Fri Aug 19 2005 Dag Wieers <dag@wieers.com> - 0.37-1 - Updated to release 0.37. * Thu Jul 14 2005 Dag Wieers <dag@wieers.com> - 0.36-1 - Updated to release 0.36. * Tue Jun 21 2005 Dries Verachtert <dries@ulyssis.org> - 0.35-2 - Added tags for fc4. * Mon May 30 2005 Dag Wieers <dag@wieers.com> - 0.35-1 - Updated to release 0.35. * Wed Mar 30 2005 Dag Wieers <dag@wieers.com> - 0.30.2-1 - Updated to release 0.30.2. * Thu Mar 24 2005 Dag Wieers <dag@wieers.com> - 0.30-1 - Removed kernel-doc from distro.py. (Ralf Ertzinger) - Updated to release 0.30. * Wed Mar 09 2005 Dag Wieers <dag@wieers.com> - 0.29.2-2 - Included rpmhelper patch for x86_64 problem. (RHbz 146477) * Mon Mar 07 2005 Dag Wieers <dag@wieers.com> - 0.29.2-1 - Updated to release 0.29.2. * Fri Mar 04 2005 Dag Wieers <dag@wieers.com> - 0.29.1-1 - Updated to release 0.29.1. * Wed Feb 16 2005 Dag Wieers <dag@wieers.com> - 0.28-3 - Correct the location for distro.py on x86_64. (Edward Rudd) * Thu Dec 09 2004 Dag Wieers <dag@wieers.com> - 0.28-2 - Disabled a few repositories to speed up Smart by default. - Fix for x86_64. (Gustavo Niemeyer) * Thu Dec 09 2004 Dag Wieers <dag@wieers.com> - 0.28-1 - Updated to release 0.28. * Tue Dec 07 2004 Dag Wieers <dag@wieers.com> - 0.27.1-3 - Added jpackage-generic channel. (Thomas Moschny) * Sun Dec 05 2004 Dag Wieers <dag@wieers.com> - 0.27.1-2 - Added smart-gui console-helper so users can start smart. * Sat Dec 04 2004 Dag Wieers <dag@wieers.com> - 0.27.1-1 - Initial package. (using DAR)