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
|
|
|
#
|
2014-05-20 11:22:30 +02:00
|
|
|
# Copyright (c) 2014 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
|
2014-05-20 11:22:30 +02:00
|
|
|
Version: 2.0.2
|
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++
|
2014-05-20 11:22:30 +02:00
|
|
|
%define lname libmng2
|
|
|
|
BuildRequires: cmake
|
2012-01-31 11:48:34 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
2014-05-20 11:22:30 +02:00
|
|
|
BuildRequires: liblcms2-devel
|
|
|
|
BuildRequires: man
|
|
|
|
BuildRequires: pkg-config
|
2012-01-31 11:48:34 +01:00
|
|
|
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/
|
2014-05-20 11:22:30 +02:00
|
|
|
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}-devel/%{version}/%{name}-%{version}.tar.xz
|
2010-01-14 16:00:09 +01:00
|
|
|
Source1: baselibs.conf
|
2014-05-20 11:22:30 +02:00
|
|
|
Patch0: libmng-1.0.9-dont-leak-zlib-streams.diff
|
2007-01-16 00:22:25 +01:00
|
|
|
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
|
2014-05-20 11:22:30 +02:00
|
|
|
%patch0
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%build
|
2012-02-01 12:18:57 +01:00
|
|
|
# This is not zlib licensed and unused, just as a caution, bnc#744320
|
|
|
|
rm -rf contrib
|
|
|
|
|
2014-05-20 11:22:30 +02:00
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
export CFLAGS="$CXXFLAGS"
|
|
|
|
mkdir build && cd build && \
|
|
|
|
cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DMNG_INSTALL_DOC_DIR=%{_datadir}/doc/packages/%{name} \
|
|
|
|
-DBUILD_MAN=ON \
|
|
|
|
-DBUILD_STATIC_LIBS=OFF ..
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%install
|
2014-05-20 11:22:30 +02:00
|
|
|
%make_install -C build
|
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}/*/*
|
2014-05-20 11:22:30 +02:00
|
|
|
%doc %{_docdir}/libmng/
|
|
|
|
%{_libdir}/pkgconfig/libmng.pc
|
2012-01-31 11:48:34 +01:00
|
|
|
%{_libdir}/libmng.so
|
2014-05-20 11:22:30 +02:00
|
|
|
%{_datadir}/mng-2.0/
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2007-03-29 12:04:03 +02:00
|
|
|
%changelog
|