2 |
%define name smeserver-scuttle |
%define name smeserver-scuttle |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 0.9 |
%define version 0.9 |
5 |
%define release 2 |
%define release 3 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release} |
Release: %{release}%{?dist} |
|
Distribution: SME Server |
|
8 |
License: GPL |
License: GPL |
9 |
URL: http://www.dungog.net/sme |
URL: http://www.dungog.net/sme |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Packager: Stephen Noble <support@dungog.net> |
Patch0: ss-scuttle-postinstall.patch |
13 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
14 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
15 |
Requires: e-smith-release >= 7.0 |
Requires: e-smith-release >= 7.0 |
16 |
Requires: scuttle |
Requires: scuttle |
17 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
AutoReqProv: no |
AutoReqProv: no |
19 |
|
|
20 |
%description |
%description |
21 |
smserver rpm to setup scuttle : social bookmarks. |
smserver rpm to setup scuttle : social bookmarks. |
22 |
|
|
23 |
%changelog |
%changelog |
24 |
* Mon Dec 11 2006 Stephen Noble <support@dungog.net> |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
25 |
- rpm %post events reordered, to enable clean install |
- Clean up spec so package can be built by koji/plague |
26 |
- [0.9-2] |
|
27 |
|
* Sat Apr 14 2007 Stephen Noble <support@dungog.net> [0.9-3] |
28 |
|
- removed phpinfo |
29 |
|
- post events reordered, to enable clean install |
30 |
|
|
31 |
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
32 |
|
- Update to new release naming. No functional changes. |
33 |
|
- Make Packager generic |
34 |
|
|
35 |
* Tue Nov 28 2006 Stephen Noble <support@dungog.net> |
* Tue Nov 28 2006 Stephen Noble <support@dungog.net> |
36 |
- initial release |
- initial release |
38 |
|
|
39 |
%prep |
%prep |
40 |
%setup |
%setup |
41 |
|
%patch0 -p1 |
42 |
|
|
43 |
%build |
%build |
44 |
#perl createlinks |
|
45 |
mkdir -p root/etc/e-smith/db/accounts/defaults/scuttle |
mkdir -p root/etc/e-smith/db/accounts/defaults/scuttle |
46 |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/scuttle/type |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/scuttle/type |
47 |
|
|
48 |
mkdir -p root/etc/e-smith/db/configuration/defaults/scuttle |
DEFAULTS=root/etc/e-smith/db/configuration/defaults/scuttle |
49 |
echo "Social Bookmarks" > root/etc/e-smith/db/configuration/defaults/scuttle/Name |
mkdir -p $DEFAULTS |
50 |
echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/scuttle/PublicAccess |
echo "Social Bookmarks" > $DEFAULTS/Name |
51 |
echo "bookmarks" > root/etc/e-smith/db/configuration/defaults/scuttle/URL |
echo "global-pw-remote" > $DEFAULTS/PublicAccess |
52 |
|
echo "bookmarks" > $DEFAULTS/URL |
53 |
|
|
54 |
%install |
%install |
55 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
74 |
/usr/local/bin/svc -h /service/httpd-e-smith |
/usr/local/bin/svc -h /service/httpd-e-smith |
75 |
|
|
76 |
echo "" |
echo "" |
77 |
echo "see www.dungog.net/sme/webapp.php" |
echo "see http://wiki.contribs.org/Scuttle" |
|
echo "current settings 'config show scuttle'..." |
|
|
/sbin/e-smith/config show scuttle |
|
78 |
|
|
79 |
%postun |
%postun |
80 |
#uninstall |
#uninstall |