]>
Commit | Line | Data |
---|---|---|
bf28bf6e ER |
1 | %define modname pathauto |
2 | Summary: Drupal Pathauto Module | |
75ca3969 | 3 | Summary(pl.UTF-8): Moduł Pathauto dla Drupala |
bf28bf6e ER |
4 | Name: drupal-mod-%{modname} |
5 | Version: 4.6.0 | |
6 | Release: 0.1 | |
7 | License: GPL v2 | |
8 | Group: Applications/WWW | |
9 | Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz | |
10 | # Source0-md5: 87d92073546ce9f0e95960a454d84914 | |
11 | URL: http://drupal.org/node/17345 | |
12 | Requires: drupal >= 4.6.0 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _drupaldir %{_datadir}/drupal | |
17 | %define _moddir %{_drupaldir}/modules | |
18 | ||
19 | %description | |
20 | The pathauto module automatically generates path aliases for various | |
21 | kinds of content (nodes, categories, users) when no explicit alias is | |
22 | provided by the user. | |
23 | ||
a1f800a0 JR |
24 | %description -l pl.UTF-8 |
25 | Moduł pathauto automatycznie generuje aliasy ścieżek dla różnych | |
26 | rodzajów treści (węzłów, kategorii, użytkowników), kiedy użytkownik | |
6ca85e1a JB |
27 | nie zapewni aliasu wprost. |
28 | ||
bf28bf6e ER |
29 | %prep |
30 | %setup -q -n %{modname} | |
31 | rm -f LICENSE.txt # GPL v2 | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{_moddir} | |
36 | install *.module *.inc $RPM_BUILD_ROOT%{_moddir} | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc *.txt contrib/ | |
44 | %{_moddir}/*.module | |
45 | %{_moddir}/*.inc |