guidance with build service,

James Tremblay aka SLEducator <[email protected]>
Newsgroups gmane.linux.suse.schools.usa
Message-ID <[email protected]>
I have uploaded new code for the openSIS product.
This is a stabilized version of the work done by the GSOC student and
the community at opensis.sourceforge.net
I am having some issues with modifying the "spec" file for the build
service.
Would someone be able to to look at the log and spec files and give me
some hints. I want to learn to manage this project but could us some
assistance.
Thanks
James
opensis.spec (text/plain, 6 KB)
#
# spec file for package openSIS (Version 4.5)
#
# Copyright (c) 2008 os4ed.com Atlanta, GA USA
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://sourceforge.net/tracker/?group_id=267115&atid=1136873
# 
#

# norootforbuild


Name:           opensis
Summary:        A Student information System
Url:            http://opensis.sourceforge.net/
License:        GPL v2 or later
Group:          Productivity/Networking/Web/Utilities
AutoReqProv:    on
Version:        4.5.0.0
Release:        00.0
Source:         opensis.zip
Source2:        opensis_include.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Vendor:          openSUSE-Education
BuildArch:      noarch
PreReq:         apache2
PreReq:         mysql 
PreReq:         mysql-client



BuildRequires:  apache2-devel unzip
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif

Requires:       cron freetype2
Requires:       mod_php_any cron php5-gd php5-mysql php5-gettext php5-mbstring  php5-iconv  php5-zlib php5-zip 
Requires:       php5-mcrypt php5-pear-file php5-pear-mail php5-pear-mail_mime php5-ldap php5-imap php5-curl
Recommends:     phpMyAdmin yast2-http-server
%define         apache_serverroot %(/usr/sbin/apxs2 -q DATADIR)
%define         apache_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR)
%define         opensisrootdir %{apache_serverroot}/opensis
%define         opensisdatadir %{apache_serverroot}/opensisdata
%define         opensisconfigdir %{_sysconfdir}/opensis/install
%define         opensisurl http://localhost/opensis
%define         crondir %{_sysconfdir}/cron.d

%description
openSIS is a free student information system that rivals costly commercial alternatives in looks, functionality and ease of use and administration. openSIS is the centerpiece of an evolving set of integrated open source education applications that support schools and districts. openSIS is a game changer and a new paradigm in administrative education software. Our founders have always said that if we can produce an open source package that is easy to use, looks great, has the same functionality as commercial alternatives and represents a TCO up to 75% less than comparable solutions, then the decision should be easy.



Authors:
--------
    Packager: James Tremblay <[email protected]>
    Authors: opensis.sourceforge.net

# ---------------------------------------------------------------------------

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

# ---------------------------------------------------------------------------

%build
# if the following command fails, then apache dependencies are not met
/usr/sbin/apxs2 -q datadir >/dev/null


# ---------------------------------------------------------------------------

%install
%{__mkdir_p} %{buildroot}/%{opensisrootdir}
%{__mkdir_p} %{buildroot}/%{opensisdatadir}/{backup,upgradelogs}
%{__mkdir_p} %{buildroot}/%{opensisconfigdir}
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/cron.d
%{__mkdir_p} %{buildroot}/%{apache_sysconfdir}/conf.d/
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}/%{name}
%{__cp} -a * %{buildroot}/%{opensisrootdir} 
install %{SOURCE2} %{buildroot}/%{apache_sysconfdir}/conf.d/  
perl -pi -e "s#ROOTDIR#%{opensisrootdir}#g" %{buildroot}/%{apache_sysconfdir}/conf.d/opensis_include.conf  

# cleanup unnecessary files
find %{buildroot} -name \*.bak -exec rm {} \;
find %{buildroot} -name ".#*" -exec rm {} \;
find %{buildroot} -name \*.exe -exec rm {} \;
find %{buildroot} -name \*.cvsignore -exec rm {} \;
find %{buildroot} -type d -name CVS -print0 | xargs -0 rm -rf {} \;


# documentation
# cp %{buildroot}/%{opensisrootdir}/docs* %{buildroot}/%{_defaultdocdir}/%{name]/
# chmod 644 %{buildroot}/%{_defaultdocdir}/%{name}/*

# reduce package size: use fdupes
%if 0%{?suse_version} > 1020
  %fdupes -s $RPM_BUILD_ROOT
%endif

# create ghost file for ownership
touch %{buildroot}/%{opensisrootdir}/data.php

# ---------------------------------------------------------------------------

%clean
rm -rf %{buildroot}
# ---------------------------------------------------------------------------

%files   
%defattr(644,root,root,755)  
#%doc %{_defaultdocdir}/%{name}  
#%dir %{opensisrootdir}  
#%dir %{opensisrootdir}/lang  
#%attr(-,wwwrun,root) %dir %{opensisconfigdir}  
#%dir %{_sysconfdir}/opensis  
#%{opensisrootdir}/[a-ce-km-z]*  
#%{opensisrootdir}/lang/en*  
#%{opensisrootdir}/lib  
#%{opensisrootdir}/login  
#%config(noreplace) %{opensisrootdir}/config.php  
#%config(noreplace) %{_sysconfdir}/cron.d/suse.de-opensis  
#%config(noreplace) %{apache_sysconfdir}/conf.d/opensis_include.conf  
#%config(noreplace) %attr(0460,wwwrun,root)%{opensisconfigdir}/config.php.in  
#%config(noreplace) %attr(0640,wwwrun,www) %{opensisconfigdir}/config.php  
#%defattr(644,wwwrun,www,775)


#%files 
#%defattr(644,root,root,755)
#%doc %{_defaultdocdir}/%{name}
#%dir %{opensisrootdir}
#%dir %{opensisconfigdir}
#%dir /etc/opensis
#%{opensisrootdir}/*
#%config(noreplace) %{apache_sysconfdir}/conf.d/opensis_include.conf
#%config(noreplace) %{_sysconfdir}/cron.d/opensis
#%config(noreplace) %attr(0460,wwwrun,root)%{opensisconfigdir}/data.php
#%ghost %config(noreplace,missingok) %attr(0460,wwwrun,root)%opensisrootdir/data.php
#%defattr(644,root,root,775)
#%dir %{opensisdatadir}
#%{opensisdatadir}/*
#%defattr(755,root,root,-)

# --------------------------------Changelog-----------------------
%changelog
* Thu Sep 10 2009 [email protected]
- converted project to new MySQl version 4.5
* Sat Dec 7 2008 [email protected]
- remove reguires php5-session
* Tue Dec 2 2008 [email protected]
- adjustments to spec file
* Sat Nov 15 2008 [email protected]
- initial package (4.2.0)
build log (text/plain, 178.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.