diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb0fae1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/reparser-1.4.3.tar.gz diff --git a/python-reparser.spec b/python-reparser.spec new file mode 100644 index 0000000..90571f9 --- /dev/null +++ b/python-reparser.spec @@ -0,0 +1,45 @@ +%global pypi_name reparser + +Name: python-%{pypi_name} +Version: 1.4.3 +Release: 1%{?dist} +Summary: Simple regex-based lexer/parser for inline markup + +License: MIT +URL: https://github.com/xmikos/reparser +Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +Simple regex-based Python lexer/parser for inline markup. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Simple regex-based Python lexer/parser for inline markup. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/ReParser-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Sat Sep 19 2020 Fabian Affolter - 1.4.3-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..1d6092b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (reparser-1.4.3.tar.gz) = c266cfa6d518fb0624582fb2bc0f6045376943834dbbe98ca0896f1637495920260379e57d8c1c84a255dfdfc853ae062a511f450e531b1961087f338690f97e