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

Annotation 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.1 - (hide annotations) (download)
Tue Dec 25 00:07:22 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package smeserver-photos-0.1-2.el4.sme.src.rpm

1 slords 1.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     Distribution: SME Server
9     Copyright: GPL
10     URL: http://acenet-tech.org/sme
11     Group: SME Server/addon
12     Source: %{name}-%{version}.tar.gz
13     Packager: %{_packager}
14     BuildArchitectures: noarch
15     BuildRoot: /var/tmp/%{name}-%{version}
16     Requires: e-smith-release >= 7.0
17     Requires: photos
18     AutoReqProv: no
19    
20     %description
21     smserver rpm to integrate photos digital photo manager into SME
22    
23     %changelog
24     * Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com>
25     - Name change to reflect SME rpm builds. Added GPG signature
26    
27     * Mon Dec 18 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
28     - initial release
29     - [4.1-1]
30    
31     %prep
32     %setup
33    
34     %build
35     #perl createlinks
36     mkdir -p root/etc/e-smith/db/accounts/defaults/photos
37     echo "reserved" > root/etc/e-smith/db/accounts/defaults/photos/type
38    
39     mkdir -p root/etc/e-smith/db/configuration/defaults/photos
40     echo "Digital Photo Manager" > root/etc/e-smith/db/configuration/defaults/photos/Name
41     echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/photos/PublicAccess
42     echo "photomanager" > root/etc/e-smith/db/configuration/defaults/photos/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/80photos.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 "Go to:"
68     echo "acenet-tech.org/sme/smecontrib.php"
69     echo "current settings 'config show photos'..."
70     /sbin/e-smith/config show photos
71    
72     %postun
73     #uninstall
74     if [ $1 = 0 ] ; then
75     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
76     /usr/local/bin/svc -h /service/httpd-e-smith
77     fi
78    
79     %files -f %{name}-%{version}-filelist
80     %defattr(-,root,root)
81    

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