To build sin-oscar on fc11 I had to patch
the sin-oscar.spec.in; here is attached the new spec.in.
Now sin-oscar build :)

%define prefix          /usr
%define version         %version
%define release         %release
%define releasex        %releasex

%define _unpackaged_files_terminate_build 0

Summary: 	System Installer for the OSCAR cluster stack
Name: 		systeminstaller-oscar
Version: 	%{version}
Release: 	%{release}
License: 	GPL
URL: 		http://systeminstaller.sourceforge.net
Group: 		Applications/System
Source: 	%{name}-%{version}.tar.gz

BuildArchitectures: 	noarch
BuildRequires: 		/usr/bin/perl, perl(AppConfig), perl(MLDBM)
Requires: 		/usr/bin/perl, perl(AppConfig), systemimager-server >= 3.9.0, systemconfigurator, perl(MLDBM), packman, oscar-base-lib > 6.0.1, oda > 1.4.2
Vendor: 		http://oscar.openclustergroup.org
Packager: 		OSCAR developer team
Prefix: 		%{prefix}
Buildroot: 		$RPM_BUILD_ROOT
AutoReqProv: 		no
Provides: 		systeminstaller = %{version}

%package x11
Summary: System Installer Tk Gui
Version: %{version}
License: GPL
URL: http://systeminstaller.sourceforge.net
Group: Applications/System
Requires: systeminstaller >= 1.00, perl-Tk
Vendor: http://oscar.openclustergroup.org
Packager: OSCAR developer team
Prefix: %{prefix}
Buildroot: $RPM_BUILD_ROOT
AutoReqProv: no
Provides: systeminstaller-x11 = %{version}

%description
System Installer provides a unified image building tool. 
It is intended to be distribution and architecture 
independent. It interfaces with SystemImager and 
System Configurator. This version of SystemInstaller is
adapted for use with the OSCAR cluster stack and requires
some of the OSCAR infrastructure.

%description x11
System Installer Perl Tk User Interface

%prep
%setup -n %{name}-%{version}

