/[smecontribs]/rpms/smeserver-theaddressbook/contribs7/smeserver-theaddressbook-0.9.spec
ViewVC logotype

Annotation of /rpms/smeserver-theaddressbook/contribs7/smeserver-theaddressbook-0.9.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Sat Dec 22 22:18:30 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
Changes since 1.3: +0 -2 lines
Remove Packager/Distribution (added by buildsys)

1 slords 1.1 Summary: smserver rpm to setup The Address Book, an address management system
2     %define name smeserver-theaddressbook
3     Name: %{name}
4     %define version 0.9
5     %define release 1
6     Version: %{version}
7 slords 1.3 Release: %{release}%{?dist}
8 slords 1.2 License: GPL
9 slords 1.1 URL: http://www.dungog.net/sme
10     Group: SMEserver/addon
11     Source: %{name}-%{version}.tar.gz
12     BuildArchitectures: noarch
13     BuildRoot: /var/tmp/%{name}-%{version}
14     Requires: e-smith-release >= 7.0
15     Requires: theaddressbook
16     AutoReqProv: no
17    
18     %description
19     smserver rpm to setup The Address Book, an address management system
20    
21     %changelog
22     * Thu Dec 21 2006 Stephen Noble <support@dungog.net>
23     - initial release
24     - [0.9-1]
25    
26     %prep
27     %setup
28    
29     %build
30     #perl createlinks
31     mkdir -p root/etc/e-smith/db/accounts/defaults/addressbook
32     echo "reserved" > root/etc/e-smith/db/accounts/defaults/addressbook/type
33    
34     mkdir -p root/etc/e-smith/db/configuration/defaults/addressbook
35     echo "The Address Book" > root/etc/e-smith/db/configuration/defaults/addressbook/Name
36     echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/addressbook/PublicAccess
37    
38     %install
39     rm -rf $RPM_BUILD_ROOT
40     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
41     rm -f %{name}-%{version}-filelist
42     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
43     --file '/opt/addressbook/import.pl' 'attr(0755,root,root)' \
44     > %{name}-%{version}-filelist
45     echo "%doc COPYING" >> %{name}-%{version}-filelist
46    
47     %clean
48     cd ..
49     rm -rf %{name}-%{version}
50    
51     %pre
52     %preun
53    
54     %post
55     /etc/e-smith/events/actions/initialize-default-databases
56     /sbin/e-smith/expand-template /etc/e-smith/sql/init/80addressbook.sql
57     /etc/rc.d/init.d/mysql.init start
58     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
59     /usr/local/bin/svc -h /service/httpd-e-smith
60    
61     echo ""
62     echo "see www.dungog.net/sme/webapp.php"
63     echo "current settings 'config show addressbook'..."
64     /sbin/e-smith/config show addressbook
65    
66     %postun
67     #uninstall
68     if [ $1 = 0 ] ; then
69     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
70     /usr/local/bin/svc -h /service/httpd-e-smith
71     fi
72    
73     %files -f %{name}-%{version}-filelist
74     %defattr(-,root,root)
75    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed