Blob Blame History Raw
%global drupalver 7
%{?rhel: %{expand: %%global drupal drupal%%{drupalver}}}
%if 0%{?fedora} >= 15
%global drupal drupal%{drupalver}
%{!?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 markdown

Name:    drupal%{drupalver}-%{modname}
Version: 1.1
Release: 1%{?dist}
Summary: Provides Markdown filter integration for Drupal input formats.
Group:   Applications/Publishing
License: GPLv2+
Source1: %{name}-fedora-README.txt
Source2: %{name}-LICENSE.txt
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:  %{drupal} >= 7.0

Provides Markdown filter integration for Drupal input formats. The Markdown
syntax is designed to co-exist with HTML, so you can set up input formats with
both HTML and Markdown support. It is also meant to be as human-readable as
possible when left as "source".

%setup -qn %{modname}

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

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

rm -rf %{buildroot}

# Remember to include other documentation text here as well
%doc LICENSE.txt %{name}-fedora-README.txt
# Remember to exclude all documentation texts from above
%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
%exclude %{drupaldir}/modules/%{modname}/%{name}-fedora-README.txt

* Mon Nov 26 2012 Peter Borsa <> - 1.1-1
- Update to 1.1

* Wed Jul 18 2012 Fedora Release Engineering <> - 1.0-3
- Rebuilt for

* Fri Jan 13 2012 Fedora Release Engineering <> - 1.0-2
- Rebuilt for

* Tue Oct 4 2011 Scott Dodson <> - 1.0-1
- Initial Drupal 7 Packaging