]> git.pld-linux.org Git - packages/drupal-mod-bookmarks.git/commitdiff
- new Drupal module
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 30 Sep 2005 14:54:23 +0000 (14:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal-mod-bookmarks.spec -> 1.1

drupal-mod-bookmarks.spec [new file with mode: 0644]

diff --git a/drupal-mod-bookmarks.spec b/drupal-mod-bookmarks.spec
new file mode 100644 (file)
index 0000000..2048e59
--- /dev/null
@@ -0,0 +1,59 @@
+%define                modname bookmarks
+Summary:       Drupal Bookmarks Module
+Name:          drupal-mod-%{modname}
+Version:       4.6.0
+Release:       0.2
+License:       GPL v2
+Group:         Applications/WWW
+Source0:       http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
+# Source0-md5: 4373ba31537b9625af825cd86a65c39b
+URL:           http://drupal.org/project/bookmarks
+BuildRequires: rpmbuild(macros) >= 1.194
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _drupaldir      %{_datadir}/drupal
+%define                _moddir         %{_drupaldir}/modules
+%define                _htdocs         %{_drupaldir}/htdocs
+%define                _htmlmoddir     %{_htdocs}/modules/%{modname}
+%define                _podir          %{_drupaldir}/po/%{modname}
+
+%description
+Gives users with the 'access bookmark' permission their own private
+bookmark block, allowing them to add any URL to the list. There is
+also a quicklink feature that makes it a breeze to add the currently
+viewed page to your site.
+
+%prep
+%setup -q -n %{modname}
+rm -f LICENSE.txt # GPL v2
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir}}
+
+install *.module $RPM_BUILD_ROOT%{_moddir}
+cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
+cp -a *.gif $RPM_BUILD_ROOT%{_htmlmoddir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+If you want to use localization, then you need to upload .po files
+from %{_podir} via drupal locatization admin.
+
+To create Bookmarks MySQL database tables import:
+zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
+
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt bookmarks.mysql
+%{_moddir}/*.module
+%{_podir}
+%{_htmlmoddir}
This page took 0.050206 seconds and 4 git commands to generate.