%global zikula_base %{_datadir}/zikula %global zikula_moddir %{zikula_base}/modules %global zikula_modname pagemaster Name: zikula-module-%{zikula_modname} Version: 0.3.1 Release: 2%{?dist} Summary: Creates pages with dynamic content like news, articles, etc Group: Applications/Publishing License: GPLv2+ URL: http://code.zikula.org/pagemaster/ # Source URL is dynamically generated. Go to URL to fetch it Source0: package_ba269f9bbdba5234dca4bbed95702be2.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: zikula %description Pagemaster is a fully Zikula 1.1 compliant but non complete clone of Pagesetter (relations and mediashare plugin are missing still). The main task of the module is creating pages with dynamic content like news articles, product descriptions, band listings etc. %prep %setup -q -c # Remove empty index.html and others find -size 0 | xargs rm -f #Fixing wrong-file-end-of-line-encoding error sed -i 's/\r//' modules/pagemaster/pndocs/install-and-usage.txt # Rpmlint warnings E: script-without-shebang find . -name '*.php' -exec chmod 0644 '{}' \; %build %install rm -rf %{buildroot} cd modules/%{zikula_modname} mkdir -p %{buildroot}/%{zikula_moddir}/%{zikula_modname} cp -pr . %{buildroot}/%{zikula_moddir}/%{zikula_modname} rm -rf %{buildroot}/%{zikula_moddir}/%{zikula_modname}/pndocs %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc modules/%{zikula_modname}/pndocs/* %{zikula_moddir}/%{zikula_modname} %changelog * Fri Aug 28 2009 Rahul Sundaram - 0.3.1-2 - Fix license tag and add Source URL comment * Wed Aug 26 2009 Rahul Sundaram - 0.3.1-1 - initial package - Based on Chitlesh Goorah's spec -