[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1275] trunk/dists/rpm/ledgersmb.spec
- Subject: SF.net SVN: ledger-smb: [1275] trunk/dists/rpm/ledgersmb.spec
- From: ..hidden..
- Date: Wed, 13 Jun 2007 20:08:50 -0700
Revision: 1275
http://svn.sourceforge.net/ledger-smb/?rev=1275&view=rev
Author: einhverfr
Date: 2007-06-13 20:08:50 -0700 (Wed, 13 Jun 2007)
Log Message:
-----------
Including David Fetter's .spec file for 1.3
Modified Paths:
--------------
trunk/dists/rpm/ledgersmb.spec
Modified: trunk/dists/rpm/ledgersmb.spec
===================================================================
--- trunk/dists/rpm/ledgersmb.spec 2007-06-13 18:30:01 UTC (rev 1274)
+++ trunk/dists/rpm/ledgersmb.spec 2007-06-14 03:08:50 UTC (rev 1275)
@@ -1,19 +1,18 @@
# RPM spec written for and tested on Fedora Core 6
Summary: LedgerSMB - Open Source accounting software
-Name: ledger-smb
-Version: svn
-Release: 1
+Name: ledgersmb
+Version: 1.2.5
+Release: 2
License: GPL
URL: http://www.ledgersmb.org/
Group: Applications/Productivity
-Source0: http://prdownloads.sourceforge.net/ledger-smb/%{name}-%{version}.tar.gz
-Source1: Class-Std-v0.0.8.tar.gz
-Source2: Config-Std-v0.0.4.tar.gz
-Source3: Locale-Maketext-Lexicon-0.62.tar.gz
+Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
-Requires: perl >= 5.8, httpd, postgresql-server >= 8.1, tetex-latex
-Requires: perl-DBD-Pg, perl-DBI, perl-version, perl-Smart-Comments, perl-MIME-Lite
+Requires: perl >= 5.8, httpd, postgresql >= 8.1, tetex-latex
+Requires: perl-DBD-Pg, perl-DBI >= 1.48, perl-version, perl-Smart-Comments
+Requires: perl-MIME-Lite, perl-Class-Std >= 0.0.8
+Requires: perl-Config-Std >= 0.0.4, perl-Locale-Maketext-Lexicon >= 0.62
BuildRequires: perl
# avoid bogus autodetection of perl modules:
AutoReqProv: no
@@ -26,7 +25,7 @@
This package does not work in SELinux restricted mode.
-To finalize the ledger-smb installation:
+To finalize the ledgersmb installation:
Enable local password autentication in PosgreSQL, leaving ident login for the
postgres user:
@@ -37,7 +36,7 @@
host all all 127.0.0.1/32 md5
- Restart PostgreSQL to apply changes (service postgres restart)
-In %{_sysconfdir}/%{name}/ledger-smb.conf set DBPassword to something
+In %{_sysconfdir}/%{name}/ledgersmb.conf set DBPassword to something
and create the ledgersmb master user and database:
su - postgres -c "createuser -d ledgersmb --createdb --superuser -P"
su - postgres -c "createdb ledgersmb"
@@ -46,22 +45,13 @@
Bleeding edge hint: Set password to avoid bogus web prompt:
su - postgres -c "psql ledgersmb -c \"update users_conf set password = md5('yada') where id = 1;\""
-Visit http://localhost/ledger-smb/admin.pl with password "yada" and create an
+Visit http://localhost/ledgersmb/admin.pl with password "yada" and create an
application database and users.
%prep
-%setup -q -n ledger-smb
+%setup -q -n ledgersmb
-# Include code from perl packages not available in the standard distribution
-mkdir .tmperl
-cd .tmperl
-tar xzf %SOURCE1
-tar xzf %SOURCE2
-tar xzf %SOURCE3
-mv */lib/* ..
-cd ..
-
chmod 0644 $(find . -type f)
chmod 0755 $(find . -type d)
chmod +x *.pl
@@ -71,35 +61,33 @@
%build
-cat << TAK > rpm-ledger-smb-httpd.conf
-Alias /ledger-smb/doc/LedgerSMB-manual.pdf %{_docdir}/%{name}-%{version}/LedgerSMB-manual.pdf
+cat << TAK > rpm-ledgersmb-httpd.conf
+Alias /ledgersmb/doc/LedgerSMB-manual.pdf %{_docdir}/%{name}-%{version}/LedgerSMB-manual.pdf
<Files %{_docdir}/%{name}-%{version}/LedgerSMB-manual.pdf>
</Files>
TAK
-perl -p -e "s,/some/path/to/ledger-smb,%{_datadir}/%{name},g" ledger-smb-httpd.conf >> rpm-ledger-smb-httpd.conf
+perl -p -e "s,/some/path/to/ledgersmb,%{_datadir}/%{name},g" ledgersmb-httpd.conf >> rpm-ledgersmb-httpd.conf
%install
rm -rf $RPM_BUILD_ROOT
-mkdir -p -m0755 $RPM_BUILD_ROOT%{_datadir}/%{name} # /usr/lib/ledger-smb - readonly code and cgi directory
-mkdir -p -m0750 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} # /etc/ledger-smb - configs
-mkdir -p -m0750 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name} # /var/lib/ledger-smb - data files, modified by cgi
-mkdir -p -m0750 $RPM_BUILD_ROOT%{_localstatedir}/spool/%{name} # /var/spool/ledger-smb - spool files, modified by cgi
+mkdir -p -m0755 $RPM_BUILD_ROOT%{_datadir}/%{name} # /usr/lib/ledgersmb - readonly code and cgi directory
+mkdir -p -m0750 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} # /etc/ledgersmb - configs
+mkdir -p -m0750 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name} # /var/lib/ledgersmb - data files, modified by cgi
+mkdir -p -m0750 $RPM_BUILD_ROOT%{_localstatedir}/spool/%{name} # /var/spool/ledgersmb - spool files, modified by cgi
# the conf, placed in etc, symlinked back in place
-mv ledger-smb.conf.default $RPM_BUILD_ROOT%{_sysconfdir}/ledger-smb/ledger-smb.conf
-ln -s ../../..%{_sysconfdir}/ledger-smb/ledger-smb.conf \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/ledger-smb.conf
+mv ledgersmb.conf.default $RPM_BUILD_ROOT%{_sysconfdir}/ledgersmb/ledgersmb.conf
+ln -s ../../..%{_sysconfdir}/ledgersmb/ledgersmb.conf \
+ $RPM_BUILD_ROOT%{_datadir}/%{name}/ledgersmb.conf
# install relevant parts in data/cgi directory
cp -rp *.pl favicon.ico index.html ledger-smb.eps ledger-smb.gif ledger-smb.png ledger-smb_small.png menu.ini \
bin LedgerSMB sql utils locale drivers \
- Config Class Locale \
$RPM_BUILD_ROOT%{_datadir}/%{name}/
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/{setup.pl,SL2LS.pl} # FIXME - install somewhere else...
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/legacy
# users - written to by cgi
@@ -128,10 +116,9 @@
# apache config file
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
-install -m 644 rpm-ledger-smb-httpd.conf \
- $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ledger-smb.conf
+install -m 644 rpm-ledgersmb-httpd.conf \
+ $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ledgersmb.conf
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -150,10 +137,14 @@
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
%doc doc/{COPYRIGHT,faq.html,LedgerSMB-manual.pdf,README,release_notes}
-%doc BUGS Changelog CONTRIBUTORS INSTALL LICENSE README.sql-ledger README.translations TODO UPGRADE
+%doc BUGS Changelog CONTRIBUTORS INSTALL LICENSE README.translations TODO UPGRADE
%changelog
+* Wed Jun 13 2007 David Fetter <..hidden..> 1.25-2
+- Updated to 1.25
+- Use perl-* RPM packages rather than bundling them
+
* Fri Nov 10 2006 Mads Kiilerich <..hidden..> - 1.2-alpha
- Updating towards 1.2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.