SPECS: template-drupal-mod.spec (NEW) - new

glen glen at pld-linux.org
Mon Oct 10 11:33:17 CEST 2005


Author: glen                         Date: Mon Oct 10 09:33:17 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: SPECS/template-drupal-mod.spec
diff -u /dev/null SPECS/template-drupal-mod.spec:1.1
--- /dev/null	Mon Oct 10 11:33:17 2005
+++ SPECS/template-drupal-mod.spec	Mon Oct 10 11:33:12 2005
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+%define		modname image
+Summary:	Drupal Image Module
+Name:		drupal-mod-%{modname}
+Version:	4.6.0
+Release:	0.1
+License:	GPL
+Group:		Applications/WWW
+Source0:	http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
+# Source0-md5:	0d218124ee86584375d4981ee1646a06
+URL:		http://drupal.org/project/image
+# for %banner
+#BuildRequires:	rpmbuild(macros) >= 1.194
+Requires:	drupal >= 4.6.0
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/drupal
+%define		_drupaldir	%{_datadir}/drupal
+%define		_moddir		%{_drupaldir}/modules
+%define		_incdir		%{_drupaldir}/includes
+%define		_htdocs		%{_drupaldir}/htdocs
+%define		_podir		%{_drupaldir}/po/%{modname}
+%define		_htmlmoddir	%{_htdocs}/modules
+
+%description
+
+%prep
+%setup -q -n %{modname}
+#rm -f LICENSE.txt # pure GPL
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir},%{_incdir},%{_htdocs}}
+
+install *.module $RPM_BUILD_ROOT%{_moddir}
+install *.inc $RPM_BUILD_ROOT%{_incdir}
+install *.css $RPM_BUILD_ROOT%{_htmlmoddir}
+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.
+
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt po/*.pot *.php
+%{_moddir}/*.module
+%{_incdir}/*.inc
+%{_podir}
+%{_htmlmoddir}/*.css
+
+%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/10/10 09:33:12  glen
+- new
+
================================================================



More information about the pld-cvs-commit mailing list