1 %define modname blogtheme
2 Summary: Drupal Blog Theme Module
3 Summary(pl.UTF-8): Moduł Drupal Blog Theme
4 Name: drupal-mod-%{modname}
9 Group: Applications/WWW
10 Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
11 # Source0-md5: a527f9efc6ec532748104e7e2904927d
12 URL: http://drupal.org/node/19248
13 Requires: drupal >= 4.6.0
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _drupaldir %{_datadir}/drupal
18 %define _moddir %{_drupaldir}/modules
21 Blog theme allows users to have persistent themes for their blogs
22 based on the theme they choose for their account. When others view
23 their main blog page, or any node created by them, the reader will see
24 the author's theme instead of their own.
26 The module works by using the hook_init function and setting the
27 $custom_theme global variable to the node/blog owner's theme.
29 %description -l pl.UTF-8
30 Blog theme pozwala użytkownikom mieć trwałe motywy dla swoich blogów w
31 oparciu o motyw wybrany dla własnego konta. Kiedy inni oglądają ich
32 główną stronę bloga lub dowolny utworzony węzeł, czytelnik zobaczy
33 motyw autora zamiast własnego.
35 Moduł działa poprzez użycie funkcji hook_init i ustawienie zmiennej
36 globalnej $custom_theme na motyw właściciela węzła/bloga.
39 %setup -q -n %{modname}
41 rm -f LICENSE.txt # GPL v2
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_moddir}
47 install *.module $RPM_BUILD_ROOT%{_moddir}
50 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)