%global zikula_base %{_datadir}/zikula %global zikula_moddir %{zikula_base}/modules %global zikula_modname EZComments Name: zikula-module-%{zikula_modname} Version: 0.1.61 Release: 3%{?dist} Summary: Simple Zikula module that provides comment functions to other modules Group: Applications/Publishing License: GPLv2+ URL: http://code.zikula.org/ezcomments # Note that the md5sum of this source might change # without the version number changing, due to # upstream's version numbering packages. Source0: http://community.zikula.org/extensionsDist/module_%{zikula_modname}_1-61.zip Source1: license.eml BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch #BuildRequires: Requires: zikula %description EZComments is a Zikula module that provides comment functions for other modules. %prep %setup -qn modules/%{zikula_modname} # Remove empty index.html and others find -size 0 | xargs rm -f # Rpmlint warnings E: script-without-shebang find . -type f -name '*.php' -exec chmod 0644 '{}' \; find . -type f -name '*.css' -exec chmod 0644 '{}' \; find . -type f -name '*.htm' -exec chmod 0644 '{}' \; find . -type f -name '*.js' -exec chmod 0644 '{}' \; # Copy additional license information cp -p %SOURCE1 pndocs # Fix encoding issues with rpmlint iconv -f iso8859-1 -t utf-8 pndocs/credits.txt > pndocs/credits.txt.conv && mv -f pndocs/credits.txt.conv pndocs/credits.txt %build %install rm -rf $RPM_BUILD_ROOT %{__mkdir} -p $RPM_BUILD_ROOT/%{zikula_moddir}/%{zikula_modname} cp -pr . $RPM_BUILD_ROOT/%{zikula_moddir}/%{zikula_modname} rm -rf $RPM_BUILD_ROOT/%{zikula_moddir}/%{zikula_modname}/pndocs # Fix permissions for docs chmod 0644 pndocs/* %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc pndocs/changelog.txt pndocs/license.txt pndocs/credits.txt pndocs/license.eml %{zikula_moddir}/%{zikula_modname} %changelog * Mon Nov 02 2009 Mel Chua - 0.1.61-3 - Updating spec with static URL (zikula website changed its download link) * Mon Nov 02 2009 Mel Chua - 0.1.61-2 - Resolving license conflict - Thanks to Sebastian Dziallas for his help * Mon Sep 14 2009 Mel Chua - 0.1.61-1 - Initial RPM release