Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 464c501fed12da7b52b53facb896a523 > files > 2

drupal6-node_import-1.2-1.fc18.src.rpm

%{!?drupal6: %global drupal6 %{_datadir}/drupal6}
%{!?drupal6_modules: %global drupal6_modules %{drupal6}/sites/all/modules}

%global module_name node_import

Name:      drupal6-%{module_name}
Version:   1.2
Release:   1%{?dist}
Summary:   Allows users to import node content from a CSV or TSV file

Group:     Applications/Publishing
License:   GPLv2
URL:       http://drupal.org/project/%{module_name}
Source0:   http://ftp.drupal.org/files/projects/%{module_name}-6.x-%{version}.tar.gz
Source1:   %{name}-RPM-README.txt

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

Requires:  drupal6
Requires:  drupal6-date
# phpci
Requires:  php-date
Requires:  php-ereg

Provides: drupal6(%{module_name}) = %{version}

%description
Node import allows users to import content (node, user, taxonomy) from CSV or
TSV files.

Note that all files need to be in UTF8 encoding.

This package provides the following Drupal modules:
* %{module_name}


%prep
%setup -qn %{module_name}

cp -p %{SOURCE1} .


%build
# Empty build section, nothing required


%install
rm -rf %{buildroot}
mkdir -p -m 0755 %{buildroot}%{drupal6_modules}/%{module_name}
cp -pr * %{buildroot}%{drupal6_modules}/%{module_name}/


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc *.txt
%{drupal6_modules}/%{module_name}
%exclude %{drupal6_modules}/%{module_name}/*.txt


%changelog
* Fri Mar 22 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 1.2-1
- Initial package