[drupal6-geshifilter] initial commit
Anderson de Farias Silva
afsilva at fedoraproject.org
Thu Mar 22 17:08:48 UTC 2012
commit abe9ff63b858bf1c10427220982e104719392edc
Author: Anderson Silva <ansilva at redhat.com>
Date: Thu Mar 22 13:06:23 2012 -0400
initial commit
.gitignore | 1 +
drupal6-geshifilter-fedora-README.txt | 6 +++
drupal6-geshifilter.spec | 72 +++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3be9f82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/geshifilter-6.x-1.4.tar.gz
diff --git a/drupal6-geshifilter-fedora-README.txt b/drupal6-geshifilter-fedora-README.txt
new file mode 100644
index 0000000..651c936
--- /dev/null
+++ b/drupal6-geshifilter-fedora-README.txt
@@ -0,0 +1,6 @@
+After installation, you must enable this module from the drupal
+administration.
+
+If upgrading this module seperately from the core drupal package,
+be sure to run the http://hostname/drupal6/upgrade.php script after this
+rpm is upgraded.
diff --git a/drupal6-geshifilter.spec b/drupal6-geshifilter.spec
new file mode 100644
index 0000000..50094f1
--- /dev/null
+++ b/drupal6-geshifilter.spec
@@ -0,0 +1,72 @@
+%global drupalver 6
+%{?rhel: %{expand: %%global drupal drupal%%{drupalver}}}
+%if 0%{?fedora} >= 15
+%global drupal drupal%{drupalver}
+%endif
+%{!?drupal: %{expand: %%global drupal drupal}}
+# e.g. "/usr/share/drupal6"
+%global drupalbase %{_datadir}/%{drupal}
+%global drupal_sites_all %{drupalbase}/sites/all
+%global drupal_modules %{drupal_sites_all}/modules
+# Use upstream name as expressed in URL and tarball
+%global modname geshifilter
+
+Name: drupal%{drupalver}-%{modname}
+Version: 1.4
+Release: 5%{?dist}
+Summary: Geshi Filter Module for Drupal6
+Group: Applications/Publishing
+License: GPLv2
+URL: http://drupal.org/project/%{modname}
+Source0: http://ftp.drupal.org/files/projects/%{modname}-%{drupalver}.x-%{version}.tar.gz
+Source1: %{name}-fedora-README.txt
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: drupal6, php-geshi
+
+%description
+The GeShi Filter module provides a filter for source code syntax highlighting for a wide range of languages.
+
+%prep
+%setup -qn %{modname}
+
+%build
+cp %{SOURCE1} .
+
+%install
+rm -rf %{buildroot}
+install -d %{buildroot}%{drupal_modules}/%{modname}
+find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupal_modules}/%{modname}/'{}' \;
+
+%clean
+rm -rf %{buildroot}
+
+%post
+ln -s /usr/share/php/geshi.php /%{drupal_modules}/%{modname}/
+
+%postun
+unlink /%{drupal_modules}/%{modname}/geshi.php
+
+%files
+%defattr(-,root,root,-)
+# Remember to include other documentation text here as well
+%doc %{name}-fedora-README.txt
+# Remember to exclude all documentation texts from above
+%exclude %{drupal_modules}/%{modname}/%{name}-fedora-README.txt
+%{drupal_modules}/%{modname}
+
+%changelog
+* Wed Mar 14 2012 Anderson Silva <ansilva at redhat.com> - 1.4-5
+- Update Licensing
+
+* Tue Mar 13 2012 Anderson Silva <ansilva at redhat.com> - 1.4-4
+- Update description
+
+* Mon Mar 12 2012 Anderson Silva <ansilva at redhat.com> - 1.4-3
+- Fix geshi.php dependency
+
+* Fri Mar 9 2012 Anderson Silva <ansilva at redhat.com> - 1.4-2
+- Update spec to comply with Fedora Packaging
+
+* Mon Mar 5 2012 Anderson Silva <ansilva at redhat.com> - 1.4-1
+- Initial rpm package
diff --git a/sources b/sources
index e69de29..5c66227 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5766a03ba5afa7a4bac91dbb0306d84b geshifilter-6.x-1.4.tar.gz
More information about the scm-commits
mailing list