]>
Commit | Line | Data |
---|---|---|
c9596fa7 ER |
1 | %define modname urlfilter |
2 | Summary: Drupal URL Filter Module | |
72cb6a94 | 3 | Summary(pl.UTF-8): Moduł URL Filter dla Drupala |
c9596fa7 ER |
4 | Name: drupal-mod-%{modname} |
5 | Version: 4.6.0 | |
8981ce01 | 6 | Release: 0.2 |
c9596fa7 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz | |
8981ce01 | 10 | # Source0-md5: 4318c88acf55e85f29c239d559a6c286 |
c9596fa7 ER |
11 | URL: http://drupal.org/project/urlfilter |
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 | %define _podir %{_drupaldir}/po/%{modname} | |
20 | ||
21 | %description | |
22 | This is a simple filter module. It automatically converts URLs (http, | |
23 | ftp, email, ...) into hyperlinks. | |
24 | ||
72cb6a94 JR |
25 | %description -l pl.UTF-8 |
26 | To jest prosty moduł filtra. Automatycznie przekształca URL-e (http, | |
27 | ftp, email...) na hiperłącza. | |
3d921e4d | 28 | |
c9596fa7 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},%{_podir}} | |
36 | ||
37 | install *.module $RPM_BUILD_ROOT%{_moddir} | |
38 | cp -a po/*.po $RPM_BUILD_ROOT%{_podir} | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %post | |
44 | if [ "$1" = 1 ]; then | |
45 | %banner -e %{name} <<EOF | |
46 | If you want to use localization, then you need to upload .po files | |
47 | from %{_podir} via drupal locatization admin. | |
48 | ||
49 | EOF | |
50 | fi | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc *.txt po/*.pot | |
55 | %{_moddir}/*.module | |
56 | %{_podir} |