commit 7c1b69a8fe3ffad084bf977840dcababd9cf1968
Author: Jan Palus <[email protected]>
Date:   Thu May 28 20:17:07 2020 +0200

    new (version 1.1)

 py3c.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
---
diff --git a/py3c.spec b/py3c.spec
new file mode 100644
index 0000000..efd7d66
--- /dev/null
+++ b/py3c.spec
@@ -0,0 +1,46 @@
+Summary:       A Python 2/3 compatibility layer for C extensions
+Name:          py3c
+Version:       1.1
+Release:       1
+License:       MIT
+Group:         Libraries
+Source0:       
https://github.com/encukou/py3c/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# Source0-md5: 95be2e17f0541de2ba3e1b68dee4a9da
+URL:           https://libbsd.freedesktop.org/
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+py3c helps you port C extensions to Python 3.
+ 
+It provides a detailed guide, and a set of macros to make porting easy
+and reduce boilerplate.
+
+%prep
+%setup -q
+
+%build
+%{__make} includedir=%{_includedir} py3c.pc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_includedir},%{_pkgconfigdir}}
+
+cp -p include/py3c.h $RPM_BUILD_ROOT%{_includedir}
+cp -pr include/py3c $RPM_BUILD_ROOT%{_includedir}
+cp -p py3c.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst CONTRIBUTING README.rst
+%{_includedir}/py3c.h
+%dir %{_includedir}/py3c
+%{_includedir}/py3c/*.h
+%{_pkgconfigdir}/py3c.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/py3c.git/commitdiff/7c1b69a8fe3ffad084bf977840dcababd9cf1968

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to