diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac7320f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Python-fontconfig-0.5.1.tar.gz diff --git a/python-fontconfig.spec b/python-fontconfig.spec new file mode 100644 index 0000000..d7fd6e2 --- /dev/null +++ b/python-fontconfig.spec @@ -0,0 +1,60 @@ +%{?python_enable_dependency_generator} + +%global srcname Python-fontconfig + +Name: python-fontconfig +Version: 0.5.1 +Release: 1%{?dist} +Summary: Python bindings for Fontconfig library + +License: GPLv3 +URL: https://pypi.org/project/Python-fontconfig/ +Source0: %{pypi_source} + +BuildRequires: gcc +BuildRequires: fontconfig-devel +BuildRequires: python3-Cython +BuildRequires: python3-devel +# Needed for tests +BuildRequires: gnu-free-mono-fonts + +%description +%{summary}. + + +%package -n python3-fontconfig +Summary: %{summary} +%{?python_provide:%python_provide python3-fontconfig} + +%description -n python3-fontconfig +%{summary}. + + +%prep +%autosetup -n %{srcname}-%{version} + + +%build +%{__python3} setup.py build_ext -i +%py3_build + + +%install +%py3_install + + +%check +export PYTHONPATH=$PWD/build/lib.%{python3_platform}-%{python3_version}/ +yes | %{__python3} test/test.py + + +%files -n python3-fontconfig +%doc README.rst +%license LICENSE.txt +%{python3_sitearch}/*.so +%{python3_sitearch}/*.egg-info + + +%changelog +* Wed Aug 21 2019 Mohamed El Morabity - 0.5.1-1 +- Initial RPM release diff --git a/sources b/sources new file mode 100644 index 0000000..0c4bb1c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Python-fontconfig-0.5.1.tar.gz) = b9b827dc837856f03d33084fcf7d07392c2ff71f2ea8b64181da239196a2cc2b3ff0c5e39746d928be2ed868a7bfa1247969555c103f7413fb1a6efa648f004f