]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- new
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 10 Oct 2005 09:33:12 +0000 (09:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal-mod.spec -> 1.1

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

diff --git a/drupal-mod.spec b/drupal-mod.spec
new file mode 100644 (file)
index 0000000..1f05669
--- /dev/null
@@ -0,0 +1,58 @@
+%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
This page took 0.173584 seconds and 4 git commands to generate.