From d2aee09389e8fd33fd9298726787b74ede9e9d5a Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Fri, 5 Jan 2024 16:47:31 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.1.0-1mamba;Sat Jan 23 2016] --- README.md | 2 ++ python-traitlets.spec | 47 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 python-traitlets.spec diff --git a/README.md b/README.md index 99b485d..8414519 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-traitlets +This Python module is designed to provide a lightweight, simple, pure Python version of many of the capabilities of enthought.traits. + diff --git a/python-traitlets.spec b/python-traitlets.spec new file mode 100644 index 0000000..43aafcb --- /dev/null +++ b/python-traitlets.spec @@ -0,0 +1,47 @@ +%global srcname traitlets + +Name: python-%{srcname} +Version: 4.1.0 +Release: 1mamba +Summary: A lightweight, simple, pure Python derivative of Enthought Traits +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: https://github.com/ipython/traitlets +Source: https://github.com/ipython/traitlets/archive/%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +Requires: python-decorator +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This Python module is designed to provide a lightweight, simple, pure Python version of many of the capabilities of enthought.traits. + +%prep +%setup -q -n %{srcname}-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc README.md + +%changelog +* Sat Jan 23 2016 Davide Madrisan 4.1.0-1mamba +- package created using the webbuild interface