Blob Blame History Raw

%global module_name potx

Name:          drupal7-%{module_name}
Version:       1.0
Release:       2%{?dist}
Summary:       Translation template extractor

Group:         Applications/Publishing
License:       GPLv2+
URL: {module_name}
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-date
Requires:      php-pcre
Requires:      php-tokenizer

The Translation template extractor provides a web based and a command line
Gettext translation template extractor interface for Drupal as well as a
reusable API to look for translatable strings and translatability errors.
This tool is used under the hood at as well to
serve as a parsing machine for project releases.

This package provides the following Drupal module:
* %{module_name}

%setup -q -n %{module_name}
cp -p %{SOURCE1} .

# Remove executable bits
chmod a-x translations/*

# Empty build section, nothing to build

rm -rf %{buildroot}
mkdir -p -m 0755 %{buildroot}%{drupal7_modules}/%{module_name}
cp -pr * %{buildroot}%{drupal7_modules}/%{module_name}/

rm -rf %{buildroot}

%doc *.txt
%exclude %{drupal7_modules}/%{module_name}/*.txt

* Sun Jun 16 2013 Shawn Iwinski <> 1.0-2
- Updated for drupal7-rpmbuild 7.22-5

* Fri May 03 2013 Shawn Iwinski <> 1.0-1
- Initial package