Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > daa2695de7fc387b5efd5c17c017464f > files > 3

drupal7-features_plumber-1.0-0.2.alpha3.fc15.src.rpm

%global drupalver 7
%{?rhel: %{expand: %%global drupal drupal%%{drupalver}}}
%if 0%{?fedora} >= 15
%global drupal drupal%{drupalver}
%endif
%{!?drupal: %{expand: %%global drupal drupal}}
# e.g. "/usr/share/drupal7"
%global drupaldir %{_datadir}/%{drupal}
# Use upstream name as expressed in URL and tarball
%global modname features_plumber

Name:    drupal%{drupalver}-%{modname}
Version: 1.0
Release: 0.2.alpha3%{?dist}
Summary: Remove unwanted components from your Features
Group:   Applications/Publishing
License: GPLv2+
URL:     http://drupal.org/project/%{modname}
Source0: http://ftp.drupal.org/files/projects/%{modname}-%{drupalver}.x-%{version}-alpha3.tar.gz
Source1: %{name}-README.txt
Source2: %{name}-LICENSE.txt
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  %{drupal} >= 7.0 %{drupal}-features, %{drupal}-ctools

%description
This module is useful for feature development using the Features module[1].
Occasionally the Features module auto detects components that you do not want
exported to features. You can use this module to remove those auto-detected
components from any and all features you choose. The Features Plumber UI module
adds check boxes to the feature create form, and unchecking these detected
components will cause them to be removed from the actual generated export.

%prep
%setup -qn %{modname}

%build
cp %{SOURCE1} .
cp %{SOURCE2} ./LICENSE.txt

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}/modules/%{modname}
find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupaldir}/modules/%{modname}/'{}' \;


%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
# Remember to include other documentation text here as well
%doc LICENSE.txt %{name}-README.txt
# Remember to exclude all documentation texts from above
%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
%exclude %{drupaldir}/modules/%{modname}/%{name}-README.txt
%exclude %{drupaldir}/modules/%{modname}/.cvsignore
%{drupaldir}/modules/%{modname}

%changelog
* Mon Dec 26 2011 Scott Dodson <sdodson@redhat.com> 1.0-0.2.alpha3
- Add dependencies
* Thu Nov 3 2011 Scott Dodson <sdodson@redhat.com> 1.0-0.1.alpha3
- Initial Drupal 7 Package