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