]> git.pld-linux.org Git - packages/drupal-mod-bookmarks.git/blob - drupal-mod-bookmarks.spec
- pl
[packages/drupal-mod-bookmarks.git] / drupal-mod-bookmarks.spec
1 %define         modname bookmarks
2 Summary:        Drupal Bookmarks Module
3 Summary(pl):    Modu³ zak³adek 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:  4373ba31537b9625af825cd86a65c39b
11 URL:            http://drupal.org/project/bookmarks
12 BuildRequires:  rpmbuild(macros) >= 1.194
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _drupaldir      %{_datadir}/drupal
17 %define         _moddir         %{_drupaldir}/modules
18 %define         _htdocs         %{_drupaldir}/htdocs
19 %define         _podir          %{_drupaldir}/po/%{modname}
20 %define         _htmlmoddir     %{_htdocs}/modules/%{modname}
21
22 %description
23 Gives users with the 'access bookmark' permission their own private
24 bookmark block, allowing them to add any URL to the list. There is
25 also a quicklink feature that makes it a breeze to add the currently
26 viewed page to your site.
27
28 %description -l pl
29 Ten modu³ daje u¿ytkownikom z uprawnieniem "dostêp do zak³adek" ich
30 w³asny blok zak³adek, pozwalaj±cy im dodawaæ dowolne URL-e do listy.
31 Jest tak¿e w³a¶ciwo¶æ "szybkich odno¶ników" umo¿liwiaj±ca szybkie
32 dodanie aktualnie ogl±daniej strony do w³asnego serwisu.
33
34 %prep
35 %setup -q -n %{modname}
36 rm -f LICENSE.txt # GPL v2
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir}}
41
42 install *.module $RPM_BUILD_ROOT%{_moddir}
43 cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
44 cp -a *.gif $RPM_BUILD_ROOT%{_htmlmoddir}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 if [ "$1" = 1 ]; then
51 %banner -e %{name} <<EOF
52 If you want to use localization, then you need to upload .po files
53 from %{_podir} via drupal locatization admin.
54
55 To create Bookmarks MySQL database tables import:
56 zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
57
58 EOF
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc *.txt bookmarks.mysql
64 %{_moddir}/*.module
65 %{_podir}
66 %{_htmlmoddir}
This page took 0.073719 seconds and 3 git commands to generate.