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

Contents of /rpms/smeserver-scuttle/contribs7/smeserver-scuttle-0.9.spec

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


Revision 1.5 - (show annotations) (download)
Sun Dec 23 01:15:48 2007 UTC (16 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-scuttle-0_9-2_el4_sme
Changes since 1.4: +1 -0 lines
Update buildrequires

1 Summary: smserver rpm to setup scuttle, social bookmarks
2 %define name smeserver-scuttle
3 Name: %{name}
4 %define version 0.9
5 %define release 2
6 Version: %{version}
7 Release: %{release}%{?dist}
8 License: GPL
9 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: scuttle
16 BuildRequires: e-smith-devtools
17 AutoReqProv: no
18
19 %description
20 smserver rpm to setup scuttle : social bookmarks.
21
22 %changelog
23 * Mon Dec 11 2006 Stephen Noble <support@dungog.net>
24 - rpm %post events reordered, to enable clean install
25 - [0.9-2]
26
27 * Tue Nov 28 2006 Stephen Noble <support@dungog.net>
28 - initial release
29 - [0.9-1]
30
31 %prep
32 %setup
33
34 %build
35 #perl createlinks
36 mkdir -p root/etc/e-smith/db/accounts/defaults/scuttle
37 echo "reserved" > root/etc/e-smith/db/accounts/defaults/scuttle/type
38
39 mkdir -p root/etc/e-smith/db/configuration/defaults/scuttle
40 echo "Social Bookmarks" > root/etc/e-smith/db/configuration/defaults/scuttle/Name
41 echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/scuttle/PublicAccess
42 echo "bookmarks" > root/etc/e-smith/db/configuration/defaults/scuttle/URL
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
47 rm -f %{name}-%{version}-filelist
48 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
49 echo "%doc COPYING" >> %{name}-%{version}-filelist
50
51 %clean
52 cd ..
53 rm -rf %{name}-%{version}
54
55 %pre
56
57 %preun
58
59 %post
60 /etc/e-smith/events/actions/initialize-default-databases
61 /sbin/e-smith/expand-template /etc/e-smith/sql/init/80scuttle.sql
62 /etc/rc.d/init.d/mysql.init start
63 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
64 /usr/local/bin/svc -h /service/httpd-e-smith
65
66 echo ""
67 echo "see www.dungog.net/sme/webapp.php"
68 echo "current settings 'config show scuttle'..."
69 /sbin/e-smith/config show scuttle
70
71 %postun
72 #uninstall
73 if [ $1 = 0 ] ; then
74 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
75 /usr/local/bin/svc -h /service/httpd-e-smith
76 fi
77
78 %files -f %{name}-%{version}-filelist
79 %defattr(-,root,root)
80

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