Lines 546-558
Link Here
|
546 |
sed -e "s|$RPM_BUILD_ROOT||g" <modules-list.full |sort|comm -23 - modules-exclude >other-list |
546 |
sed -e "s|$RPM_BUILD_ROOT||g" <modules-list.full |sort|comm -23 - modules-exclude >other-list |
547 |
|
547 |
|
548 |
# menu support |
548 |
# menu support |
549 |
%__mkdir_p $RPM_BUILD_ROOT%_libdir/menu |
549 |
%__mkdir_p $RPM_BUILD_ROOT%_menudir |
550 |
cat > $RPM_BUILD_ROOT%_menudir/tkinter-%version << EOF |
550 |
cat > $RPM_BUILD_ROOT%_menudir/idle%version << EOF |
551 |
#?package(%real_name): needs=text section="Applications/Development/Interpreters" title=Python command=python |
551 |
#?package(%real_name): needs=text section="Applications/Development/Interpreters" title=Python command=python |
552 |
?package(%name-tkinter): needs="gnome" section="Applications/Development/Development environments" title="IDLE" \ |
552 |
#?package(%name-tools-idle): needs="gnome" section="Applications/Development/Development environments" title="IDLE" \ |
553 |
longtitle="IDE for Python %version" command="NO_XALF %_bindir/idle%suffix_ver" icon="development_section.xpm" |
553 |
longtitle="IDE for Python %version" command="NO_XALF %_bindir/idle" icon="development_section.xpm" |
554 |
?package(%name-tkinter): needs=x11 section="Applications/Development/Development environments" title="IDLE" \ |
554 |
?package(%name-tools-idle): needs=x11 section="Applications/Development/Development environments" title="IDLE" \ |
555 |
longtitle="IDE for Python %version" command="%_bindir/idle%suffix_ver" icon="development_section.xpm" |
555 |
longtitle="IDE for Python %version" command="%_bindir/idle" icon="development_section.xpm" |
556 |
EOF |
556 |
EOF |
557 |
|
557 |
|
558 |
#alternatives support |
558 |
#alternatives support |
Lines 624-635
Link Here
|
624 |
|
624 |
|
625 |
%post modules-tkinter |
625 |
%post modules-tkinter |
626 |
%register_alternatives %python_name-modules-tkinter -- idle modulator pynche |
626 |
%register_alternatives %python_name-modules-tkinter -- idle modulator pynche |
|
|
627 |
|
628 |
%post tools-idle |
627 |
%update_menus |
629 |
%update_menus |
628 |
|
630 |
|
629 |
%preun modules-tkinter |
631 |
%preun modules-tkinter |
630 |
%unregister_alternatives %python_name-modules-tkinter |
632 |
%unregister_alternatives %python_name-modules-tkinter |
631 |
|
633 |
|
632 |
%postun modules-tkinter |
634 |
%postun tools-idle |
633 |
%clean_menus |
635 |
%clean_menus |
634 |
|
636 |
|
635 |
%postun relaxed |
637 |
%postun relaxed |
Lines 709-714
Link Here
|
709 |
%_libdir/%python_name/idlelib |
711 |
%_libdir/%python_name/idlelib |
710 |
%_bindir/idle%suffix_ver |
712 |
%_bindir/idle%suffix_ver |
711 |
%doc Lib/idlelib/README.txt Lib/idlelib/NEWS.txt Lib/idlelib/HISTORY.txt Lib/idlelib/CREDITS.txt |
713 |
%doc Lib/idlelib/README.txt Lib/idlelib/NEWS.txt Lib/idlelib/HISTORY.txt Lib/idlelib/CREDITS.txt |
|
|
714 |
%_menudir/idle%version |
712 |
|
715 |
|
713 |
%files tools-pynche |
716 |
%files tools-pynche |
714 |
%_libdir/%python_name/tools/pynche |
717 |
%_libdir/%python_name/tools/pynche |
Lines 758-764
Link Here
|
758 |
%_altdir/%python_name-modules-tkinter |
761 |
%_altdir/%python_name-modules-tkinter |
759 |
%_libdir/%python_name/lib-tk |
762 |
%_libdir/%python_name/lib-tk |
760 |
%_libdir/%python_name/lib-dynload/_tkinter.so |
763 |
%_libdir/%python_name/lib-dynload/_tkinter.so |
761 |
%_menudir/tkinter-%version |
|
|
762 |
|
764 |
|
763 |
%changelog |
765 |
%changelog |
764 |
* Mon Mar 07 2005 Andrey Orlov <cray@altlinux.ru> 2.4.0-alt5 |
766 |
* Mon Mar 07 2005 Andrey Orlov <cray@altlinux.ru> 2.4.0-alt5 |