[drupal6-user_badges] Updated to 2.0 (BZ #1051399; release notes https://drupal.org/node/2170813)

Shawn Iwinski siwinski at fedoraproject.org
Sun Jan 26 17:40:22 UTC 2014


commit 6c44451ede4170b3504445201bfbea26b4759a35
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sun Jan 26 12:40:36 2014 -0500

    Updated to 2.0 (BZ #1051399; release notes https://drupal.org/node/2170813)

 .gitignore               |    1 +
 drupal6-user_badges.spec |   39 ++++++++++++++++++++++-----------------
 sources                  |    1 +
 3 files changed, 24 insertions(+), 17 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 15bc727..6d92078 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /user_badges-6.x-1.6.tar.gz
+/user_badges-6.x-2.0.tar.gz
diff --git a/drupal6-user_badges.spec b/drupal6-user_badges.spec
index 37b7d76..ec3aac5 100644
--- a/drupal6-user_badges.spec
+++ b/drupal6-user_badges.spec
@@ -1,17 +1,17 @@
 %{!?drupal6: %global drupal6 %{_datadir}/drupal6}
 %{!?drupal6_modules: %global drupal6_modules %{drupal6}/sites/all/modules}
 
-%global module_name user_badges
+%global module user_badges
 
-Name:      drupal6-%{module_name}
-Version:   1.6
-Release:   2%{?dist}
+Name:      drupal6-%{module}
+Version:   2.0
+Release:   1%{?dist}
 Summary:   Enables assignment of graphical badges to users and roles
 
 Group:     Applications/Publishing
 License:   GPLv2
-URL:       http://drupal.org/project/%{module_name}
-Source0:   http://ftp.drupal.org/files/projects/%{module_name}-6.x-%{version}.tar.gz
+URL:       http://drupal.org/project/%{module}
+Source0:   http://ftp.drupal.org/files/projects/%{module}-6.x-%{version}.tar.gz
 Source1:   %{name}-RPM-README.txt
 
 BuildArch: noarch
@@ -20,11 +20,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:  drupal6
 #Requires:  drupal6(upload)
 #Requires:  drupal6(ecommerce)
-# phpci
+# phpcompatinfo (computed from version 2.0)
 Requires:  php-pcre
 
-Provides:  drupal6(%{module_name}) = %{version}
-Provides:  drupal6(%{module_name}_products) = %{version}
+Provides:  drupal6(%{module}) = %{version}
+Provides:  drupal6(%{module}_products) = %{version}
 
 %description
 The User Badges module allows each user to be assigned 'badges' which can be
@@ -47,15 +47,17 @@ star graphics), or as an incentive for users. They can also be a quick way to
 identify moderators, administrators, or anyone with a given role.
 
 This package provides the following Drupal modules:
-* %{module_name}
-* %{module_name}_products (NOTE: Requires manual install of the ecommerce module)
+* %{module}
+* %{module}_products (requires manual install of the ecommerce module)
 
 
 %prep
-%setup -qn %{module_name}
-
+%setup -qn %{module}
 cp -p %{SOURCE1} .
 
+# Remove executable bit
+chmod a-x LICENSE.txt
+
 
 %build
 # Empty build section, nothing required
@@ -63,8 +65,8 @@ cp -p %{SOURCE1} .
 
 %install
 rm -rf %{buildroot}
-mkdir -p -m 0755 %{buildroot}%{drupal6_modules}/%{module_name}
-cp -pr * %{buildroot}%{drupal6_modules}/%{module_name}/
+mkdir -pm 0755 %{buildroot}%{drupal6_modules}/%{module}
+cp -pr * %{buildroot}%{drupal6_modules}/%{module}/
 
 
 %clean
@@ -74,11 +76,14 @@ rm -rf %{buildroot}
 %files
 %defattr(-,root,root,-)
 %doc *.txt
-%{drupal6_modules}/%{module_name}
-%exclude %{drupal6_modules}/%{module_name}/*.txt
+%{drupal6_modules}/%{module}
+%exclude %{drupal6_modules}/%{module}/*.txt
 
 
 %changelog
+* Sun Jan 26 2014 Shawn Iwinski <shawn.iwinski at gmail.com> 2.0-1
+- Updated to 2.0 (BZ #1051399; release notes https://drupal.org/node/2170813)
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index ab95fa2..5f82e17 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 10778129757d1ac9871093508b128e84  user_badges-6.x-1.6.tar.gz
+854e52810dfb92ebacfc571bc1466a02  user_badges-6.x-2.0.tar.gz


More information about the scm-commits mailing list