%define name refbase %define version 0.8.0 %define release %mkrel 2 Summary: Web-based, multi-user interface for managing scientific literature & citations Name: %{name} Version: %{version} Release: %{release} Source0: http://prdownloads.sourceforge.net/refbase/%{name}-%{version}.tar.bz2 License: GPL Group: System/Servers Url: http://refbase.sourceforge.net Requires: bibutils Requires: MySQL Requires: mod_php Requires: php-mysql Requires: webserver BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description refbase is a web-based, standards-compliant, multi-user interface for managing scientific literature & bibliographic references. Based on php & mysql, it offers a bibliography database with powerful search tools and automatically generated citation lists. To finish the installation, just go to http://localhost/refbase/install.php %prep %setup -q %build %install %{__rm} -rf $RPM_BUILD_ROOT # install files install -d -m 755 $RPM_BUILD_ROOT%{_var}/www/html/%{name} perl -pi -e 's|/usr/local/mysql/bin/mysql|"%{_bindir}/mysql"|;' install.php cp -pRH * $RPM_BUILD_ROOT%{_var}/www/html/%{name} chmod 755 $RPM_BUILD_ROOT%{_var}/www/html/%{name}/install.sql %clean rm -rf $RPM_BUILD_ROOT #%post #%postun %files %defattr(-,root,root,0755) %{_var}/www/html/%{name}/* %doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO UPDATE %changelog * Wed Aug 23 2006 Stéphane Téletchéa <steletch@mandriva.org> 0.8.0-2 - fix some rpmlint warnings and a typo in the tarball source * Tue May 9 2006 Stéphane Téletchéa <steletch@free.fr> 0.8.0-1mdk - Initial release