SPECS: drupal-mod-bookmarks.spec (NEW) - new Drupal module

glen glen at pld-linux.org
Fri Sep 30 16:54:29 CEST 2005


Author: glen                         Date: Fri Sep 30 14:54:29 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new Drupal module

---- Files affected:
SPECS:
   drupal-mod-bookmarks.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/drupal-mod-bookmarks.spec
diff -u /dev/null SPECS/drupal-mod-bookmarks.spec:1.1
--- /dev/null	Fri Sep 30 16:54:29 2005
+++ SPECS/drupal-mod-bookmarks.spec	Fri Sep 30 16:54:23 2005
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+%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}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/09/30 14:54:23  glen
+- new Drupal module
+
================================================================



More information about the pld-cvs-commit mailing list