From 29b2921f8e0c4e0f2d0ad38ace86674e694b9b45 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:15:34 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.7.1-1mamba;Sun Oct 02 2016] --- README.md | 2 ++ python-imagesize.spec | 47 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 python-imagesize.spec diff --git a/README.md b/README.md index 75d3f1d..c3e9be4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-imagesize +This module analyzes jpeg/jpeg2000/png/gif image header and return image size. + diff --git a/python-imagesize.spec b/python-imagesize.spec new file mode 100644 index 0000000..d618468 --- /dev/null +++ b/python-imagesize.spec @@ -0,0 +1,47 @@ +Name: python-imagesize +Version: 0.7.1 +Release: 1mamba +Summary: This module analyzes jpeg/jpeg2000/png/gif image header and return image size +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pypi.python.org/pypi/imagesize +Source: https://pypi.debian.net/imagesize/imagesize-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n imagesize-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) + +%changelog +* Sun Oct 02 2016 Silvan Calarco 0.7.1-1mamba +- package created using the webbuild interface