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