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