Scott Dodson 443627e
%global drupalver 7
Scott Dodson 443627e
%{?rhel: %{expand: %%global drupal drupal%%{drupalver}}}
Scott Dodson 443627e
%if 0%{?fedora} >= 15
Scott Dodson 443627e
%global drupal drupal%{drupalver}
Scott Dodson 443627e
%endif
Scott Dodson 443627e
%{!?drupal: %{expand: %%global drupal drupal}}
Scott Dodson 443627e
# e.g. "/usr/share/drupal7"
Scott Dodson 443627e
%global drupaldir %{_datadir}/%{drupal}
Scott Dodson 443627e
# Use upstream name as expressed in URL and tarball
Scott Dodson 443627e
%global modname markdown
Scott Dodson 443627e
Scott Dodson 443627e
Name:    drupal%{drupalver}-%{modname}
Peter Borsa edb97c6
Version: 1.1
66774dd
Release: 2%{?dist}
Scott Dodson 443627e
Summary: Provides Markdown filter integration for Drupal input formats.
Scott Dodson 443627e
Group:   Applications/Publishing
Scott Dodson 443627e
License: GPLv2+
Scott Dodson 443627e
URL:     http://drupal.org/project/%{modname}
Scott Dodson 443627e
Source0: http://ftp.drupal.org/files/projects/%{modname}-%{drupalver}.x-%{version}.tar.gz
Scott Dodson 443627e
Source1: %{name}-fedora-README.txt
Scott Dodson 443627e
Source2: %{name}-LICENSE.txt
Scott Dodson 443627e
BuildArch: noarch
Scott Dodson 443627e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Scott Dodson 443627e
Requires:  %{drupal} >= 7.0
Scott Dodson 443627e
Scott Dodson 443627e
%description
Scott Dodson 443627e
Provides Markdown filter integration for Drupal input formats. The Markdown
Scott Dodson 443627e
syntax is designed to co-exist with HTML, so you can set up input formats with
Scott Dodson 443627e
both HTML and Markdown support. It is also meant to be as human-readable as
Scott Dodson 443627e
possible when left as "source".
Scott Dodson 443627e
Scott Dodson 443627e
Scott Dodson 443627e
%prep
Scott Dodson 443627e
%setup -qn %{modname}
Scott Dodson 443627e
Scott Dodson 443627e
%build
Scott Dodson 443627e
cp %{SOURCE1} .
Scott Dodson 443627e
cp %{SOURCE2} ./LICENSE.txt
Scott Dodson 443627e
Scott Dodson 443627e
%install
Scott Dodson 443627e
rm -rf %{buildroot}
Scott Dodson 443627e
install -d %{buildroot}%{drupaldir}/modules/%{modname}
Scott Dodson 443627e
find . -type f -exec install -m 0644 -D '{}' %{buildroot}%{drupaldir}/modules/%{modname}/'{}' \;
Scott Dodson 443627e
Scott Dodson 443627e
Scott Dodson 443627e
%clean
Scott Dodson 443627e
rm -rf %{buildroot}
Scott Dodson 443627e
Scott Dodson 443627e
%files
Scott Dodson 443627e
%defattr(-,root,root,-)
Scott Dodson 443627e
# Remember to include other documentation text here as well
Scott Dodson 443627e
%doc LICENSE.txt %{name}-fedora-README.txt
Scott Dodson 443627e
# Remember to exclude all documentation texts from above
Scott Dodson 443627e
%exclude %{drupaldir}/modules/%{modname}/LICENSE.txt
Scott Dodson 443627e
%exclude %{drupaldir}/modules/%{modname}/%{name}-fedora-README.txt
Scott Dodson 443627e
%{drupaldir}/modules/%{modname}
Scott Dodson 443627e
Scott Dodson 443627e
%changelog
66774dd
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
66774dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
66774dd
Peter Borsa edb97c6
* Mon Nov 26 2012 Peter Borsa <peter.borsa@gmail.com> - 1.1-1
Peter Borsa edb97c6
- Update to 1.1
Peter Borsa edb97c6
cada8cf
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
cada8cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cada8cf
26a3329
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
26a3329
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
26a3329
Scott Dodson 443627e
* Tue Oct 4 2011 Scott Dodson <sdodson@redhat.com> - 1.0-1
Scott Dodson 443627e
- Initial Drupal 7 Packaging