package created using the webbuild interface [release 0.7.1-1mamba;Sun Oct 02 2016]
This commit is contained in:
parent
bc7995aab9
commit
29b2921f8e
@ -1,2 +1,4 @@
|
||||
# python-imagesize
|
||||
|
||||
This module analyzes jpeg/jpeg2000/png/gif image header and return image size.
|
||||
|
||||
|
47
python-imagesize.spec
Normal file
47
python-imagesize.spec
Normal file
@ -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 <silvan.calarco@mambasoft.it>
|
||||
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 <silvan.calarco@mambasoft.it> 0.7.1-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user