]> git.pld-linux.org Git - packages/drupal-mod-og.git/blob - drupal-mod-og.spec
- tabs in preamble
[packages/drupal-mod-og.git] / drupal-mod-og.spec
1 %define         modname og
2 Summary:        Drupal Organic groups Module
3 Summary(pl.UTF-8):      Moduł grup organicznych dla Drupala
4 Name:           drupal-mod-%{modname}
5 Version:        4.6.0
6 Release:        0.7
7 License:        GPL
8 Group:          Applications/WWW
9 Source0:        http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
10 # Source0-md5:  f038f4b8b2be4a29e42722a27fb8dd7a
11 BuildRequires:  rpmbuild(macros) >= 1.194
12 URL:            http://drupal.org/project/og
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
20 %description
21 Enable users to create and manage their own 'groups'. Each group can
22 have subscribers, and maintains a group home page where subscribers
23 communicate amongst themselves. They do so by posting the usual node
24 types: blog, story, page, etc. A block is shown on the group home page
25 which facilitates these posts. The block also provides summary
26 information about the group.
27
28 Groups may be selective or not. Selective groups require approval in
29 order to become a member.
30
31 %description -l pl.UTF-8
32 Ten moduł pozwala użytkownikom tworzyć i zarządzać własnymi "grupami".
33 Każda grupa może mieć subskrybentów i zarządza stroną domową grupy
34 gdzie subskrybenci komunikują się między sobą. Robią to poprzez
35 wysyłanie zwykłych rodzajów obiektów: blogów, opowiadań, stron itp.
36 Na grupowej stronie domowej ułatwiającej to wysyłanie jest pokazywany
37 blok. Blok ten dostarcza także krótkiej informacji o grupie.
38
39 Grupy mogą być selektywne lub nie. Grupy selektywne wymagają
40 zatwierdzenia, aby zostać ich członkiem.
41
42 %prep
43 %setup -q -n %{modname}
44 rm -f LICENSE.txt # pure GPL
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_moddir}
49
50 install *.module $RPM_BUILD_ROOT%{_moddir}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post
56 if [ "$1" = 1 ]; then
57 %banner -e %{name} <<EOF
58 To create tables needed for Drupal Organic groups module, issue these commands:
59 zcat %{_docdir}/%{name}-%{version}/og.mysql.gz | mysql drupal
60 EOF
61 fi
62
63 %triggerpostun -- %{name} < 4.6.0-0.7
64 %banner -e %{name} <<'EOF'
65 You need to update your database:
66 ALTER TABLE `og` ADD `register` int(1) NOT NULL default '0';
67 ALTER TABLE `og` ADD `directory` int(11) NOT NULL default '1';
68 EOF
69
70 %files
71 %defattr(644,root,root,755)
72 %doc *.txt og.mysql
73 %{_moddir}/*.module
This page took 0.110875 seconds and 3 git commands to generate.