SHA256
1
0
forked from pool/libmng
Ismail Dönmez 2012-01-31 10:48:34 +00:00 committed by Git OBS Bridge
parent 65ec057fe6
commit 994583fb9a

View File

@ -1,7 +1,7 @@
#
# spec file for package libmng
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,24 +16,25 @@
#
Name: libmng
%define lname libmng1
BuildRequires: libjpeg-devel liblcms-devel zlib-devel
License: GPLv2+ ; Other uncritical OpenSource License
Group: Development/Libraries/C and C++
Summary: Library for Support of MNG and JNG Formats
Version: 1.0.10
Release: 93
Release: 0
Summary: Library for Support of MNG and JNG Formats
License: Zlib
Group: Development/Libraries/C and C++
%define lname libmng1
BuildRequires: libjpeg-devel
BuildRequires: liblcms-devel
BuildRequires: zlib-devel
# bug437293
%ifarch ppc64
Obsoletes: libmng-64bit
%endif
#
URL: http://www.libmng.com/
Source0: libmng-%version.tar.bz2
Url: http://www.libmng.com/
Source0: libmng-%{version}.tar.bz2
Source1: baselibs.conf
Patch: libmng.diff
Patch1: libmng.diff
Patch2: libmng-no-jpeg.diff
Patch3: libmng-1.0.9-dont-leak-zlib-streams.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -42,28 +43,24 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
This library can handle MNG and JNG formats that contain animated
pictures. These formats should replace the GIF format.
Authors:
--------
Gerard Juyn <gerard@libmng.com>
%package -n %lname
Summary: Library for Support of MNG and JNG Formats
Group: System/Libraries
# O/P added 2011-11-29
Obsolets: libmng < %version-%release
Provides: libmng = %version-%release
Obsoletes: libmng < %{version}-%{release}
Provides: libmng = %{version}-%{release}
%description -n %lname
This library can handle MNG and JNG formats that contain animated
pictures. These formats should replace the GIF format.
%package devel
Requires: libjpeg-devel liblcms-devel zlib-devel
Requires: %lname = %version
Summary: Include Files and Libraries mandatory for Development.
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: %lname = %{version}
Requires: libjpeg-devel
Requires: liblcms-devel
Requires: zlib-devel
# bug437293
%ifarch ppc64
Obsoletes: libmng-devel-64bit
@ -76,33 +73,27 @@ pictures. These formats should replace the GIF format.
This package contains the static library and the header files.
Authors:
--------
Gerard Juyn <gerard@libmng.com>
%prep
%setup -q
%patch
%patch1
%patch3
%build
make %{?_smp_mflags} -f makefiles/makefile.linux _LIB=%_lib
make %{?_smp_mflags} -f makefiles/makefile.linux _LIB=%{_lib}
%install
make -f makefiles/makefile.linux DESTDIR=$RPM_BUILD_ROOT _LIB=%_lib install
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3/ $RPM_BUILD_ROOT/%{_mandir}/man5/
install -m 0644 doc/man/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3/
install -m 0644 doc/man/*.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
make -f makefiles/makefile.linux DESTDIR=%{buildroot} _LIB=%{_lib} install
mkdir -p %{buildroot}/%{_mandir}/man3/ %{buildroot}/%{_mandir}/man5/
install -m 0644 doc/man/*.3 %{buildroot}/%{_mandir}/man3/
install -m 0644 doc/man/*.5 %{buildroot}/%{_mandir}/man5/
#
# build a mini libmng
#
make -f makefiles/makefile.linux clean
patch -p0 < %PATCH2
make -f makefiles/makefile.linux _LIB=%_lib
install -m 0755 libmng.a $RPM_BUILD_ROOT/%_libdir/libmng-mini.a
%{__rm} -v %{buildroot}%_libdir/libmng.a
patch -p0 < %{PATCH2}
make -f makefiles/makefile.linux _LIB=%{_lib}
install -m 0644 libmng.a %{buildroot}/%{_libdir}/libmng-mini.a
rm -v %{buildroot}%{_libdir}/libmng.a
%post -n %lname -p /sbin/ldconfig
@ -115,9 +106,9 @@ install -m 0755 libmng.a $RPM_BUILD_ROOT/%_libdir/libmng-mini.a
%files devel
%defattr(-,root,root)
/usr/include/*.h
%doc %_mandir/*/*
%_libdir/libmng-mini.a
%_libdir/libmng.so
%{_includedir}/*.h
%doc %{_mandir}/*/*
%{_libdir}/libmng-mini.a
%{_libdir}/libmng.so
%changelog