Blob Blame History Raw
%global drupaldir %{_datadir}/drupal6


Name:      drupal6-pathauto
Version:   2.0
Release:   3%{?dist}
Summary:   Automatically generates path aliases

Group:     Applications/Publishing
License:   GPLv2+
URL:       http://drupal.org/project/pathauto
Source0:   http://ftp.drupal.org/files/projects/pathauto-6.x-%{version}.tar.gz
Source1:   %{name}-fedora-README.txt

BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  drupal6, drupal6-token

%description
The Pathauto module automatically generates path aliases
for various kinds of content (nodes, categories, users)
without requiring the user to manually specify the path alias.

%prep
%setup -qn pathauto
chmod -x pathauto.module
cp -p %{SOURCE1} .

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}/modules/pathauto
cp -pr * %{buildroot}%{drupaldir}/modules/pathauto

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt %{name}-fedora-README.txt README.txt API.txt INSTALL.txt
%exclude %{drupaldir}/modules/pathauto/LICENSE.txt
%exclude %{drupaldir}/modules/pathauto/drupal6-pathauto-fedora-README.txt
%exclude %{drupaldir}/modules/pathauto/README.txt
%exclude %{drupaldir}/modules/pathauto/API.txt
%exclude %{drupaldir}/modules/pathauto/INSTALL.txt
%{drupaldir}/modules/pathauto

%changelog
* 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.

* Thu Nov 23 2010 Peter Borsa <peter.borsa@gmail.com> - 1.5-1
- Initial packaging.