]> git.pld-linux.org Git - packages/drupal-mod-smileys.git/blame - drupal-mod-smileys.spec
- tabs in preamble
[packages/drupal-mod-smileys.git] / drupal-mod-smileys.spec
CommitLineData
d397ecbf
ER
1%define modname smileys
2Summary: Drupal Smileys Module
238f2e36 3Summary(pl.UTF-8): Moduł Smileys dla Drupala
d397ecbf
ER
4Name: drupal-mod-%{modname}
5Version: 4.6.0
cf2de601 6Release: 0.4
d397ecbf
ER
7License: GPL v2
8Group: Applications/WWW
9Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
cf2de601 10# Source0-md5: d6381efeb83f702138c3e125b1d04b84
d397ecbf
ER
11URL: http://drupal.org/project/smileys
12BuildRequires: rpmbuild(macros) >= 1.194
13Requires: drupal >= 4.6.0
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
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
22
23%description
24This is a simple smiley-filter that allows the easy use of graphical
25smileys (or 'emoticons') on a Drupal site. It comes with a set of
26example smileys, but you can define an unlimited amount of custom
27smileys as well.
28
8e653eba
JR
29%description -l pl.UTF-8
30To jest prosty filtr uśmieszków pozwalający na łatwe używanie
31graficznych uśmieszków ("emotikonów") na serwisie Drupala. Jest
32dostarczany z zestawem przykładowych uśmieszków, ale można także
33zdefiniować nieograniczoną liczbę własnych.
ef3fa6b0 34
d397ecbf
ER
35%package examples
36Summary: Example Smileys for Smileys Module
238f2e36 37Summary(pl.UTF-8): Przykładowe uśmieszki dla modułu Smileys
d397ecbf
ER
38Group: Applications/WWW
39Requires: %{name} = %{version}-%{release}
40
41%description examples
42Example Smileys for Smileys Module.
43
44A word from Author:
45Please don't rip the example smileys and use them without this
46module. I spent quite some time creating those little buggers.
47
8e653eba
JR
48%description examples -l pl.UTF-8
49Przykładowe uśmieszki dla modułu Smileys.
ef3fa6b0 50
8e653eba
JR
51Słowo od autora:
52Proszę nie wyciągać przykładowych uśmieszków i nie używać ich bez tego
53modułu. Spędziłem trochę czasu na ich tworzeniu.
ef3fa6b0 54
d397ecbf
ER
55%prep
56%setup -q -n %{modname}
57rm -f LICENSE.txt # GPL v2
58
59%install
60rm -rf $RPM_BUILD_ROOT
61install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_smileysdir}}
62
63install *.module $RPM_BUILD_ROOT%{_moddir}
64install examples/*.{gif,png} $RPM_BUILD_ROOT%{_smileysdir}
65cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%post
71if [ "$1" = 1 ]; then
72%banner -e %{name} <<EOF
73To create Smileys MySQL database tables, import:
74zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
75For Postgresql file is:
76%{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
77
78If you want to use localization, then you need to upload .po files
79from %{_podir} via drupal locatization admin.
80
81The example smileys are available from %{name}-examples package.
82EOF
83fi
84
85%post examples
86if [ "$1" = 1 ]; then
87%banner -e %{name} <<EOF
88To use smileys from this package you need to import definitions:
89zcat %{_docdir}/%{name}-examples-%{version}/examples.mysql.gz | mysql drupal
90For Postgresql the file is:
91%{_docdir}/%{name}-examples-%{version}/examples.pgsql.gz
92EOF
93fi
94
95%files
96%defattr(644,root,root,755)
97%doc *.txt po/*.pot
98%doc *.txt
99%doc %{modname}.{mysql,pgsql}
100%{_moddir}/*.module
101%{_podir}
102%dir %{_smileysdir}
103
104%files examples
105%defattr(644,root,root,755)
106%doc examples.{mysql,pgsql}
107%doc examples/*.txt
108%{_smileysdir}/*
This page took 0.093963 seconds and 4 git commands to generate.