]> git.pld-linux.org Git - packages/asa.git/blobdiff - asa.spec
- for me finished and works,
[packages/asa.git] / asa.spec
index 3142630b013a6e9ab147112f1bc474a396cc6511..1b3b794e484491067f8fc4486eb8045eab11aae4 100644 (file)
--- a/asa.spec
+++ b/asa.spec
@@ -1,20 +1,19 @@
 #
 # TODO:
-# - cleanups :)
-# - run from user jabber script or patch,
-# - working init script,
+# - more clean init script ? (especially asa.sh),
 
 %include       /usr/lib/rpm/macros.perl
 Summary:       Jabber server component agent for sending SMS messages
 Summary(pl):   Komponent serwera Jabbera do wysy³ania wiadomo¶ci SMS
 Name:          asa
 Version:       0.1.4
-Release:       0.9
+Release:       1
 License:       GPL
 Group:         Applications/Communications
 Source0:       http://www.apatsch.wroc.biz/asa/%{name}-%{version}.tar.gz
 # Source0-md5: e2bdce7a80a758fa02aff2cdc39c66b1
 Source1:       jabber-asa-transport.init
+Source2:       %{name}.sh
 Patch0:                %{name}-PLD.patch
 Patch1:                %{name}-lib64.patch
 URL:           http://www.apatsch.wroc.biz/asa/
@@ -26,6 +25,8 @@ Requires:     jabberd >= 1.4
 Requires:      perl-libwww
 Requires:      perl-Unicode-Lite
 Requires:      perl-Crypt-SSLeay
+Requires:      perl-Unicode-String
+Requires:      perl-Unicode-Map
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -55,6 +56,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/jabber,%{_sbindir},/etc/rc.d/init.d,/v
 install config.xml $RPM_BUILD_ROOT%{_sysconfdir}/jabber/asa.xml
 install ApaSMSAgent.pl $RPM_BUILD_ROOT%{_sbindir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/jabber-asa-transport
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}
 install plugins/*.pl $RPM_BUILD_ROOT/%{_libdir}/jabber/asa/plugins/
 
 %clean
@@ -64,7 +66,7 @@ rm -rf $RPM_BUILD_ROOT
 if [ -f /etc/jabber/secret ] ; then
        SECRET=`cat /etc/jabber/secret`
        if [ -n "$SECRET" ] ; then
-               echo "Updating component authentication secret in ile.xml..."
+               echo "Updating component authentication secret in asa.xml..."
                perl -pi -e "s/>secret</>$SECRET</" /etc/jabber/asa.xml
        fi
 fi
This page took 0.278601 seconds and 4 git commands to generate.