[drupal7-backup_migrate] Updated to 3.0 (BZ #1101926)

Shawn Iwinski siwinski at fedoraproject.org
Fri Jun 27 21:32:18 UTC 2014


commit a4fbb7d1cb042b912d4ad524bc394fcb8de65e10
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Fri Jun 27 01:54:32 2014 -0400

    Updated to 3.0 (BZ #1101926)
    
    - Release notes: https://www.drupal.org/node/2275063
    - Spec cleanup

 .gitignore                                         |    1 +
 LICENSE.txt                                        |  339 --------------------
 ...ME.txt => drupal7-backup_migrate-RPM-README.txt |    0
 drupal7-backup_migrate.spec                        |  113 ++++---
 sources                                            |    2 +-
 5 files changed, 68 insertions(+), 387 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4f3f3fd..e812542 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 /backup_migrate-7.x-2.5.tar.gz
 /backup_migrate-7.x-2.7.tar.gz
 /backup_migrate-7.x-2.8.tar.gz
+/backup_migrate-7.x-3.0.tar.gz
diff --git a/drupal7-backup_migrate-fedora-README.txt b/drupal7-backup_migrate-RPM-README.txt
similarity index 100%
rename from drupal7-backup_migrate-fedora-README.txt
rename to drupal7-backup_migrate-RPM-README.txt
diff --git a/drupal7-backup_migrate.spec b/drupal7-backup_migrate.spec
index 0a8057e..e7494b3 100644
--- a/drupal7-backup_migrate.spec
+++ b/drupal7-backup_migrate.spec
@@ -1,64 +1,83 @@
-%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 backup_migrate
-
-Name:    drupal%{drupalver}-%{modname}
-Version: 2.8
-Release: 2%{?dist}
-Summary: Database backup, restore, and migrate module for Drupal %{drupalver}
-Group:   Applications/Publishing
-License: GPLv2+ and BSD
-URL:     http://drupal.org/project/%{modname}
-Source0: http://ftp.drupal.org/files/projects/%{modname}-%{drupalver}.x-%{version}.tar.gz
-Source1: %{name}-fedora-README.txt
-Source2: LICENSE.txt
-BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:  %{drupal} >= 7.0
+%{?drupal7_find_provides_and_requires}
+
+%global module backup_migrate
+
+Name:          drupal7-%{module}
+Version:       3.0
+Release:       1%{?dist}
+Summary:       Backup the Drupal database and files or migrate them to another environment
+
+Group:         Applications/Publishing
+License:       GPLv2+
+URL:           http://drupal.org/project/%{module}
+Source0:       http://ftp.drupal.org/files/projects/%{module}-7.x-%{version}.tar.gz
+Source1:       %{name}-RPM-README.txt
+
+BuildArch:     noarch
+BuildRequires: drupal7-rpmbuild >= 7.23-3
+
+# phpcompatinfo (computed from version 3.0)
+Requires:      php-bz2
+Requires:      php-date
+Requires:      php-ftp
+Requires:      php-pcre
+Requires:      php-pdo
+Requires:      php-pecl(zip)
+Requires:      php-session
+Requires:      php-zlib
 
 %description
-Backup and Migrate simplifies the task of backing up and restoring
-your Drupal database or copying your database from one Drupal site to
-another. It supports gzip, bzip and zip compression as well as
-automatic scheduled backups.
+Back up and restore your Drupal MySQL database, code, and files or migrate
+a site between environments. Backup and Migrate supports gzip, bzip and zip
+compression as well as automatic scheduled backups.
+
+With Backup and Migrate you can dump some or all of your database tables to a
+file download or save to a file on the server or offsite, and to restore from
+an uploaded or previously saved database dump. You can choose which tables and
+what data to backup and cache data is excluded by default.
+
+Features:
+* Backup/Restore multiple MySQL databases and code
+* Backup of files directory is built into this version
+* Add a note to backup files
+* Smart delete options make it easier to manage backup files
+* Backup to FTP/S3/Email or NodeSquirrel.com
+* Drush integration
+* Multiple backup schedules
+* AES encryption for backups
+
+This package provides the following Drupal module:
+* %{module}
 
-With Backup and Migrate you can dump some or all of your database
-tables to a file download or save to a file on the server, and to
-restore from an uploaded or previously saved database dump. You can
-chose which tables and what data to backup and cache data is excluded
-by default.
 
 %prep
-%setup -qn %{modname}
+%setup -qn %{module}
+cp -p %{SOURCE1} .
+
+# Remove executable bits
+chmod a-x LICENSE.txt includes/sources.archivesource.inc
+
 
 %build
-cp %{SOURCE1} .
-cp %{SOURCE2} .
+# 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}/'{}' \;
 
+%install
+mkdir -pm 0755 %{buildroot}%{drupal7_modules}/%{module}
+cp -pr * %{buildroot}%{drupal7_modules}/%{module}/
 
-%clean
-rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root,-)
-%doc LICENSE.txt %{name}-fedora-README.txt
-%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
+* Fri Jun 27 2014 Shawn Iwinski <shawn.iwinski at gmail.com> - 3.0-1
+- Updated to 3.0 (BZ #1101926; release notes https://www.drupal.org/node/2275063)
+- Spec cleanup
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.8-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 6e0277d..2cf1ff1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b5044b66b52b00519265c16a75aa1f3b  backup_migrate-7.x-2.8.tar.gz
+93443a0f2b3c805f0a5e91ea5e3184f0  backup_migrate-7.x-3.0.tar.gz


More information about the scm-commits mailing list