]>
Commit | Line | Data |
---|---|---|
66f79e37 ER |
1 | %define modname syndication |
2 | Summary: Drupal Syndication Module | |
ce1976e3 | 3 | Summary(pl.UTF-8): Moduł Syndication dla Drupala |
66f79e37 ER |
4 | Name: drupal-mod-%{modname} |
5 | Version: 4.6.0 | |
1656f24c | 6 | Release: 0.5 |
66f79e37 ER |
7 | License: GPL v2 |
8 | Group: Applications/WWW | |
9 | Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz | |
1656f24c ER |
10 | # Source0-md5: 59dda5bcc7153fab5c38835b646041ff |
11 | Patch0: http://drupal.org/files/issues/syndication.module.patch | |
12 | ||
66f79e37 ER |
13 | BuildArch: noarch |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
38ac1e99 ER |
16 | %define _drupaldir %{_datadir}/drupal |
17 | %define _moddir %{_drupaldir}/modules | |
18 | %define _podir %{_drupaldir}/po/%{modname} | |
66f79e37 ER |
19 | |
20 | %description | |
21 | Syndication module offers a web page which centralizes all of the RSS | |
22 | feeds generated by Drupal. This helps users find interesting feeds | |
23 | from your web site. | |
24 | ||
e7ee0670 JR |
25 | %description -l pl.UTF-8 |
26 | Moduł Syndication udostępnia stronę WWW skupiającą wyszystkie źródła | |
27 | RSS generowane przez Drupala. Pomaga to użytkownikom znaleźć | |
28 | interesujące źródła na stronie WWW. | |
f96dab8e | 29 | |
66f79e37 ER |
30 | %prep |
31 | %setup -q -n %{modname} | |
1656f24c | 32 | %patch0 -p0 |
66f79e37 ER |
33 | rm -f LICENSE.txt # GPL v2 |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir}} | |
38 | ||
39 | install *.module $RPM_BUILD_ROOT%{_moddir} | |
40 | cp -a po/*.po $RPM_BUILD_ROOT%{_podir} | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
66f79e37 ER |
44 | |
45 | %post | |
46 | if [ "$1" = 1 ]; then | |
47 | %banner -e %{name} <<EOF | |
48 | If you want to use localization, then you need to upload .po files | |
49 | from %{_podir} via drupal locatization admin. | |
50 | ||
51 | EOF | |
52 | fi | |
f96dab8e JB |
53 | |
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc *.txt | |
57 | %{_moddir}/*.module | |
58 | %{_podir} |