File linuxcoe-sd-base.spec of Package linuxcoe-sd-base

Name: linuxcoe-sd
Version: 4.3.1
Release: 0.201401152323
Summary: LinuxCOE SystemDesigner web interface

Group: Applications/System
License: GPLv2
URL: http://linuxcoe.sourceforge.net/
Source: linuxcoe-sd_4.3.1.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildArch: noarch
#BuildRequires: ??
#-#FixMe
Requires: apache2, genisoimage, perl, sudo
#Provides: linuxcoe-sd

%description
LinuxCOE SystemDesigner is a unifying web application that allows
a user to repeatably install, configure, and maintain different
Linux system installations. It's CGI-based interface provides means
to generate boot images for network or local media based installations,
save profiles that store custom installation preferences for later re-use,
and retrofit already deployed systems by overlaying other value-add components.

%prep

%setup -q

%build
#-#FixMe
./configure \
        webalias="systemdesigner" \
        webworkdir="scratchmonkey" \
        httpdcfgdir="/etc/apache2/conf.d" \
        httpd_user="wwwrun" \
        httpd_group="www" \
        sudoers_cfg="/etc/sudoers" \
        --prefix=/usr/share/linuxcoe-sd \
        --sysconfdir=/etc/linuxcoe-sd \
        --localstatedir=%{_var} \
        --without-MKISOFS \
        --without-PERLMOD \
        --without-PALO \
        --without-SENDMAIL \
        --without-APACHECTL \
        --without-SUDO

%install
%{__rm} -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

# scriptlets

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
#-#FixMe
%defattr(-,root,root,-)
%config(noreplace) /etc/linuxcoe-sd/linuxcoe.rc
%config(noreplace) /etc/linuxcoe-sd/includes/LinuxCOE-SystemDesigner
%config(noreplace) /etc/linuxcoe-sd/includes/LinuxCOE-SystemDesigner.conf
%config(noreplace) /etc/linuxcoe-sd/includes/config.state
%config(noreplace) /etc/linuxcoe-sd/includes/sudoers
#%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
%attr(-,wwwrun,www) %{_var}/cache/linuxcoe-sd
%{_var}/lib/linuxcoe-sd
%attr(-,wwwrun,www) %{_var}/log/linuxcoe-sd
/usr/share/linuxcoe-sd
/etc/linuxcoe-sd

%post
#/usr/share/linuxcoe-sd/bin/post-actions -i

%postun
#/usr/share/linuxcoe-sd/bin/post-actions -u

%changelog
* Wed Feb 28 2007 - Louis Bouchard <louis_bouchard@users.sf.net>
  - Initial packaged release