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
|
|
|
#
|
2023-03-09 06:47:45 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2022-05-04 11:09:05 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:22:25 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-04-28 11:28:29 +02:00
|
|
|
%define lname libmng2
|
2007-01-16 00:22:25 +01:00
|
|
|
Name: libmng
|
2015-04-28 11:28:29 +02:00
|
|
|
Version: 2.0.3
|
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++
|
2022-05-04 11:09:05 +02:00
|
|
|
URL: https://www.libmng.com/
|
|
|
|
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}-devel/%{version}/%{name}-%{version}.tar.xz
|
2015-04-28 11:28:29 +02:00
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch0: libmng-1.0.9-dont-leak-zlib-streams.diff
|
2014-05-20 11:22:30 +02:00
|
|
|
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
|
2023-03-09 06:47:45 +01:00
|
|
|
BuildRequires: pkgconfig
|
2012-01-31 11:48:34 +01:00
|
|
|
BuildRequires: zlib-devel
|
2023-03-09 06:47:45 +01:00
|
|
|
%{?suse_build_hwcaps_libs}
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library can handle MNG and JNG formats that contain animated
|
|
|
|
pictures. These formats should replace the GIF format.
|
|
|
|
|
2015-04-28 11:28:29 +02:00
|
|
|
%package -n %{lname}
|
2012-01-30 13:58:59 +01:00
|
|
|
Summary: Library for Support of MNG and JNG Formats
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-04-28 11:28:29 +02:00
|
|
|
%description -n %{lname}
|
2012-01-30 13:58:59 +01:00
|
|
|
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++
|
2015-04-28 11:28:29 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2012-01-31 11:48:34 +01:00
|
|
|
Requires: libjpeg-devel
|
2014-06-17 07:55:19 +02:00
|
|
|
Requires: liblcms2-devel
|
2012-01-31 11:48:34 +01:00
|
|
|
Requires: zlib-devel
|
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
|
2023-03-09 06:47:45 +01:00
|
|
|
%autosetup -p0
|
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
|
|
|
|
|
2015-04-28 11:28:29 +02:00
|
|
|
%cmake \
|
2014-05-20 11:22:30 +02:00
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2015-04-28 11:28:29 +02:00
|
|
|
-DMNG_INSTALL_DOC_DIR=%{_docdir}/%{name} \
|
2014-05-20 11:22:30 +02:00
|
|
|
-DBUILD_MAN=ON \
|
|
|
|
-DBUILD_STATIC_LIBS=OFF ..
|
2023-03-09 06:47:45 +01:00
|
|
|
%cmake_build
|
2007-01-16 00:22:25 +01:00
|
|
|
|
|
|
|
%install
|
2015-04-28 11:28:29 +02:00
|
|
|
%cmake_install
|
2007-01-16 00:22:25 +01:00
|
|
|
|
2015-04-28 11:28:29 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2007-07-21 18:02:59 +02:00
|
|
|
|
2015-04-28 11:28:29 +02:00
|
|
|
%files -n %{lname}
|
2023-03-09 06:47:45 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc 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
|
2012-01-31 11:48:34 +01:00
|
|
|
%{_includedir}/*.h
|
2015-04-28 11:28:29 +02:00
|
|
|
%{_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
|