]> git.pld-linux.org Git - packages/koha.git/commitdiff
- initial release - NFY (but may work anyway)
authorPaweł Gołaszewski <blues@pld-linux.org>
Mon, 16 Dec 2002 03:16:20 +0000 (03:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    koha.spec -> 1.1

koha.spec [new file with mode: 0644]

diff --git a/koha.spec b/koha.spec
new file mode 100644 (file)
index 0000000..191fc79
--- /dev/null
+++ b/koha.spec
@@ -0,0 +1,77 @@
+# TODO:
+# - include apache configuration
+%include       /usr/lib/rpm/macros.perl
+Summary:       A library and collection management system
+Summary(pl):   System zarz±dzania bibliotekami i kolekcjami
+Name:          koha
+Version:       1.2.2
+Release:       0.2
+License:       GPL v2
+Group:         Networking/Utilities
+Source0:       http://www.koha.org/download/files/%{name}-%{version}.tar.gz
+BuildRequires: rpm-perlprov
+URL:           http://www.koha.org/
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _kohadir        /home/services/httpd/html/koha/intranet
+%define                _opacdir        /home/services/httpd/html/koha/opac
+
+%description
+Koha is a library and collection management system. It is designed to
+manage physical collections of items (books, CDs, videos, reference,
+etc.). It provides cataloguing, searching, member/patron management,
+an acqusitions system, and circulation (issues, returns, and
+reserves). Circulation is handled with a full screen curses interface
+or a Web-based interface, and the rest of the system is Web-based.
+
+%prep
+%setup -q
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_kohadir}/{htdocs,cgi-bin,scripts,modules},%{_opacdir}/{htdocs,cgi-bin},%{_sysconfdir},/var/log/koha}
+
+install opac-cgi/* $RPM_BUILD_ROOT%{_opacdir}/cgi-bin
+cp -R opac-html/* $RPM_BUILD_ROOT%{_opacdir}/htdocs
+cp -R intranet-cgi/* $RPM_BUILD_ROOT%{_kohadir}/cgi-bin
+cp -R intranet-html/* $RPM_BUILD_ROOT%{_kohadir}/htdocs
+cp -R modules/* $RPM_BUILD_ROOT%{_kohadir}/modules
+cp -R scripts/* $RPM_BUILD_ROOT%{_kohadir}/scripts
+
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/koha.conf << EOF
+database=koha
+hostname=localhost
+user=koha
+pass=koha
+includes=%{_kohadir}/htdocs/includes
+intranetdir=%{_kohadir}
+opacdir=%{_opacdir}
+kohalogdir=/var/log/koha
+kohaversion=%{version}
+httpduser=httpd
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog* Hints TODO README sampledata-1.2.gz docs/manual koha.mysql
+%attr(640,root,httpd) %config(noreplace) %{_sysconfdir}/koha.conf
+%attr(770,root,httpd) %dir /var/log/koha/
+%attr(770,root,httpd) %dir %{_opacdir}
+%attr(770,root,httpd) %dir %{_opacdir}/cgi-bin
+%attr(770,root,httpd) %dir %{_opacdir}/htdocs
+%attr(770,root,httpd) %dir %{_kohadir}
+%attr(770,root,httpd) %dir %{_kohadir}/cgi-bin
+%attr(770,root,httpd) %dir %{_kohadir}/htdocs
+%attr(770,root,httpd) %dir %{_kohadir}/modules
+%attr(770,root,httpd) %dir %{_kohadir}/scripts
+%attr(750,root,httpd) %{_opacdir}/cgi-bin/*
+%attr(750,root,httpd) %{_opacdir}/htdocs/*
+%attr(750,root,httpd) %{_kohadir}/cgi-bin/*
+%attr(750,root,httpd) %{_kohadir}/htdocs/*
+%attr(750,root,httpd) %{_kohadir}/modules/*
+%attr(750,root,httpd) %{_kohadir}/scripts/*
This page took 0.051116 seconds and 4 git commands to generate.