%{!?drupal6: %global drupal6 %{_datadir}/drupal6}
%{!?drupal6_modules: %global drupal6_modules %{drupal6}/sites/all/modules}
%global module pathauto
Name: drupal6-%{module}
Version: 2.1
Release: 1%{?dist}
Summary: Provides a mechanism to automatically generate aliases
Group: Applications/Publishing
License: GPLv2+
URL: http://drupal.org/project/%{module}
Source0: http://ftp.drupal.org/files/projects/%{module}-6.x-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: drupal6
#Requires: drupal6(token)
Requires: drupal6-token
# phpcompatinfo (computed from version 2.1)
Requires: php-pcre
Provides: drupal6(%{module}) = %{version}
%description
The Pathauto module automatically generates URL/path aliases for various kinds
of content (nodes, taxonomy terms, users) without requiring the user to manually
specify the path alias. This allows you to have URL aliases like
/category/my-node-title instead of /node/123. The aliases are based upon a
"pattern" system that uses tokens which the administrator can change.
This package provides the following Drupal module:
* %{module}
%prep
%setup -qn %{module}
: Licenses and docs
mkdir -p .rpm/{licenses,docs}
mv LICENSE.txt .rpm/licenses/
mv *.txt .rpm/docs/
%build
# Empty build section, nothing required
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{drupal6_modules}/%{module}
cp -pr * %{buildroot}%{drupal6_modules}/%{module}/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license .rpm/licenses/*
%doc .rpm/docs/*
%{drupal6_modules}/%{module}
%changelog
* Wed Mar 09 2016 Shawn Iwinski <shawn.iwinski@gmail.com> - 2.1-1
- Updated to 2.1 (RHBZ #1300492)
- Removed RPM README b/c it only explained common Drupal workflow
- Spec cleanup
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu May 03 2012 Peter Borsa <peter.borsa@gmail.com> - 2.0-1
- Updated to the latest stable.
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-0.5.rc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Fri Sep 30 2011 Peter Borsa <peter.borsa@gmail.com> - 2.0-0.4.rc2
- Updated to 2.0 version.
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Jan 24 2011 Peter Borsa <peter.borsa@gmail.com> - 1.5-2
- Summary became talkative and shorten.
- Changed License to GPLv2+.
- Chmod and cp are copied under prep section.
- Fixed exclude lines.
* Tue Nov 23 2010 Peter Borsa <peter.borsa@gmail.com> - 1.5-1
- Initial packaging.