From 78b337bd324405c3cba837fc1524dfdb26c7c55f Mon Sep 17 00:00:00 2001 From: Paul W. Frields Date: Apr 24 2011 20:03:51 +0000 Subject: Initial import (#693117) --- diff --git a/.gitignore b/.gitignore index e69de29..b1d0a75 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/backup_migrate-6.x-2.4.tar.gz diff --git a/drupal6-backup_migrate-fedora-README.txt b/drupal6-backup_migrate-fedora-README.txt new file mode 100644 index 0000000..1f273f1 --- /dev/null +++ b/drupal6-backup_migrate-fedora-README.txt @@ -0,0 +1,5 @@ +After installation, you must enable this module in the Modules section +of the Drupal administration tools. + +If upgrading this module seperately from the core drupal package, be +sure to run the upgrade.php script after this rpm is upgraded. diff --git a/drupal6-backup_migrate.spec b/drupal6-backup_migrate.spec new file mode 100644 index 0000000..c910458 --- /dev/null +++ b/drupal6-backup_migrate.spec @@ -0,0 +1,62 @@ +%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 drupaldir %{_datadir}/%{drupal} +# Use upstream name as expressed in URL and tarball +%global modname backup_migrate + +Name: drupal%{drupalver}-%{modname} +Version: 2.4 +Release: 1%{?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 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: %{drupal} >= 6.0 + +%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. + +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} + +%build +cp %{SOURCE1} . + +%install +rm -rf %{buildroot} +install -d %{buildroot}%{drupaldir}/modules/%{modname} +find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupaldir}/modules/%{modname}/'{}' \; + + +%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} + +%changelog +* Sat Apr 2 2011 Paul W. Frields - 2.4-1 +- Initial RPM package + diff --git a/sources b/sources index e69de29..4e4ec16 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fc4810d96bc77a7881a913135f2e4d1c backup_migrate-6.x-2.4.tar.gz