[drupal6-imagecache_profiles] Spec cleanup

Shawn Iwinski siwinski at fedoraproject.org
Sun Jan 26 19:34:44 UTC 2014


commit 521afefe8b7d70351e3bd868982410e95bb6bda9
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sun Jan 26 14:34:46 2014 -0500

    Spec cleanup

 LICENSE.txt                                   |  280 -------------------------
 drupal6-imagecache_profiles-RPM-README.txt    |    5 +
 drupal6-imagecache_profiles-fedora-README.txt |    6 -
 drupal6-imagecache_profiles.spec              |   84 ++++----
 4 files changed, 50 insertions(+), 325 deletions(-)
---
diff --git a/drupal6-imagecache_profiles-RPM-README.txt b/drupal6-imagecache_profiles-RPM-README.txt
new file mode 100644
index 0000000..a098b41
--- /dev/null
+++ b/drupal6-imagecache_profiles-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/drupal6/upgrade.php script after this RPM is upgraded.
diff --git a/drupal6-imagecache_profiles.spec b/drupal6-imagecache_profiles.spec
index 7a5c7f4..83de807 100644
--- a/drupal6-imagecache_profiles.spec
+++ b/drupal6-imagecache_profiles.spec
@@ -1,63 +1,69 @@
-%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             imagecache_profiles
-%global pre_release         rc1
-
-Name:    drupal%{drupalver}-%{modname}
-Version: 1.4
-Release: 0.1.%{pre_release}%{?dist}
-Summary: Image Cache Profiles 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}-%{pre_release}.tar.gz
-Source1: %{name}-fedora-README.txt
-Source2: LICENSE.txt
+%{!?drupal6: %global drupal6 %{_datadir}/drupal6}
+%{!?drupal6_modules: %global drupal6_modules %{drupal6}/sites/all/modules}
+
+%global module      imagecache_profiles
+%global pre_release rc1
+
+Name:      drupal6-%{module}
+Version:   1.4
+Release:   0.2.%{pre_release}%{?dist}
+Summary:   Utilizes image styles for user profile pictures
+
+Group:     Applications/Publishing
+License:   GPLv2
+URL:       http://drupal.org/project/%{module}
+Source0:   http://ftp.drupal.org/files/projects/%{module}-6.x-%{version}-%{pre_release}.tar.gz
+Source1:   %{name}-RPM-README.txt
+
 BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:  drupal6, drupal6-imagecache
+
+Requires:  drupal6
+Requires:  drupal6(imagecache)
+# phpcompatinfo (computed from version 1.4-rc1)
+# <none>
+
+Provides:  drupal6(%{module}) = %{version}
 
 %description
 ImageCache_Profiles module allows you to set user profile pictures that are
-consistent throughout your site and allows avatars on the user profile
-pages, nodes and comments to be a different size.
+consistent throughout your site and allows avatars on the user profile pages,
+nodes and comments to be a different size.
+
+This package provides the following Drupal modules:
+* %{module}
+
 
 %prep
-%setup -qn %{modname}
+%setup -qn %{module}
+cp -p %{SOURCE1} .
+
 
 %build
-cp %{SOURCE1} .
-cp %{SOURCE2} .
+# Empty build section, nothing required
 
 
 %install
 rm -rf %{buildroot}
-install -d %{buildroot}%{drupal_modules}/%{modname}
-find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupal_modules}/%{modname}/'{}' \;
+mkdir -pm 0755 %{buildroot}%{drupal6_modules}/%{module}
+cp -pr * %{buildroot}%{drupal6_modules}/%{module}/
+
 
 %clean
 rm -rf %{buildroot}
 
+
 %files
 %defattr(-,root,root,-)
-# Remember to include other documentation text here as well
-%doc  %{name}-fedora-README.txt
-%doc  LICENSE.txt
-# Remember to exclude all documentation texts from above
-%exclude %{drupal_modules}/%{modname}/%{name}-fedora-README.txt
-%exclude %{drupal_modules}/%{modname}/LICENSE.txt
-%{drupal_modules}/%{modname}
+%doc *.txt
+%{drupal6_modules}/%{module}
+%exclude %{drupal6_modules}/%{module}/*.txt
+
 
 %changelog
+* Sun Jan 26 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 1.4-0.2.rc1
+- Spec cleanup
+
 * Thu Nov 28 2013 Peter Borsa <peter.borsa at gmail.com> - 1.4-0.1.rc1
 - Update to upstream 1.4-rc1 release for bug fixes
 - Upstream changelog for this release is available at https://drupal.org/node/1304356


More information about the scm-commits mailing list