Accepting request 238951 from graphics

- split out libgd3, so libgd2 could be installed in parallel.

OBS-URL: https://build.opensuse.org/request/show/238951
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gd?expand=0&rev=34
This commit is contained in:
Stephan Kulow
2014-06-30 19:42:46 +00:00
committed by Git OBS Bridge
3 changed files with 27 additions and 4 deletions

View File

@@ -1 +1 @@
gd
libgd3

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 27 12:05:59 UTC 2014 - meissner@suse.com
- split out libgd3, so libgd2 could be installed in parallel.
-------------------------------------------------------------------
Thu Apr 17 17:51:34 UTC 2014 - tchvatal@suse.com

24
gd.spec
View File

@@ -17,6 +17,9 @@
%define prjname libgd
%define lname libgd3
Name: gd
Version: 2.1.0
Release: 0
@@ -59,10 +62,20 @@ text, and multiple colors. It supports cut and paste from other images
and flood fills. It outputs PNG, JPEG, and WBMP (for wireless devices)
and is supported by PHP.
%package -n %lname
Summary: A Drawing Library for Programs That Use PNG and JPEG Output
Group: System/Libraries
%description -n %lname
Gd allows your code to quickly draw images complete with lines, arcs,
text, and multiple colors. It supports cut and paste from other images
and flood fills. It outputs PNG, JPEG, and WBMP (for wireless devices)
and is supported by PHP.
%package devel
Summary: Drawing Library for Programs with PNG and JPEG Output
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: %lname = %{version}
Requires: glibc-devel
Requires: libpng-devel
Requires: libtiff-devel
@@ -106,9 +119,9 @@ make check %{?_smp_mflags}
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
@@ -125,10 +138,15 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_bindir}/pngtogd
%{_bindir}/pngtogd2
%{_bindir}/webpng
%files -n %lname
%defattr(-,root,root)
%doc COPYING
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc COPYING
%{_bindir}/gdlib-config
%{_includedir}/*
%{_libdir}/*.so