[drupal6-geshifilter] Added virtual provides & re-added EPEL 5 specifics

Shawn Iwinski siwinski at fedoraproject.org
Sun Mar 24 04:14:30 UTC 2013


commit 2f487fd24c2b4873c51f0fe47bcd595e0e5c9c01
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Sun Mar 24 00:14:16 2013 -0400

    Added virtual provides & re-added EPEL 5 specifics

 drupal6-geshifilter.spec |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/drupal6-geshifilter.spec b/drupal6-geshifilter.spec
index ec0a0ea..d34cd8a 100644
--- a/drupal6-geshifilter.spec
+++ b/drupal6-geshifilter.spec
@@ -5,7 +5,7 @@
 
 Name:      drupal6-%{module_name}
 Version:   1.5
-Release:   3%{?dist}
+Release:   4%{?dist}
 Summary:   GeSHi filter for syntax highlighting
 
 Group:     Applications/Publishing
@@ -15,15 +15,21 @@ Source0:   http://ftp.drupal.org/files/projects/%{module_name}-6.x-%{version}.ta
 Source1:   %{name}-RPM-README.txt
 
 BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires:  drupal6
 Requires:  drupal6-cck
+#Requires:  drupal6(cck)
 Requires:  php-geshi >= 1.0
 Requires:  php-geshi <  1.1
 # phpci
 Requires:  php-date
 Requires:  php-pcre
 
+Provides:  drupal6(geshifilter) = %{version}
+Provides:  drupal6(geshinode) = %{version}
+Provides:  drupal6(geshifield) = %{version}
+
 %description
 The GeShi filter module provides a filter for source code syntax highlighting
 for a wide range of languages.
@@ -34,6 +40,11 @@ your own generic and language specific tags (e.g. <java>) or to work with
 square bracket style tags (e.g. [python]). Automatically adding line numbers
 is possible too with for example [ruby linenumbers="normal"].
 
+This package provides the following Drupal modules:
+* geshifilter
+* geshinode
+* geshifield
+
 
 %prep
 %setup -qn %{module_name}
@@ -44,6 +55,7 @@ cp %{SOURCE1} .
 
 
 %install
+rm -rf %{buildroot}
 mkdir -p -m 0755 %{buildroot}%{drupal6_modules}/%{module_name}
 cp -pr * %{buildroot}%{drupal6_modules}/%{module_name}/
 
@@ -55,13 +67,22 @@ ln -s %{_datadir}/php/geshi.php \
 ln -s geshi/geshi.php %{buildroot}%{drupal6_modules}/%{module_name}/geshi.php
 
 
+%clean
+rm -rf %{buildroot}
+
+
 %files
+%defattr(-,root,root,-)
 %doc *.txt
 %{drupal6_modules}/%{module_name}
 %exclude %{drupal6_modules}/%{module_name}/*.txt
 
 
 %changelog
+* Sun Mar 24 2013 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.5-4
+- Added virtual provides
+- Re-added EPEL 5 specifics
+
 * Fri Mar 22 2013 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.5-3
 - Added drupal6-cck require
 


More information about the scm-commits mailing list