Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 42b87f4d2b03b93ae32ad21ce30a689b > files > 1

drupal6-video-6.x.4.2.beta2-2.fc13.src.rpm

%global drupalver 6
%if 0%{?fedora} <= 14
%global drupal drupal
%else
# e.g. "drupal6"
%global drupal drupal%{drupalver}
%endif
# e.g. "/usr/share/drupal6"
%global drupaldir %{_datadir}/%{drupal}
# Use upstream name as expressed in URL and tarball
%global modname video

Name:    drupal6-%{modname}
Version: 6.x.4.2.beta2
Release: 2%{?dist}
Summary: Allows Creation of CCK Video Fields
Group:   Applications/Publishing
License: GPLv2+
URL:     http://drupal.org/project/%{modname}
Source0: http://ftp.drupal.org/files/projects/video-6.x-4.2-beta2.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  %{drupal} >= 6.0

%description
Video module allows you to upload video in any format, play video in any 
format, transcode video to FLV using FFMPEG (can be extended to any 
transcoder), automatically creates video thumbnails, use video thumbnails in 
video node teaser, fast and very reliable API for converting videos and auto 
thumbnailing, can be used as an all-in-one video solution for Drupal.

%prep
%setup -qn %{modname}

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}/modules/%{modname}
cp -pr * %{buildroot}%{drupaldir}/modules/%{modname}
sed -i -e '/^#!\//, 1d' %{buildroot}%{drupaldir}/modules/%{modname}/video_scheduler.php

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt
%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
%{drupaldir}/modules/%{modname}

%changelog
* Sun Mar 06 2011 Eric "Sparks" Christensen <sparks@fedoraproject.org> - 6.x.4.2.beta2-2
- Fixed package name.
* Sat Mar 05 2011 Eric "Sparks" Christensen <sparks@fedoraproject.org> - 6.x.4.2.beta2-1
- New package.