Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 74f8cadeb99985e3ad20b6047b170dd3 > files > 2

zikula-module-advanced_polls-2.0.0-1.fc13.src.rpm

%global zikula_base             %{_datadir}/zikula
%global zikula_moddir           %{zikula_base}/modules
%global zikula_modname          advanced_polls

Name:           zikula-module-%{zikula_modname}
Version:        2.0.0
Release:        1%{?dist}
Summary:        Advanced voting system for Zikula

Group:          Applications/Publishing
License:        GPL+
URL:            http://code.zikula.org/advancedpolls/downloads
# http://code.zikula.org/advancedpolls/downloads/5
# The Source0 URL must be used with a Internet browser.  wget will not work.
Source0:        advanced_polls200.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
#BuildRequires:
Requires:       zikula => 1.2.3

%description
Advanced Polls is an advanced voting system for the Zikula CMS system


%prep
%setup -qn modules/%{zikula_modname}
# Remove empty index.html and others
find -size 0 | xargs rm -f
# Remove htaccess file
cd pnincludes/
rm .htaccess
# Remove .mo file
cd ../locale/
rm -r *

%build
# Fixing wrong-file-end-of-line-encoding errors
cd pndocs
sed -i 's/\r//' credits.txt
sed -i 's/\r//' changelog.txt
sed -i 's/\r//' help.txt
sed -i 's/\r//' license.txt

%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


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc pndocs/credits.txt pndocs/changelog.txt pndocs/help.txt pndocs/license.txt
%{zikula_moddir}/%{zikula_modname}


%changelog
* Thu May 27 2010 Eric "Sparks" Christensen <sparks@fedoraproject.org> - 2.0.0-1
- Updated for Zikula v1.2
- Gettext conversion
- Category support
- Permalink support
- Meta data support
- Ajax voting
- Improved templates and interface
- Multihook needle support #8
- Added simple content plugin #8
- Improved recurrence and DBUtil usage
- Fixed blocks and authorisation methods
- Fixed duplicate function
- Improved results bars style

* Wed Jul 15 2009 Eric "Sparks" Christensen <sparks@fedoraproject.org> - 1.5.1-1
- Initial RPM release