]> git.pld-linux.org Git - packages/python-markdown.git/blobdiff - python-markdown.spec
- updated URLs
[packages/python-markdown.git] / python-markdown.spec
index 4b44297d5a9edb9e7a122f4edaa5eb9beb1aa5bf..93f065ad03902e24af151e83a382e9a0f840c6af 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_without tests   # do not perform "make test"
+%bcond_without tests   # unit tests
 %bcond_without python2 # python2 package
 %bcond_without python3 # python3 package
 
@@ -8,23 +8,21 @@
 Summary:       Markdown implementation in Python 2
 Summary(pl.UTF-8):     Implementacja formatu Markdown w Pythonie 2
 Name:          python-%{module}
-Version:       2.6.7
+Version:       2.6.11
 Release:       2
 License:       BSD
 Group:         Development/Languages/Python
-#Source0Download: https://pypi.python.org/simple/markdown/
+#Source0Download: https://pypi.org/simple/markdown/
 Source0:       https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz
-# Source0-md5: a06f1c5d462b32e0e8da014e9eebb0d9
-URL:           https://pythonhosted.org/Markdown/
+# Source0-md5: a67c1b2914f7d74eeede2ebe0fdae470
+Patch0:                %{name}-yaml.patch
+URL:           https://pypi.org/project/markdown/
 BuildRequires: python-devel
 BuildRequires: python-elementtree
 %if %{with tests}
 BuildRequires: python-PyYAML
 BuildRequires: python-nose
 %endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildRequires: sed >= 4.0
 %if %{with python3}
 BuildRequires: python3-devel >= 1:3.2
 %if %{with tests}
@@ -32,9 +30,11 @@ BuildRequires:       python3-PyYAML
 BuildRequires: python3-nose
 %endif
 %endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
 Requires:      python-elementtree
 Provides:      python-Markdown = %{version}-%{release}
-Obsoletes:     python-Markdown = 2.2.1
+Obsoletes:     python-Markdown < 2.3
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -65,12 +65,7 @@ choć jest kilka znanych problemów.
 
 %prep
 %setup -q -n Markdown-%{version}
-
-# remove shebangs
-find markdown -type f -name '*.py' -exec sed -i -e '/^#!/{1D}' {} ';'
-
-# fix line-ending
-%undos docs/release-2.2.0.txt
+%patch0 -p1
 
 %build
 %if %{with python2}
@@ -113,7 +108,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc LICENSE.md README.md docs/{authors.txt,change_log.txt,cli.txt,index.txt,reference.txt,release-*.txt,siteindex.txt,extensions}
+%doc LICENSE.md README.md docs/{change_log,extensions,authors.md,cli.md,favicon.ico,index.md,py.png,reference.md}
 %attr(755,root,root) %{_bindir}/markdown_py
 %attr(755,root,root) %{_bindir}/markdown_py-%{py_ver}
 %{py_sitescriptdir}/markdown
@@ -123,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-markdown
 %defattr(644,root,root,755)
-%doc LICENSE.md README.md docs/{authors.txt,change_log.txt,cli.txt,index.txt,reference.txt,release-*.txt,siteindex.txt,extensions}
+%doc LICENSE.md README.md docs/{change_log,extensions,authors.md,cli.md,favicon.ico,index.md,py.png,reference.md}
 %attr(755,root,root) %{_bindir}/markdown_py-%{py3_ver}
 %{py3_sitescriptdir}/markdown
 %{py3_sitescriptdir}/Markdown-%{version}-py*.egg-info
This page took 0.062881 seconds and 4 git commands to generate.