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

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

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