summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-21 10:51:17 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-21 10:51:17 +0200
commit6a715214dc1997c7e40ec98c1e103e554d50db7c (patch)
tree9da7be8d8b94beaf54cc41837d92b3abebf7402d
parent47c4e1225967ddcd662fc9384955c9631754bb22 (diff)
gd: spec cleanups
-rw-r--r--gd.spec33
1 files changed, 23 insertions, 10 deletions
diff --git a/gd.spec b/gd.spec
index 3917f73..fcd1c5b 100644
--- a/gd.spec
+++ b/gd.spec
@@ -27,10 +27,16 @@ Patch17: gd-aarch64.patch
# https://bitbucket.org/libgd/gd-libgd/pull-request/4
Patch20: gd-gdcalloc.patch
-BuildRequires: freetype-devel, fontconfig-devel, libX11-devel, libXpm-devel
-BuildRequires: libjpeg-devel, libpng-devel, zlib-devel, pkgconfig
+BuildRequires: freetype-devel
+BuildRequires: fontconfig-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libX11-devel
+BuildRequires: libXpm-devel
+BuildRequires: zlib-devel
+BuildRequires: pkgconfig
# we need cmake for building test suite
-BuildRequires: cmake, chrpath
+BuildRequires: cmake
%description
The gd graphics library allows your code to quickly draw images
@@ -56,11 +62,16 @@ graphics library for creating PNG and JPEG images.
Summary: The development libraries and header files for gd
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
-Requires: libX11-devel, libXpm-devel, libjpeg-devel, freetype-devel
-Requires: libpng-devel, zlib-devel, fontconfig-devel
-Requires: pkgconfig
+Requires: freetype-devel%{?_isa}
+Requires: fontconfig-devel%{?_isa}
+Requires: libjpeg-devel%{?_isa}
+Requires: libpng-devel%{?_isa}
+Requires: libX11-devel%{?_isa}
+Requires: libXpm-devel%{?_isa}
+Requires: zlib-devel%{?_isa}
Conflicts: gd-devel
+
%description devel
The gd-devel package contains the development libraries and header
files for gd, a graphics library for creating PNG and JPEG graphics.
@@ -93,6 +104,8 @@ sed -e '/SOURCES/s/$/ gd_bmp.c bmp.h gd_tga.c gd_tga.h/' \
# Disable failed tests
sed -e '/bmp_im2im/d' -i tests/bmp/CMakeLists.txt
sed -e '/gdimageline_aa/d' -i tests/gdimageline/CMakeLists.txt
+
+# Generate autotool stuff
./bootstrap.sh
%build
@@ -113,8 +126,6 @@ make install INSTALL='install -p' DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a
-# Using the last resort to remove rpath, another tricks didn't help
-#chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{pngtogd,gdparttopng,annotate,gdcmpgif,gdtopng,webpng,pngtogd2,gd2togif,gd2copypal,giftogd2,gd2topng}
%check
top=$(pwd)
@@ -132,6 +143,7 @@ export LD_LIBRARY_PATH=$top/src/.libs
make test
popd
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -151,8 +163,9 @@ popd
%{_libdir}/*.so
%{_libdir}/pkgconfig/gdlib.pc
+
%changelog
-* Sat Apr 21 2013 Remi Collet <remi@fedoraproject.org> - 2.1.0-0.1.preview
+* Sun Apr 21 2013 Remi Collet <remi@fedoraproject.org> - 2.1.0-0.1.preview
- first work on 2.1.0
* Mon Mar 25 2013 Honza Horak <hhorak@redhat.com> - 2.0.35-24
@@ -412,7 +425,7 @@ popd
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
- update to 1.8.3
-* Sat Jun 4 2000 Nalin Dahyabhai <nalin@redhat.com>
+* Sun Jun 4 2000 Nalin Dahyabhai <nalin@redhat.com>
- rebuild in new environment
* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>