]>
Commit | Line | Data |
---|---|---|
1 | %define modname htmlcorrector | |
2 | Summary: Drupal HTML corrector | |
3 | Name: drupal-mod-%{modname} | |
4 | Version: 4.6.0 | |
5 | Release: 0.1 | |
6 | License: GPL v2 | |
7 | Group: Applications/WWW | |
8 | Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz | |
9 | # Source0-md5: 076ec184722bc10ed233d87a3ce284a8 | |
10 | URL: http://drupal.org/project/htmlcorrector | |
11 | # for %%banner | |
12 | #BuildRequires: rpmbuild(macros) >= 1.194 | |
13 | Requires: drupal >= 4.6.0 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define _drupaldir %{_datadir}/drupal | |
18 | %define _moddir %{_drupaldir}/modules | |
19 | ||
20 | %description | |
21 | This is a HTML correcting module. The filter scans the input, builds | |
22 | up a list of open tags and closes them when needed. | |
23 | ||
24 | Note that it does not validate the document according to the HTML | |
25 | specifications, but merely ensures that any tags are properly nested. | |
26 | ||
27 | %prep | |
28 | %setup -q -n %{modname} | |
29 | rm -f LICENSE.txt # GPL v2 | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{_moddir} | |
34 | ||
35 | install *.module $RPM_BUILD_ROOT%{_moddir} | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %doc *.txt | |
43 | %{_moddir}/*.module |