[drupal7-locale_auto_import] Initial import (#953718)

Shawn Iwinski siwinski at fedoraproject.org
Fri Jun 28 20:46:37 UTC 2013


commit 130b68a0ead49f6b8e22cb6cd529e94b404b7d35
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Fri Jun 28 16:46:17 2013 -0400

    Initial import (#953718)

 .gitignore                                |    1 +
 drupal7-locale_auto_import-RPM-README.txt |    5 ++
 drupal7-locale_auto_import.spec           |   75 +++++++++++++++++++++++++++++
 sources                                   |    1 +
 4 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..796ac11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/locale_auto_import-7.x-1.0.tar.gz
diff --git a/drupal7-locale_auto_import-RPM-README.txt b/drupal7-locale_auto_import-RPM-README.txt
new file mode 100644
index 0000000..e15a506
--- /dev/null
+++ b/drupal7-locale_auto_import-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-locale_auto_import.spec b/drupal7-locale_auto_import.spec
new file mode 100644
index 0000000..802d665
--- /dev/null
+++ b/drupal7-locale_auto_import.spec
@@ -0,0 +1,75 @@
+%{?drupal7_find_provides_and_requires}
+
+%global module_name locale_auto_import
+
+Name:          drupal7-%{module_name}
+Version:       1.0
+Release:       2%{?dist}
+Summary:       Locale automatic import
+
+Group:         Applications/Publishing
+License:       GPLv2+
+URL:           http://drupal.org/project/%{module_name}
+Source0:       http://ftp.drupal.org/files/projects/%{module_name}-7.x-%{version}.tar.gz
+Source1:       %{name}-RPM-README.txt
+
+BuildArch:     noarch
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: drupal7-rpmbuild >= 7.22-5
+
+Requires:      drupal7(locale)
+# phpci
+Requires:      php-pcre
+
+%description
+Search within your modules/features for .po files and import them in the DB
+within the right text group.
+
+When you install a new module with translations, the Locale module
+automatically imports them in the "Built-in interface" text group and chooses
+the mode "Existing strings and the plural format are kept, only new strings
+are added.". It's OK for mostly all modules but not for Features that can
+contain Content types, Fields or Views.
+
+This module recognizes the system name of the text group in the name of your
+.po file and imports it to the right text group automatically.
+
+The .po files will be searched in an "auto_translations" folder within your
+modules/features instead of "translations".
+
+This package provides the following Drupal module:
+* %{module_name}
+
+
+%prep
+%setup -q -n %{module_name}
+cp -p %{SOURCE1} .
+
+
+%build
+# Empty build section, nothing to build
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p -m 0755 %{buildroot}%{drupal7_modules}/%{module_name}
+cp -pr * %{buildroot}%{drupal7_modules}/%{module_name}/
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc *.txt
+%{drupal7_modules}/%{module_name}
+%exclude %{drupal7_modules}/%{module_name}/*.txt
+
+
+%changelog
+* Sun Jun 16 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0-2
+- Updated for drupal7-rpmbuild 7.22-5
+
+* Thu Apr 18 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..4bf077b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4c0a4f8a325190dab7ca8b6277b5be47  locale_auto_import-7.x-1.0.tar.gz


More information about the scm-commits mailing list