diff --git a/python-markdown2.spec b/python-markdown2.spec index 0c4114d..c705d29 100644 --- a/python-markdown2.spec +++ b/python-markdown2.spec @@ -1,6 +1,6 @@ %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%if 0%{?fedora} || 0%{?rhel} > 6 +%if 0%{?fedora} %global with_python3 1 %{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")} %endif @@ -13,14 +13,13 @@ %global srcname markdown2 Name: python-%{srcname} -Version: 2.1.0 -Release: 3%{?dist} +Version: 2.2.0 +Release: 1%{?dist} Summary: A fast and complete Python implementation of Markdown Group: Development/Languages License: MIT URL: https://github.com/trentm/python-%{srcname}/ Source0: http://pypi.python.org/packages/source/m/%{srcname}/%{srcname}-%{version}.zip -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-pygments @@ -82,7 +81,6 @@ popd %install -rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} # remove shebangs and fix permissions @@ -111,10 +109,6 @@ popd ln -s markdown2-%{python_version} %{buildroot}%{_bindir}/markdown2 -%clean -rm -rf %{buildroot} - - %check cd test %{__python} test.py -- -knownfailure %{?skip_tests} @@ -128,7 +122,6 @@ popd %files -%defattr(-,root,root,-) %doc CHANGES.md CONTRIBUTORS.txt LICENSE.txt TODO.txt %{python_sitelib}/* %{_bindir}/markdown2 @@ -137,7 +130,6 @@ popd %if 0%{?with_python3} %files -n python3-markdown2 -%defattr(-,root,root,-) %doc CHANGES.md CONTRIBUTORS.txt LICENSE.txt TODO.txt %{python3_sitelib}/* %{_bindir}/markdown2-%{python3_version} @@ -145,6 +137,10 @@ popd %changelog +* Wed Feb 5 2014 Thomas Moschny - 2.2.0-1 +- Update to 2.2.0. +- Modernize spec file. + * Sun Aug 04 2013 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild