- new module
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 30 Sep 2005 15:15:33 +0000 (15:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal-mod-buddylist.spec -> 1.1

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

diff --git a/drupal-mod-buddylist.spec b/drupal-mod-buddylist.spec
new file mode 100644 (file)
index 0000000..abe6064
--- /dev/null
@@ -0,0 +1,57 @@
+%define                modname buddylist
+Summary:       Drupal Buddylist Module
+Name:          drupal-mod-%{modname}
+Version:       4.6.0
+Release:       0.1
+License:       GPL v2
+Group:         Applications/WWW
+Source0:       http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
+# Source0-md5: 22a9370ae0ac4937283e2970513852aa
+URL:           http://drupal.org/project/buddylist
+BuildRequires: rpmbuild(macros) >= 1.194
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _drupaldir      %{_datadir}/drupal
+%define                _moddir         %{_drupaldir}/modules
+%define                _podir          %{_drupaldir}/po/%{modname}
+
+%description
+This module allows users to put each other on a personal 'Buddy List'
+, also enabling them to keep up with their friend's postings via the
+'My Friend's Blogs' block.
+
+%prep
+%setup -q -n %{modname}
+rm -f LICENSE.txt # GPL v2
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir}}
+
+install *.module $RPM_BUILD_ROOT%{_moddir}
+cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
+
+%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 Buddylist MySQL database tables, import:
+zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
+For Postgresql file is:
+%{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
+
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt %{modname}.{mysql,pgsql}
+%doc CHANGELOG CREDITS INSTALL TODO
+%{_moddir}/*.module
+%{_podir}
This page took 0.034298 seconds and 4 git commands to generate.