# No configure, no make, just copy files to the output dir.
%build
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man5
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{prefix} INSTALLSITELIB=$RPM_BUILD_ROOT%{_libdir}/systeminstaller INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 INSTALLMAN3DIR=$RPM_BUILD_ROOT%{_mandir}/man3
make
#make test
make install
rm -rf $RPM_BUILD_ROOT%{_libdir}/systeminstaller/auto*
rm -f $RPM_BUILD_ROOT%{_sharedstatedir}/sis/*

%clean
#rm -fr $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README 
%doc CHANGELOG
%doc COPYING
%doc INSTALL
%doc samples/systeminstaller.conf
%doc samples/disktable
%{prefix}/bin/mk*
%{prefix}/bin/scconf*
%doc %{_mandir}/man1/mk*
%doc %{_mandir}/man1/SIS*
%doc %{_mandir}/man5/systeminstaller*
%doc %{_mandir}/man3/SIS*
%doc %{_mandir}/man3/SystemInstaller::*
%{_libdir}/systeminstaller/SIS
%{_libdir}/systeminstaller/Util
%{_libdir}/systeminstaller/SystemInstaller/*pm
%{_libdir}/systeminstaller/SystemInstaller/Package
%{_libdir}/systeminstaller/SystemInstaller/PackageBest
%{_libdir}/systeminstaller/SystemInstaller/Image
%{_libdir}/systeminstaller/SystemInstaller/Partition
%dir %{_libdir}/systeminstaller
%dir %{_libdir}/systeminstaller/SystemInstaller
%dir /etc/systeminstaller
%dir %{_sharedstatedir}/sis/
%config /etc/systeminstaller/*

%files x11
%defattr(-,root,root)
%{prefix}/bin/tksis
%dir %{_libdir}/systeminstaller/SystemInstaller/Tk
%dir %{_libdir}/systeminstaller/Tk
%dir %{_datarootdir}/systeminstaller/images
%{_datarootdir}/systeminstaller/images/*
%doc %{_mandir}/man1/tksis*
%{_libdir}/systeminstaller/SystemInstaller/Tk/*
%{_libdir}/systeminstaller/Tk/*

%post
for i in client image adapter; do
    touch %{_sharedstatedir}/sis/$i
done

%preun
# if last installed instance remove the sis database files
# 
if [ $1 -eq 0 ]; then
    cd %{_sharedstatedir}/sis
    for i in client image adapter; do
        rm -f $i $i.dir $i.pag
    done
fi


%changelog
* Fri Nov 28 2008 Geoffroy Vallee <valle...@ornl.gov>
- Change the dependency "packman-depman" to "packman"
* Thu Nov 11 2007 Erich Focht -> 2.3.7-1
- added check whether all packages were really installed (new feature of packman)
- added functionality to unmount /proc recursively
- added support for ppc,ppc64 in Partition.pm
* Mon Nov 05 2007 Erich Focht -> 2.3.6-1
- new feature of image builder: passing of package group files
* Sun Nov 04 2007 Erich Focht -> 2.3.5-1
- urgent bugfix for newer Tk (suse 10.2) Tk/Image.pm.
* Fri Oct 19 2007 Erich Focht -> 2.3.4-1
- fix trouble with non-english locale: ifconfig output is unexpected
- when virtual interfaces are defined, they need to be excluded from the
  dhcp configuration, otherwise dhcpd won't start
- month in comment is wrong (in the range 0..11)
- ifconfig is used without path, sometimes this leads to problems
- for software raids the automatically created mdadm.conf had a wrong raid level
* Fri Oct 19 2007 Erich Focht -> 2.3.3-1
- Fixed bug introduced in changeset 5892 (breaking repository selection)
* Mon Oct 15 2007 Erich Focht -> 2.3.2-1
- Modified checks for systemconfigurator to accept opkg-sis-client OR systemconfigurator
- Changes by BLi (kexec)
- Changes by GVallee
* Fri Oct 27 2006 Erich Focht
- Added support for RAID0,1,5,6 and new XML format in systemimager for software raids
- Added support for spare devices when defining raids.
- version 2.3.1

* Fri Jul 14 2006 Erich Focht
- Added scconf_tool and scconf_kernel for editing sc.conf files
- Removed 15 characted kernel boot label length limitation
- version: 2.3.0

* Sun Apr 16 2006 Bernard Li <b...@bcgsc.ca>
- Removed multicast bits since this is now taken care of by the
  "Setup Networking" widget in OSCAR

* Tue Apr 11 2006 Erich Focht
- added functionality for selecting distros when building an image,
  depending on the installed repos.
- added special names for appliances which will not be provided with
  files when booted through dhcpd. This way the DHCP server can be
  used for more than just the cluster nodes.

* Sun Feb 12 2006 Erich Focht
- Removed stuff which is either obsolete or not used with OSCAR.
- Removed distinfo and need for distro detection.
- Improved progress bar code.

* Sat Feb 11 2006 Bernard Li <b...@bcgsc.ca>
- Fix tksis bug (patch by Steven A. DuChene)
- Fix for OSCAR bug #1343429 - "Use of uninitialized value in hash element"

* Fri Jan 13 2006 Erich Focht
- bug fix for better detection of nodev filesystems in disktab files

* Wed Nov 30 2005 Erich Focht <efo...@hpce.nec.com>
- generating /etc/mdadm.conf when the disktable contains RAID definitions

* Fri Jul 29 2005 Erich Focht <efo...@hpce.nec.com>
- fixed removal of sis database files on deinstallation
- added flamethrower.conf update in mksiimage
- deleted image addition to flamethrower.conf in lib/SystemInstaller/Tk/Image.pm

* Wed Jul 27 2005 Erich Focht <efo...@hpce.nec.com>
- fixed flamethrower setup for images

* Wed Jul 20 2005 Erich Focht <efo...@hpce.nec.com>
- added Mandriva and CentOS support
- added --update option to mksiimage (update arch or location)
- enabld coexistence of architectures in dhcpd (mkdhcpd_conf)
- added x64_64 to bin/buildimage

* Fri Jul 15 2005 Erich Focht <efo...@hpce.nec.com>
- repackaged for OSCAR
- moved ugly external patches (after RPM install) into RPM
- splitted up OSCAR 4.X patches into digestible pieces
- support for systemimager-3.5.X (API change)
- support for x86_64
- added forced architecture in rpmlists ($pkg:$arch)
- added support for Scientific Linux
- added support for software raid1

* Tue Dec 17 2002 Michael Chase-Salerno <mcha...@users.sf.net>

- Changes for stable prereqs.

* Wed Dec 4 2002 Michael Chase-Salerno <mcha...@users.sf.net>

- Changes for MLDBM based database.

* Thu Aug 30 2001 Sean Dague <j...@us.ibm.com>

- Initial spec file.
------------------------------------------------------------------------------
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to