X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=anaconda.spec;h=3113d757449523e58592280d0ed9e401e376336e;hb=ccf949ed7780056993d9ba3ed78d691700fbb89b;hp=9d0c91d1ab15a52465bcb6e8fd1d7005e553c269;hpb=a0fa08fbecf754ab48f787d28a4384214cda9713;p=packages%2Fanaconda.git diff --git a/anaconda.spec b/anaconda.spec index 9d0c91d..3113d75 100644 --- a/anaconda.spec +++ b/anaconda.spec @@ -1,3 +1,6 @@ +# TODO +# - kill /mnt/runtime symlink hacks (leave the host alone!) +# %if 0 # FC to PLD deps replace rules, extracted from cvs logs :%s#libxml2-python#python-libxml2# @@ -14,7 +17,7 @@ Summary: Graphical system installer Summary(pl): Graficzny instalator systemu Name: anaconda Version: 11.0.5 -Release: 0.51 +Release: 0.84 License: GPL Group: Applications/System Source0: %{name}-%{version}.tar.bz2 @@ -23,6 +26,9 @@ Source1: %{name}-mk-images Source2: %{name}-upd-instroot Source3: %{name}-mk-images.i386 Source4: %{name}-scrubtree +Source5: %{name}-installclass-pld.py +Source6: %{name}-splash.png +# Source6-md5: 6b38a868585adfd3a96a4ad16973c1f8 Patch0: %{name}-pld.patch Patch1: %{name}-BUS_XEN.patch Patch2: %{name}-vserver-proc.patch @@ -35,47 +41,32 @@ Patch8: %{name}-kernel.patch Patch9: %{name}-optflags.patch Patch10: %{name}-network.patch Patch11: %{name}-branding.patch +Patch12: %{name}-x11.patch +Patch13: %{name}-installclasses.patch +Patch14: %{name}-release_notes_viewer_gui.patch +Patch15: %{name}-hosttree.patch URL: http://fedora.redhat.com/projects/anaconda-installer/ -BuildRequires: X11-devel -BuildRequires: beecrypt-devel BuildRequires: bzip2-devel -BuildRequires: device-mapper-devel >= 1.01.05 BuildRequires: device-mapper-static >= 1.01.05 BuildRequires: e2fsprogs-devel -BuildRequires: elfutils-devel BuildRequires: gettext-devel >= 0.11 -BuildRequires: glibc-localedb-all BuildRequires: glibc-static BuildRequires: gtk+2-devel -BuildRequires: intltool >= 0.31.2-3 BuildRequires: kudzu-devel >= 1.2.0 -BuildRequires: libselinux-devel >= 1.6 -BuildRequires: libselinux-static -BuildRequires: libsepol-devel +BuildRequires: libselinux-static >= 1.6 BuildRequires: libsepol-static -BuildRequires: newt-devel BuildRequires: newt-static -BuildRequires: pango-devel -BuildRequires: pciutils-devel -BuildRequires: pirut BuildRequires: popt-static -BuildRequires: pump-devel >= 0.8.24-1 BuildRequires: pump-static >= 0.8.24-1 -BuildRequires: python-booty >= 0.71 BuildRequires: python-devel -BuildRequires: python-kickstart -BuildRequires: python-libxml2 BuildRequires: python-rhpl -BuildRequires: python-rpm >= 4.2-0.61 -BuildRequires: python-urlgrabber -BuildRequires: rpm-devel +BuildRequires: python-rpm BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.234 BuildRequires: sed >= 4.0 BuildRequires: slang-static -BuildRequires: yum -BuildRequires: zlib-devel BuildRequires: zlib-static +Requires: /etc/pld-release Requires: device-mapper >= 1.01.05 Requires: dosfstools Requires: e2fsprogs @@ -83,31 +74,24 @@ Requires: glibc-localedb-all Requires: grubby Requires: hfsutils Requires: jfsutils -Requires: kudzu > 1.2.0 +Requires: kudzu >= 1.2.34.3-1.1 Requires: lvm2 Requires: mdadm -Requires: pirut -Requires: python-booty >= 0.71-0.2 +Requires: python-booty >= 0.71-0.6 Requires: python-devel-tools Requires: python-kickstart Requires: python-libxml2 Requires: python-parted -Requires: python-rhpl >= 0.170 -Requires: python-rhpxl >= 0.18 +Requires: python-rhpl >= 0.176-1.2 Requires: python-rpm >= 4.2-0.61 Requires: python-snack Requires: python-urlgrabber >= 2.9.8 -Requires: python-xf86config >= 0.3.24 Requires: reiserfsprogs -#Requires: system-logos Requires: xfsprogs Requires: yum >= 2.5.1-3 %ifnarch s390 s390x Requires: python-pyblock >= 0.7-1 %endif -%ifnarch s390 s390x ppc64 -Requires: python-rhpxl -%endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -119,6 +103,25 @@ Pakiet anaconda zawiera program, kt systemu. Pliki te maj± niewiele zastosowañ na ju¿ zainstalowanym systemie. +%package gui +Summary: Anaconda GTK+2 GUI +Group: Applications/System +Requires: %{name} = %{version}-%{release} +Requires: X11-OpenGL-core +Requires: X11-Xserver +Requires: X11-fonts +Requires: pirut +Requires: python-gnome-canvas +Requires: system-config-keyboard +#Requires: system-logos +Requires: vnc-utils +%ifnarch s390 s390x ppc64 +Requires: python-rhpxl >= 0.18-0.9 +%endif + +%description gui +Anaconda GUI portion. + %package runtime Summary: Graphical system installer portions needed only for fresh installs Summary(pl): Elementy graficznego instalatora systemu potrzebne tylko przy nowych instalacjach @@ -150,6 +153,19 @@ do instalowania nowych system no¶ników, nie s± przewidziane do u¿ywania na ju¿ zainstalowanych systemach. +%package debug +Summary: Sourcecode for Anaconda +Summary(pl): Kod ¼ród³owy Anacondy +Group: Applications/System +AutoReqProv: false +Requires: %{name} = %{version}-%{release} + +%description debug +Anaconda sourcecode for debugging purposes. + +%description debug -l pl +Kod ¼ród³owy Anacondy do celów diagnostycznych. + %prep %setup -q %patch0 -p1 @@ -164,10 +180,20 @@ systemach. %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch12 -p1 +%patch13 -p1 +%patch14 -p1 +%patch15 -p1 rm -f po/no.po mv -f po/{eu_ES,eu}.po +# we don't want this being visible, neither want we to kill it (the +# other's aren't valid anyway (outdated probably). +mv installclasses/fedora.py{,.orig} +# we want this install class ;) +cp %{SOURCE5} installclasses/pld.py + sed -i -e 's/$(PYTHON) scripts/python scripts/' Makefile %build @@ -178,10 +204,10 @@ if [ "$(locale -a | grep -c en_US.utf8)" = 0 ]; then exit 1 fi -%{__make} depend \ +%{__make} depend -j1 \ CC="%{__cc}" -%{__make} \ +%{__make} -j1 \ CC="%{__cc}" \ REALCC="%{__cc}" \ OPTFLAGS="%{rpmcflags}" @@ -200,9 +226,14 @@ cp %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images cp %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/upd-instroot cp %{SOURCE3} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/mk-images.i386 cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/anaconda-runtime/scrubtree +cp %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/anaconda/splash.png %find_lang %{name} -%py_postclean %{_libdir}/anaconda + +# hack so py_postclean would preserve it +install $RPM_BUILD_ROOT%{_libdir}/anaconda/iw/release_notes_viewer_gui{.py,} + +%{!?debug:%py_postclean %{_libdir}/anaconda} %clean rm -rf $RPM_BUILD_ROOT @@ -210,25 +241,42 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc docs/* -%attr(755,root,root) %{_bindir}/mini-wm %attr(755,root,root) %{_sbindir}/anaconda -%{_datadir}/anaconda %dir %{_libdir}/anaconda %{_libdir}/anaconda/*.py[co] +%exclude %{_libdir}/anaconda/xsetup.py[co] %dir %{_libdir}/anaconda/installclasses %{_libdir}/anaconda/installclasses/*.py[co] -%dir %{_libdir}/anaconda/iw -%{_libdir}/anaconda/iw/*.py[co] %dir %{_libdir}/anaconda/textw %{_libdir}/anaconda/textw/*.py[co] %{_libdir}/anaconda/lang-names %{_libdir}/anaconda/lang-table %{_libdir}/anaconda/lang-table-kon -%attr(755,root,root) %{_libdir}/anaconda/*-stub -%attr(755,root,root) %{_libdir}/anaconda/*.so +%attr(755,root,root) %{_libdir}/anaconda/_isys.so + +%files gui +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/mini-wm +%attr(755,root,root) %{_libdir}/anaconda/iw/release_notes_viewer_gui +%attr(755,root,root) %{_libdir}/anaconda/xmouse.so +%attr(755,root,root) %{_libdir}/anaconda/xutils.so +%{_libdir}/anaconda/xsetup.py[co] +%dir %{_libdir}/anaconda/iw +%{_libdir}/anaconda/iw/*.py[co] +%{_datadir}/anaconda + +%if %{!?debug:0}%{?debug:1} +%files debug +%defattr(644,root,root,755) +%{_libdir}/anaconda/*.py +%{_libdir}/anaconda/installclasses/*.py +%{_libdir}/anaconda/iw/*.py +%{_libdir}/anaconda/textw/*.py +%endif %files runtime %defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/anaconda/*-stub %dir %{_libdir}/anaconda-runtime %dir %attr(755,root,root) %{_libdir}/anaconda-runtime/boot %attr(755,root,root) %{_libdir}/anaconda-runtime/boot/syslinux.cfg