package created using the webbuild interface [release 4.1.0-1mamba;Sat Jan 23 2016]

This commit is contained in:
Davide Madrisan 2024-01-05 16:47:31 +01:00
parent 72099d047a
commit d2aee09389
2 changed files with 49 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# python-traitlets # python-traitlets
This Python module is designed to provide a lightweight, simple, pure Python version of many of the capabilities of enthought.traits.

47
python-traitlets.spec Normal file
View File

@ -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 <davide.madrisan@gmail.com>
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 <davide.madrisan@gmail.com> 4.1.0-1mamba
- package created using the webbuild interface