1 %define modname smileys
2 Summary: Drupal Smileys Module
3 Summary(pl): Modu³ Smileys dla Drupala
4 Name: drupal-mod-%{modname}
8 Group: Applications/WWW
9 Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
10 # Source0-md5: d6381efeb83f702138c3e125b1d04b84
11 URL: http://drupal.org/project/smileys
12 BuildRequires: rpmbuild(macros) >= 1.194
13 Requires: drupal >= 4.6.0
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _drupaldir %{_datadir}/drupal
18 %define _moddir %{_drupaldir}/modules
19 %define _htdocs %{_drupaldir}/htdocs
20 %define _podir %{_drupaldir}/po/%{modname}
21 %define _smileysdir %{_htdocs}/misc/smileys
24 This is a simple smiley-filter that allows the easy use of graphical
25 smileys (or 'emoticons') on a Drupal site. It comes with a set of
26 example smileys, but you can define an unlimited amount of custom
30 To jest prosty filtr u¶mieszków pozwalaj±cy na ³atwe u¿ywanie
31 graficznych u¶mieszków ("emotikonów") na serwisie Drupala. Jest
32 dostarczany z zestawem przyk³adowych u¶mieszków, ale mo¿na tak¿e
33 zdefiniowaæ nieograniczon± liczbê w³asnych.
36 Summary: Example Smileys for Smileys Module
37 Summary(pl): Przyk³adowe u¶mieszki dla modu³u Smileys
38 Group: Applications/WWW
39 Requires: %{name} = %{version}-%{release}
42 Example Smileys for Smileys Module.
45 Please don't rip the example smileys and use them without this
46 module. I spent quite some time creating those little buggers.
48 %description examples -l pl
49 Przyk³adowe u¶mieszki dla modu³u Smileys.
52 Proszê nie wyci±gaæ przyk³adowych u¶mieszków i nie u¿ywaæ ich bez tego
53 modu³u. Spêdzi³em trochê czasu na ich tworzeniu.
56 %setup -q -n %{modname}
57 rm -f LICENSE.txt # GPL v2
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_smileysdir}}
63 install *.module $RPM_BUILD_ROOT%{_moddir}
64 install examples/*.{gif,png} $RPM_BUILD_ROOT%{_smileysdir}
65 cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
68 rm -rf $RPM_BUILD_ROOT
72 %banner -e %{name} <<EOF
73 To create Smileys MySQL database tables, import:
74 zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
75 For Postgresql file is:
76 %{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
78 If you want to use localization, then you need to upload .po files
79 from %{_podir} via drupal locatization admin.
81 The example smileys are available from %{name}-examples package.
87 %banner -e %{name} <<EOF
88 To use smileys from this package you need to import definitions:
89 zcat %{_docdir}/%{name}-examples-%{version}/examples.mysql.gz | mysql drupal
90 For Postgresql the file is:
91 %{_docdir}/%{name}-examples-%{version}/examples.pgsql.gz
96 %defattr(644,root,root,755)
99 %doc %{modname}.{mysql,pgsql}
105 %defattr(644,root,root,755)
106 %doc examples.{mysql,pgsql}