Name: gnumed-server Version: 14.6 Release: 1%{?dist} Summary: The GNUmed back end server Group: Applications/Productivity License: GPLv2 URL: http://wiki.gnumed.de/ Source0: http://www.gnumed.de/downloads/server/v14/%{name}.%{version}.tgz Patch0: gnumed-server-14.6.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch Requires: postgresql-server Requires: python-psycopg2 %description The GNUmed project builds an open source Electronic Medical Record. It is developed by a handful of medical doctors and programmers from all over the world. It can be useful to anyone documenting the health of patients, including but not limited to doctors, physical therapists, occupational therapists. %prep %setup -q -n gnumed-server.%{version} %patch0 -p1 %install pushd server rm -rf %{buildroot} mkdir -p %{buildroot}%{_libdir}%{name} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir}/%{name}/server cp -r * %{buildroot}%{_libdir}/%{name}/server # silcence bootstrap process by setting interactive to 'no' and set 'gm-dbo' as default password for conffile in `find %{buildroot}/%{_libdir}/%{name}/server/bootstrap -maxdepth 1 -type f -name \*.conf` ; do \ sed -i 's/^\(interactive[[:space:]]*=[[:space:]]*\)yes/\1no/' "$conffile" ; \ sed -i 's/^\(password[[:space:]]*=[[:space:]]*\)/\1 gm-dbo/' "$conffile" ; \ done # copy all scripts cp *.sh %{buildroot}%{_bindir} cp gm-bootstrap_server %{buildroot}%{_bindir} echo "%{version}" > %{buildroot}%{_libdir}/%{name}/server/version.txt popd %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc %{_libdir}/gnumed-server/* %{_bindir}/* %changelog * Wed Jan 12 2011 - Susmit Shannigrahi - 14.6-1 - New upstream release. * Sun Jan 02 2011 - Susmit Shannigrahi - 14.5-1 - Initial packaging based on Sebastian Hilbert's unofficial package for F13.