]>
Commit | Line | Data |
---|---|---|
d442c1dc ER |
1 | %define modname image |
2 | Summary: Drupal Image Module | |
053b9069 | 3 | Summary(pl.UTF-8): Moduł Image dla Drupala |
d442c1dc ER |
4 | Name: drupal-mod-%{modname} |
5 | Version: 4.6.0 | |
b66877d0 | 6 | Release: 0.24 |
d442c1dc ER |
7 | License: GPL |
8 | Group: Applications/WWW | |
9 | Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz | |
b66877d0 | 10 | # Source0-md5: 8b5c011a83fad3cac38a4d670e117f4c |
d442c1dc | 11 | URL: http://drupal.org/project/image |
bc23d0f1 | 12 | BuildRequires: rpmbuild(macros) >= 1.194 |
d7654a3e JB |
13 | Requires: ImageMagick |
14 | Requires: ImageMagick-coder-jpeg | |
15 | Requires: ImageMagick-coder-jpeg2 | |
16 | Requires: ImageMagick-coder-png | |
17 | Requires: ImageMagick-coder-tiff | |
d442c1dc ER |
18 | Requires: drupal >= 4.6.0 |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
4878c0bb ER |
22 | %define _drupaldir %{_datadir}/drupal |
23 | %define _moddir %{_drupaldir}/modules | |
24 | %define _incdir %{_drupaldir}/includes | |
25 | %define _htdocs %{_drupaldir}/htdocs | |
26 | %define _podir %{_drupaldir}/po/%{modname} | |
be5d6a7e | 27 | %define _filesdir /var/lib/drupal |
a6a86f15 | 28 | %define _htmlmoddir %{_htdocs}/modules |
d442c1dc ER |
29 | |
30 | %description | |
31 | This module allow users with proper permissions to upload images into | |
dacb5039 | 32 | Drupal. Thumbnails are created automatically. |
d442c1dc | 33 | |
d7654a3e | 34 | Images could be posted individually to the front page, included in |
d442c1dc ER |
35 | stories or grouped in galleries. |
36 | ||
57a97ded JR |
37 | %description -l pl.UTF-8 |
38 | Ten moduł pozwala użytkownikom z odpowiednimi prawami umieszczać | |
39 | obrazki w Drupalu. Miniaturki tworzone są automatycznie. | |
d7654a3e | 40 | |
57a97ded JR |
41 | Obrazki mogą być wysyłane pojedynczo na stronę główną, włączane do |
42 | artykułów albo grupowane w galeriach. | |
d7654a3e | 43 | |
d442c1dc ER |
44 | %prep |
45 | %setup -q -n %{modname} | |
46 | rm -f LICENSE.txt # pure GPL | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
be5d6a7e | 50 | install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir},%{_incdir},%{_filesdir}/images/temp} |
d442c1dc ER |
51 | |
52 | install *.module $RPM_BUILD_ROOT%{_moddir} | |
a78a8ce9 | 53 | install *.inc $RPM_BUILD_ROOT%{_incdir} |
a6a86f15 | 54 | install *.css $RPM_BUILD_ROOT%{_htmlmoddir} |
efed0041 | 55 | cp -a po/*.po $RPM_BUILD_ROOT%{_podir} |
d442c1dc ER |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
efed0041 ER |
60 | %post |
61 | if [ "$1" = 1 ]; then | |
62 | %banner -e %{name} <<EOF | |
63 | If you want to use localization, then you need to upload .po files | |
64 | from %{_podir} via drupal locatization admin. | |
65 | ||
66 | EOF | |
67 | fi | |
68 | ||
d442c1dc ER |
69 | %files |
70 | %defattr(644,root,root,755) | |
f2c980cb | 71 | %doc *.txt po/*.pot *.php |
d442c1dc | 72 | %{_moddir}/*.module |
a78a8ce9 | 73 | %{_incdir}/*.inc |
efed0041 | 74 | %{_podir} |
a6a86f15 | 75 | %{_htmlmoddir}/*.css |
be5d6a7e ER |
76 | %dir %attr(775,root,http) %{_filesdir}/images |
77 | %dir %attr(775,root,http) %{_filesdir}/images/temp |