]> git.pld-linux.org Git - packages/drupal-mod-bookmarks.git/blob - drupal-mod-bookmarks.spec
- tabs in preamble
[packages/drupal-mod-bookmarks.git] / drupal-mod-bookmarks.spec
1 %define         modname bookmarks
2 Summary:        Drupal Bookmarks Module
3 Summary(pl.UTF-8):      Moduł zakładek dla Drupala
4 Name:           drupal-mod-%{modname}
5 Version:        4.6.0
6 Release:        0.4
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
10 # Source0-md5:  d67215435713a1b79ade414a4528ae5e
11 URL:            http://drupal.org/project/bookmarks
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         _htdocs         %{_drupaldir}/htdocs
20 %define         _podir          %{_drupaldir}/po/%{modname}
21 %define         _htmlmoddir     %{_htdocs}/modules/%{modname}
22
23 %description
24 Gives users with the 'access bookmark' permission their own private
25 bookmark block, allowing them to add any URL to the list. There is
26 also a quicklink feature that makes it a breeze to add the currently
27 viewed page to your site.
28
29 %description -l pl.UTF-8
30 Ten moduł daje użytkownikom z uprawnieniem "dostęp do zakładek" ich
31 własny blok zakładek, pozwalający im dodawać dowolne URL-e do listy.
32 Jest także właściwość "szybkich odnośników" umożliwiająca szybkie
33 dodanie aktualnie oglądaniej strony do własnego serwisu.
34
35 %prep
36 %setup -q -n %{modname}
37 rm -f LICENSE.txt # GPL v2
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir}}
42
43 install *.module $RPM_BUILD_ROOT%{_moddir}
44 cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
45 cp -a *.gif $RPM_BUILD_ROOT%{_htmlmoddir}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 if [ "$1" = 1 ]; then
52 %banner -e %{name} <<EOF
53 If you want to use localization, then you need to upload .po files
54 from %{_podir} via drupal locatization admin.
55
56 To create Bookmarks MySQL database tables import:
57 zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
58
59 EOF
60 fi
61
62 %files
63 %defattr(644,root,root,755)
64 %doc *.txt bookmarks.mysql
65 %{_moddir}/*.module
66 %{_podir}
67 %{_htmlmoddir}
This page took 0.073614 seconds and 3 git commands to generate.