Marcus Meissner 2014-06-27 11:20:32 +00:00 committed by Git OBS Bridge
parent cab4371157
commit 2a9bfb3a04

15
gd.spec
View File

@ -17,6 +17,9 @@
%define prjname libgd %define prjname libgd
%define lname libgd3
Name: gd Name: gd
Version: 2.1.0 Version: 2.1.0
Release: 0 Release: 0
@ -59,10 +62,14 @@ 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 flood fills. It outputs PNG, JPEG, and WBMP (for wireless devices)
and is supported by PHP. and is supported by PHP.
%package -n %lname
Summary: A Drawing Library for Programs That Use PNG and JPEG Output
Group: System/Libraries
%package devel %package devel
Summary: Drawing Library for Programs with PNG and JPEG Output Summary: Drawing Library for Programs with PNG and JPEG Output
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %lname = %{version}
Requires: glibc-devel Requires: glibc-devel
Requires: libpng-devel Requires: libpng-devel
Requires: libtiff-devel Requires: libtiff-devel
@ -106,9 +113,9 @@ make check %{?_smp_mflags}
make DESTDIR=%{buildroot} install %{?_smp_mflags} make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print 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 %files
%defattr(-,root,root) %defattr(-,root,root)
@ -125,6 +132,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_bindir}/pngtogd %{_bindir}/pngtogd
%{_bindir}/pngtogd2 %{_bindir}/pngtogd2
%{_bindir}/webpng %{_bindir}/webpng
%files -n %lname
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel