File openbiblio.spec of Package openbiblio

#
# spec file for package openbiblio
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild


Name:           openbiblio
Summary:        OpenBiblio is an easy to use, automated library system 
Url:            http://obiblio.sourceforge.net/
License:        GPL 
Group:          Productivity/Networking/Web/Utilities
BuildArch:      noarch
AutoReqProv:    on
Version:        0.6.1
Release:        1
Source:         %{name}-%{version}.tar.bz2
Source2:        openbiblio_include.conf
PreReq:         apache2 mysql php5
BuildRequires:  apache2-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define installdir /srv/www/%name
%define apache_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR)

%description
OpenBiblio is an easy to use, automated library system written in PHP 
containing OPAC, circulation, cataloging, and staff administration functionality.

OpenBiblio comes with a context sensitive HTML Help System, accessible from a link 
on the bottom of each OpenBiblio page or the lefthand navigation area. Only a start 
for the contents of the Help System has been given in the current release, but it is 
easy to extend this.
  

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

%build

%install
%{__mkdir_p} %{buildroot}%{installdir}
%{__mkdir_p} %{buildroot}%{_defaultdocdir}/%{name}/
%{__mkdir_p} %{buildroot}%{apache_sysconfdir}/conf.d/
cp -a * %{buildroot}%{installdir}/
install %{SOURCE2} %{buildroot}/%{apache_sysconfdir}/conf.d/
perl -pi -e "s#ROOTDIR#%{installdir}#g" %{buildroot}/%{apache_sysconfdir}/conf.d/openbiblio_include.conf

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc GPL.txt ChangeLog install_instructions.html
%dir %{installdir}
%{installdir}
%config(noreplace) %{apache_sysconfdir}/conf.d/openbiblio_include.conf

%changelog
openSUSE Build Service is sponsored by