%define modname smileys Summary: Drupal Smileys Module Summary(pl.UTF-8): Moduł Smileys dla Drupala Name: drupal-mod-%{modname} Version: 4.6.0 Release: 0.4 License: GPL v2 Group: Applications/WWW Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz # Source0-md5: d6381efeb83f702138c3e125b1d04b84 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. %description -l pl.UTF-8 To jest prosty filtr uśmieszków pozwalający na łatwe używanie graficznych uśmieszków ("emotikonów") na serwisie Drupala. Jest dostarczany z zestawem przykładowych uśmieszków, ale można także zdefiniować nieograniczoną liczbę własnych. %package examples Summary: Example Smileys for Smileys Module Summary(pl.UTF-8): Przykładowe uśmieszki dla modułu Smileys 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. %description examples -l pl.UTF-8 Przykładowe uśmieszki dla modułu Smileys. Słowo od autora: Proszę nie wyciągać przykładowych uśmieszków i nie używać ich bez tego modułu. Spędziłem trochę czasu na ich tworzeniu. %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} <