Author: glen                         Date: Mon Oct 10 11:03:17 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   drupal-mod-smileys.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/drupal-mod-smileys.spec
diff -u /dev/null SPECS/drupal-mod-smileys.spec:1.1
--- /dev/null   Mon Oct 10 13:03:17 2005
+++ SPECS/drupal-mod-smileys.spec       Mon Oct 10 13:03:12 2005
@@ -0,0 +1,104 @@
+# $Revision$, $Date$
+%define                modname smileys
+Summary:       Drupal Smileys Module
+Name:          drupal-mod-%{modname}
+Version:       4.6.0
+Release:       0.3
+License:       GPL v2
+Group:         Applications/WWW
+Source0:       http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
+# Source0-md5: 145af413c619cd922601a1c1aae454b3
+URL:           http://drupal.org/project/smileys
+BuildRequires: rpmbuild(macros) >= 1.194
+Requires:      drupal >= 4.6.0
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _drupaldir      %{_datadir}/drupal
+%define                _moddir         %{_drupaldir}/modules
+%define                _htdocs         %{_drupaldir}/htdocs
+%define                _podir          %{_drupaldir}/po/%{modname}
+%define                _smileysdir     %{_htdocs}/misc/smileys
+
+%description
+This is a simple smiley-filter that allows the easy use of graphical
+smileys (or 'emoticons') on a Drupal site. It comes with a set of
+example smileys, but you can define an unlimited amount of custom
+smileys as well.
+
+%package examples
+Summary:       Example Smileys for Smileys Module
+Group:         Applications/WWW
+Requires:      %{name} = %{version}-%{release}
+
+%description examples
+Example Smileys for Smileys Module.
+
+A word from Author:
+Please don't rip the example smileys and use them without this
+module. I spent quite some time creating those little buggers.
+
+%prep
+%setup -q -n %{modname}
+rm -f LICENSE.txt # GPL v2
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_smileysdir}}
+
+install *.module $RPM_BUILD_ROOT%{_moddir}
+install examples/*.{gif,png} $RPM_BUILD_ROOT%{_smileysdir}
+cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+To create Smileys MySQL database tables, import:
+zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
+For Postgresql file is:
+%{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
+
+If you want to use localization, then you need to upload .po files
+from %{_podir} via drupal locatization admin.
+
+The example smileys are available from %{name}-examples package.
+EOF
+fi
+
+%post examples
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+To use smileys from this package you need to import definitions:
+zcat %{_docdir}/%{name}-examples-%{version}/examples.mysql.gz | mysql drupal
+For Postgresql the file is:
+%{_docdir}/%{name}-examples-%{version}/examples.pgsql.gz
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt po/*.pot
+%doc *.txt
+%doc %{modname}.{mysql,pgsql}
+%{_moddir}/*.module
+%{_podir}
+%dir %{_smileysdir}
+
+%files examples
+%defattr(644,root,root,755)
+%doc examples.{mysql,pgsql}
+%doc examples/*.txt
+%{_smileysdir}/*
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/10/10 11:03:12  glen
+- new
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to