Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 95662a7a2d43e886484cd0b7755ef45d > files > 3

drupal7-flexifilter-1.0-0.1.beta1.fc16.src.rpm

%global drupaldir %{_datadir}/drupal7
%global alphabeta beta
%global prerelease 1

Name:    drupal7-flexifilter
Version: 1.0
Release: 0.1.%{alphabeta}%{prerelease}%{?dist}
Summary: Allows non-admins to create their own, configurable custom filters

Group: Applications/Publishing
License: GPLv2+
URL:     http://drupal.org/project/flexifilter
Source0: http://ftp.drupal.org/files/projects/flexifilter-7.x-%{version}-%{alphabeta}%{prerelease}.tar.gz
Source1: %{name}-fedora-README.txt
Source2: LICENSE.txt

BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  drupal7

%description
Flexifilter is a module that allows non-admins to create their own,
configurable custom filters. It is not limited to simple text
replacement or regexp replacement; it includes logic such as if() and
while() statements, and is easily extendable by other modules.

%prep

%setup -qn flexifilter

install -p -m 0644 %{SOURCE1} .
install -p -m 0644 %{SOURCE2} .

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}/modules/flexifilter
cp -pr * %{buildroot}%{drupaldir}/modules/flexifilter

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc API.txt CHANGELOG.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt README.txt %{name}-fedora-README.txt
%{drupaldir}/modules/flexifilter
%exclude %{drupaldir}/modules/flexifilter/*.txt

%changelog
* Fri Sep 23 2011 Peter Borsa <peter.borsa@gmail.com> - 1.0-0.1.beta1
- Initial packaging