]> git.pld-linux.org Git - packages/drupal-mod-buddylist.git/blob - drupal-mod-buddylist.spec
- fix duplicate %descriptions
[packages/drupal-mod-buddylist.git] / drupal-mod-buddylist.spec
1 %define         modname buddylist
2 Summary:        Drupal Buddylist Module
3 Summary(pl):    Modu³ Buddylist dla Drupala
4 Name:           drupal-mod-%{modname}
5 Version:        4.6.0
6 Release:        0.2
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
10 # Source0-md5:  22a9370ae0ac4937283e2970513852aa
11 URL:            http://drupal.org/project/buddylist
12 BuildRequires:  rpmbuild(macros) >= 1.194
13 Requires:       drupal >= 4.6.0
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _drupaldir      %{_datadir}/drupal
18 %define         _moddir         %{_drupaldir}/modules
19 %define         _podir          %{_drupaldir}/po/%{modname}
20
21 %description
22 This module allows users to put each other on a personal 'Buddy List',
23 also enabling them to keep up with their friend's postings via the 'My
24 Friend's Blogs' block.
25
26 %description -l pl
27 Ten modu³ pozwala u¿ytkownikom umieszczaæ siebie nawzajem na
28 prywatnych "Buddy Lists", umo¿liwiaj±c im tak¿e otrzymywanie postów
29 przyjació³ poprzez blok "My Friend's Blogs".
30
31 %prep
32 %setup -q -n %{modname}
33 rm -f LICENSE.txt # GPL v2
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir}}
38
39 install *.module $RPM_BUILD_ROOT%{_moddir}
40 cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 if [ "$1" = 1 ]; then
47 %banner -e %{name} <<EOF
48 If you want to use localization, then you need to upload .po files
49 from %{_podir} via drupal locatization admin.
50
51 To create Buddylist MySQL database tables, import:
52 zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
53 For Postgresql file is:
54 %{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
55
56 EOF
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc *.txt %{modname}.{mysql,pgsql}
62 %doc CHANGELOG CREDITS INSTALL TODO
63 %{_moddir}/*.module
64 %{_podir}
This page took 0.071764 seconds and 3 git commands to generate.