]> git.pld-linux.org Git - packages/drupal-mod-image.git/blame - drupal-mod-image.spec
- tabs in preamble
[packages/drupal-mod-image.git] / drupal-mod-image.spec
CommitLineData
d442c1dc
ER
1%define modname image
2Summary: Drupal Image Module
053b9069 3Summary(pl.UTF-8): Moduł Image dla Drupala
d442c1dc
ER
4Name: drupal-mod-%{modname}
5Version: 4.6.0
b66877d0 6Release: 0.24
d442c1dc
ER
7License: GPL
8Group: Applications/WWW
9Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
b66877d0 10# Source0-md5: 8b5c011a83fad3cac38a4d670e117f4c
d442c1dc 11URL: http://drupal.org/project/image
bc23d0f1 12BuildRequires: rpmbuild(macros) >= 1.194
d7654a3e
JB
13Requires: ImageMagick
14Requires: ImageMagick-coder-jpeg
15Requires: ImageMagick-coder-jpeg2
16Requires: ImageMagick-coder-png
17Requires: ImageMagick-coder-tiff
d442c1dc
ER
18Requires: drupal >= 4.6.0
19BuildArch: noarch
20BuildRoot: %{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
31This module allow users with proper permissions to upload images into
dacb5039 32Drupal. Thumbnails are created automatically.
d442c1dc 33
d7654a3e 34Images could be posted individually to the front page, included in
d442c1dc
ER
35stories or grouped in galleries.
36
57a97ded
JR
37%description -l pl.UTF-8
38Ten moduł pozwala użytkownikom z odpowiednimi prawami umieszczać
39obrazki w Drupalu. Miniaturki tworzone są automatycznie.
d7654a3e 40
57a97ded
JR
41Obrazki mogą być wysyłane pojedynczo na stronę główną, włączane do
42artykułów albo grupowane w galeriach.
d7654a3e 43
d442c1dc
ER
44%prep
45%setup -q -n %{modname}
46rm -f LICENSE.txt # pure GPL
47
48%install
49rm -rf $RPM_BUILD_ROOT
be5d6a7e 50install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir},%{_incdir},%{_filesdir}/images/temp}
d442c1dc
ER
51
52install *.module $RPM_BUILD_ROOT%{_moddir}
a78a8ce9 53install *.inc $RPM_BUILD_ROOT%{_incdir}
a6a86f15 54install *.css $RPM_BUILD_ROOT%{_htmlmoddir}
efed0041 55cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
d442c1dc
ER
56
57%clean
58rm -rf $RPM_BUILD_ROOT
59
efed0041
ER
60%post
61if [ "$1" = 1 ]; then
62%banner -e %{name} <<EOF
63If you want to use localization, then you need to upload .po files
64from %{_podir} via drupal locatization admin.
65
66EOF
67fi
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
This page took 0.073036 seconds and 4 git commands to generate.