2007-01-16 00:22:25 +01:00
|
|
|
#
|
2012-01-30 13:58:59 +01:00
|
|
|
# spec file for package libmng
|
2007-01-16 00:22:25 +01:00
|
|
|
#
|
2012-01-31 11:48:34 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:25 +01:00
|
|
|
#
|
2009-01-08 18:38:51 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:22:25 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libmng
|
2007-07-21 18:02:59 +02:00
|
|
|
Version: 1.0.10
|
2012-01-31 11:48:34 +01:00
|
|
|
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
|
2009-01-08 18:38:51 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libmng-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2012-01-31 11:48:34 +01:00
|
|
|
Url: http://www.libmng.com/
|
|
|
|
Source0: libmng-%{version}.tar.bz2
|
2010-01-14 16:00:09 +01:00
|
|
|
Source1: baselibs.conf
|
2012-01-31 11:48:34 +01:00
|
|
|
Patch1: libmng.diff
|
2007-01-16 00:22:25 +01:00
|
|
|
Patch2: libmng-no-jpeg.diff
|
|
|
|
Patch3: libmng-1.0.9-dont-leak-zlib-streams.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library can handle MNG and JNG formats that contain animated
|
|
|
|
pictures. These formats should replace the GIF format.
|
|
|
|
|
2012-01-30 13:58:59 +01:00
|
|
|
%package -n %lname
|
|
|
|
Summary: Library for Support of MNG and JNG Formats
|
|
|
|
Group: System/Libraries
|
|
|
|
# O/P added 2011-11-29
|
2012-01-31 11:48:34 +01:00
|
|
|
Obsoletes: libmng < %{version}-%{release}
|
|
|
|
Provides: libmng = %{version}-%{release}
|
2012-01-30 13:58:59 +01:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
This library can handle MNG and JNG formats that contain animated
|
|
|
|
pictures. These formats should replace the GIF format.
|
|
|
|
|
2007-01-16 00:22:25 +01:00
|
|
|
%package devel
|
2012-01-31 11:48:34 +01:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2007-01-16 00:22:25 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-01-31 11:48:34 +01:00
|
|
|
Requires: %lname = %{version}
|
|
|
|
Requires: libjpeg-devel
|
|
|
|
Requires: liblcms-devel
|
|
|
|
Requires: zlib-devel
|
2009-01-08 18:38:51 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libmng-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This library can handle MNG and JNG formats which contain animated
|
|
|
|
pictures. These formats should replace the GIF format.
|
|
|
|
|
|
|
|
This package contains the static library and the header files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-01-31 11:48:34 +01:00
|
|
|
%patch1
|
2007-01-16 00:22:25 +01:00
|
|
|
%patch3
|
|
|
|
|
|
|
|
%build
|
2012-01-31 11:48:34 +01:00
|
|
|
make %{?_smp_mflags} -f makefiles/makefile.linux _LIB=%{_lib}
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%install
|
2012-01-31 11:48:34 +01:00
|
|
|
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/
|
2007-01-16 00:22:25 +01:00
|
|
|
#
|
|
|
|
# build a mini libmng
|
|
|
|
#
|
|
|
|
make -f makefiles/makefile.linux clean
|
2012-01-31 11:48:34 +01:00
|
|
|
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
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2012-01-30 13:58:59 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2007-07-21 18:02:59 +02:00
|
|
|
|
2012-01-30 13:58:59 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-07-21 18:02:59 +02:00
|
|
|
|
2012-01-30 13:58:59 +01:00
|
|
|
%files -n %lname
|
2007-01-16 00:22:25 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE README doc/doc.readme doc/libmng.txt
|
2009-06-12 17:28:14 +02:00
|
|
|
%{_libdir}/libmng.so.*
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-01-31 11:48:34 +01:00
|
|
|
%{_includedir}/*.h
|
|
|
|
%doc %{_mandir}/*/*
|
|
|
|
%{_libdir}/libmng-mini.a
|
|
|
|
%{_libdir}/libmng.so
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2007-03-29 12:04:03 +02:00
|
|
|
%changelog
|