/[smecontribs]/rpms/smeserver-photos/contribs7/smeserver-photos-0.1.spec
ViewVC logotype

Contents of /rpms/smeserver-photos/contribs7/smeserver-photos-0.1.spec

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


Revision 1.2 - (show annotations) (download)
Tue Dec 25 00:09:55 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.1: +1 -3 lines
Fix spec

1 Summary: smserver rpm to setup photos digital photo manager
2 %define name smeserver-photos
3 Name: %{name}
4 %define version 0.1
5 %define release 2
6 Version: %{version}
7 Release: %smerelease %{release}
8 License: GPL
9 URL: http://acenet-tech.org/sme
10 Group: SME Server/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: photos
16 AutoReqProv: no
17
18 %description
19 smserver rpm to integrate photos digital photo manager into SME
20
21 %changelog
22 * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
23 - Name change to reflect SME rpm builds. Added GPG signature
24
25 * Mon Dec 18 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
26 - initial release
27 - [4.1-1]
28
29 %prep
30 %setup
31
32 %build
33 #perl createlinks
34 mkdir -p root/etc/e-smith/db/accounts/defaults/photos
35 echo "reserved" > root/etc/e-smith/db/accounts/defaults/photos/type
36
37 mkdir -p root/etc/e-smith/db/configuration/defaults/photos
38 echo "Digital Photo Manager" > root/etc/e-smith/db/configuration/defaults/photos/Name
39 echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/photos/PublicAccess
40 echo "photomanager" > root/etc/e-smith/db/configuration/defaults/photos/URL
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
45 rm -f %{name}-%{version}-filelist
46 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
47 echo "%doc COPYING" >> %{name}-%{version}-filelist
48
49 %clean
50 cd ..
51 rm -rf %{name}-%{version}
52
53 %pre
54
55 %preun
56
57 %post
58 /etc/e-smith/events/actions/initialize-default-databases
59 /sbin/e-smith/expand-template /etc/e-smith/sql/init/80photos.sql
60 /etc/rc.d/init.d/mysql.init start
61 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
62 /usr/local/bin/svc -h /service/httpd-e-smith
63
64 echo ""
65 echo "Go to:"
66 echo "acenet-tech.org/sme/smecontrib.php"
67 echo "current settings 'config show photos'..."
68 /sbin/e-smith/config show photos
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