[python-gd/f18] Initial import (#901872).
pcpa
pcpa at fedoraproject.org
Fri Feb 1 14:06:04 UTC 2013
commit dd5b484a082bed4910bdb2aae7f729818755df18
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date: Fri Feb 1 12:05:27 2013 -0200
Initial import (#901872).
.gitignore | 1 +
LICENSE | 36 +++++++++++++++++++++++++
python-gd.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 119 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0251930 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gdmodule-0.56-clean.tar.gz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..4fe6326
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,36 @@
+gdmodule - Python GD module
+Copyright (c) 1995 Richard Jones
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+- Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+- Neither the name of the Bureau of Meteorology Australia nor the
+ names of its contributors may be used to endorse or promote
+ products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+OF SUCH DAMAGE.
+
+
diff --git a/python-gd.spec b/python-gd.spec
new file mode 100644
index 0000000..e499ba9
--- /dev/null
+++ b/python-gd.spec
@@ -0,0 +1,81 @@
+%global bundled_ttf 0
+
+%global mod_name gdmodule
+%global __provides_exclude_from .*/site-packages/.*\\.so$
+
+Name: python-gd
+Version: 0.56
+Release: 5%{?dist}
+Summary: Python GD module
+Group: Development/Libraries
+License: BSD
+URL: http://newcenturycomputers.net/projects/gdmodule.html
+%if %{bundled_ttf}
+Source0: http://newcenturycomputers.net/projects/download.cgi/%{mod_name}-%{version}.tar.gz
+%else
+# tar zxf SOURCES/${mod_name}-${version}.tar.gz
+# rm -f ${md_name}-${version}/adventure.ttf
+# tar zcf SOURCES/${mod_name}-${version}-clean.tar.gz ${mod_name}-${version}
+Source0: %{mod_name}-%{version}-clean.tar.gz
+%endif
+
+# https://bugzilla.redhat.com/show_bug.cgi?id=901872#c6
+Source1: LICENSE
+
+BuildRequires: freetype-devel
+BuildRequires: gd-devel >= 2.0.23
+BuildRequires: giflib-devel
+BuildRequires: libjpeg-turbo-devel
+BuildRequires: libpng-devel
+BuildRequires: libXpm-devel
+BuildRequires: openjpeg-devel
+BuildRequires: python2-devel
+BuildRequires: zlib-devel
+Requires: gd >= 2.0.23
+
+%description
+The GDmodule is an interface to the GD library written by Thomas Boutell.
+
+ 'gd is a graphics library. It allows your code to quickly draw images
+ complete with lines, arcs, text, multiple colors, cut and paste from
+ other images, and flood fills, and write out the result as a PNG or
+ JPEG file. This is particularly useful in World Wide Web applications,
+ where PNG and JPEG are two of the formats accepted for inline images
+ by most browsers.'
+
+%prep
+%setup -q -n %{mod_name}-%{version}
+sed -e 's|\r||' %{SOURCE1} > LICENSE
+touch -r %{SOURCE1} LICENSE
+sed -i -e 's|"/usr/local/lib"|"%{_libdir}"|;' Setup.py
+
+%build
+CFLAGS="%{optflags}" %{__python} Setup.py build
+
+%install
+%{__python} Setup.py install --root $RPM_BUILD_ROOT
+chmod 755 $RPM_BUILD_ROOT/%{python_sitearch}/_gd.so
+
+%files
+%doc LICENSE README
+%{python_sitearch}/_gd.so
+%{python_sitearch}/gd.py*
+%{python_sitearch}/%{mod_name}-%{version}-py2.7.egg-info
+
+%changelog
+* Thu Jan 31 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.56-5
+- Explicitly set CFLAGS (#901872).
+
+* Wed Jan 30 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.56-4
+- Preserve timestamp of the LICENSE file.
+
+* Sun Jan 27 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.56-3
+- Add LICENSE file given by upstream (#901872).
+- Repackage the tarball to remove a bundlled ttf file (reported upstream).
+
+* Tue Jan 22 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.56-2
+- Do not provide a private shared object.
+- Correct permissions of the installed shared object.
+
+* Sat Jan 19 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 0.56-1
+- Initial python-gd spec.
diff --git a/sources b/sources
index e69de29..f7895b2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e5fdc10ba009ab6e55d5ae8e546f088e gdmodule-0.56-clean.tar.gz
More information about the scm-commits
mailing list