[drupal7-fivestar] Updated to 2.0-alpha3 (BZ #1060464)

Shawn Iwinski siwinski at fedoraproject.org
Sat Feb 15 19:41:04 UTC 2014


commit 86ed48d8c2c82617506f17b7163ee73cb7e6b5b8
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Sat Feb 15 14:41:13 2014 -0500

    Updated to 2.0-alpha3 (BZ #1060464)
    
    - Release notes: https://drupal.org/node/2186899
    - Spec cleanup

 .gitignore                         |    1 +
 drupal7-fivestar-LICENSE.txt       |  339 ------------------------------------
 drupal7-fivestar-RPM-README.txt    |    5 +
 drupal7-fivestar-fedora-README.txt |    6 -
 drupal7-fivestar.spec              |   94 ++++++----
 sources                            |    1 +
 6 files changed, 65 insertions(+), 381 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index df5008c..53a53bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /fivestar-7.x-2.0-alpha1.tar.gz
 /fivestar-7.x-2.0-alpha2.tar.gz
+/fivestar-7.x-2.0-alpha3.tar.gz
diff --git a/drupal7-fivestar-RPM-README.txt b/drupal7-fivestar-RPM-README.txt
new file mode 100644
index 0000000..e15a506
--- /dev/null
+++ b/drupal7-fivestar-RPM-README.txt
@@ -0,0 +1,5 @@
+After installation, you must enable this module from the Drupal administration
+page.
+
+If upgrading this module separately from the core Drupal package, be sure to
+run the http://hostname/drupal7/upgrade.php script after this RPM is upgraded.
diff --git a/drupal7-fivestar.spec b/drupal7-fivestar.spec
index a6b6c5d..dfe2036 100644
--- a/drupal7-fivestar.spec
+++ b/drupal7-fivestar.spec
@@ -1,59 +1,81 @@
-%global drupalver 7
-%{?rhel: %{expand: %%global drupal drupal%%{drupalver}}}
-%if 0%{?fedora} >= 15
-%global drupal drupal%{drupalver}
-%endif
-%{!?drupal: %{expand: %%global drupal drupal}}
-# e.g. "/usr/share/drupal7"
-%global drupaldir %{_datadir}/%{drupal}
-# Use upstream name as expressed in URL and tarball
-%global modname fivestar
-
-Name:    drupal%{drupalver}-%{modname}
-Version: 2.0
-Release: 0.5.alpha2%{?dist}
-Summary: The Fivestar voting module adds a clean attractive voting widget
-Group:   Applications/Publishing
-License: GPLv2+
-URL:     http://drupal.org/project/%{modname}
-Source0: http://ftp.drupal.org/files/projects/%{modname}-%{drupalver}.x-2.0-alpha2.tar.gz
-Source1: %{name}-fedora-README.txt
-Source2: %{name}-LICENSE.txt
+%{?drupal7_find_provides_and_requires}
+
+%global module      fivestar
+%global pre_release alpha3
+
+Name:      drupal7-%{module}
+Version:   2.0
+Release:   0.6.%{pre_release}%{?dist}
+Summary:   Enables fivestar ratings on content, users, etc
+
+Group:     Applications/Publishing
+License:   GPLv2+
+URL:       http://drupal.org/project/%{module}
+Source0:   http://ftp.drupal.org/files/projects/%{module}-7.x-%{version}-%{pre_release}.tar.gz
+Source1:   %{name}-RPM-README.txt
+
 BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:  %{drupal} >= 7.0, drupal7-votingapi
+
+Requires:  drupal7-votingapi
+#Requires:  drupal7(votingapi)
+# phpcompatinfo (computed from version 2.0-alpha3)
+Requires:  php-pcre
+
 
 %description
-The Fivestar voting module adds a clean, attractive voting widget to nodes in
-Drupal 5, 6 and7. Developed by Lullabot and an officially supported module in
-Acquia Drupal.
+The Fivestar voting module adds a clean, attractive voting widget to nodes and
+comments and any entity. It features:
+* jQuery rollover effects and AJAX no-reload voting
+* Configurable star sets
+* Graceful degradation to an HTML rating form when JavaScript is turned off
+* Support for anonymous voters
+* Spam protection to keep users from filling your DB with bogus votes
+* Easy-to-use integration with Views module for lists sorted by rating, or
+      filtered by min/max ratings
+* A Fivestar CCK field for use in custom node types
+* An easy-to-use Form API element type for use in other modules
+* Compatible with all versions of jQuery (1.0 - 1.8)
+
+This package provides the following Drupal module:
+* %{module}
+
 
 %prep
-%setup -qn %{modname}
+%setup -qn %{module}
+cp -p %{SOURCE1} .
+
+# Remove executable bits
+chmod a-x LICENSE.txt
+find . -name '*.css' | xargs chmod a-x
+
 
 %build
-cp %{SOURCE1} .
-cp %{SOURCE2} ./LICENSE.txt
+# Empty build section, nothing to build
+
 
 %install
 rm -rf %{buildroot}
-install -d %{buildroot}%{drupaldir}/modules/%{modname}
-find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupaldir}/modules/%{modname}/'{}' \;
+mkdir -pm 0755 %{buildroot}%{drupal7_modules}/%{module}
+cp -pr * %{buildroot}%{drupal7_modules}/%{module}/
 
 
 %clean
 rm -rf %{buildroot}
 
+
 %files
 %defattr(-,root,root,-)
-# Remember to include other documentation text here as well
-%doc LICENSE.txt %{name}-fedora-README.txt
-# Remember to exclude all documentation texts from above
-%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
-%exclude %{drupaldir}/modules/%{modname}/%{name}-fedora-README.txt
-%{drupaldir}/modules/%{modname}
+%doc *.txt
+%{drupal7_modules}/%{module}
+%exclude %{drupal7_modules}/%{module}/*.txt
+
 
 %changelog
+* Sat Feb 15 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 2.0-0.6.alpha3
+- Updated to 2.0-alpha3 (BZ #1060464; release notes https://drupal.org/node/2186899)
+- Spec cleanup
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0-0.5.alpha2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index db316b3..b221136 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 acebd71efc5234dacbf256d98b68c346  fivestar-7.x-2.0-alpha2.tar.gz
+1571a761135705581c3f1f33a3bcb293  fivestar-7.x-2.0-alpha3.tar.gz


More information about the scm-commits mailing list