%{?drupal7_find_provides_and_requires}
%global module_name entity_translation
%global pre_release beta4
Name: drupal7-%{module_name}
Version: 1.0
Release: 0.6.%{pre_release}%{?dist}
Summary: Allows entities to be translated into different languages
Group: Applications/Publishing
License: GPLv2+
URL: http://drupal.org/project/%{module_name}
Source0: http://ftp.drupal.org/files/projects/%{module_name}-7.x-%{version}-%{pre_release}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: drupal7-rpmbuild >= 7.23-3
Requires: drupal7-i18n
#Requires: drupal7(i18n)
#Requires: drupal7(i18n_menu)
Requires: drupal7(locale)
# phpcompatinfo (computed from version 1.0-beta4)
Requires: php-date
Requires: php-pcre
%description
Allows (fieldable) entities to be translated into different languages,
by introducing entity/field translation for the new translatable fields
capability in Drupal 7. Maintained by the Drupal core i18n team.
This project does not replace the Internationalization
(http://drupal.org/project/i18n) project, which focuses on enabling a full
multilingual workflow for site admins/builders. Some features, e.g. content
language negotiation or taxonomy translation, might overlap but most of them
are unrelated.
This package provides the following Drupal modules:
* %{module_name}
* %{module_name}_i18n_menu
* %{module_name}_upgrade
%prep
%setup -qn %{module_name}
# Create RPM README
cat > RPM-README.txt <<'RPM_README'
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.
RPM_README
%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,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE.txt
%doc CHANGELOG.txt
%doc MAINTAINERS.txt
%doc README.txt
%doc RPM-README.txt
%{drupal7_modules}/%{module_name}
%exclude %{drupal7_modules}/%{module_name}/*.txt
%changelog
* Tue Jan 27 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.0-0.6.beta4
- Updated to 1.0-beta4 (BZ #1185294)
- Moved RPM README inside spec
- %%license usage
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.5.beta3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu Aug 08 2013 Peter Borsa <peter.borsa@gmail.com> - 1.0-0.4.beta3
- Update to upstream 1.0-beta3 release for bug fixes
- Upstream changelog for this release is available at https://drupal.org/node/2048665
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.3.beta2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Sun Jun 16 2013 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.0-0.2.beta2
- Updated for drupal7-rpmbuild 7.22-5
* Fri May 03 2013 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.0-0.1.beta2
- Initial package