Package init

This commit is contained in:
overweight 2019-09-30 10:57:00 -04:00
commit dc2f0312f8
2 changed files with 60 additions and 0 deletions

BIN
libmng-2.0.3.tar.gz Normal file

Binary file not shown.

60
libmng.spec Normal file
View File

@ -0,0 +1,60 @@
Name: libmng
Version: 2.0.3
Release: 9
Summary: Used for supporting Multiple-image Network Graphics
License: zlib
URL: http://www.libmng.com/
Source0: http://download.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
BuildRequires: autoconf lcms2-devel libjpeg-turbo-devel libtool zlib-devel
%description
LibMNG is a library which uesed for accessing graphics in Multi-image Network
Graphics and JPEG Network Graphics formats.
%package devel
Summary: Development files for the libmng
Requires: %{name} = %{version}-%{release}
Requires: libjpeg-devel zlib-devel
%description devel
This package contains development files.
%package help
Summary: Help documents for the libmng
%description help
This package contains help documents.
%prep
%autosetup -p1
%build
cp makefiles/Makefile.am .
autoreconf -if
%configure --enable-shared --with-zlib --with-jpeg --with-gnu-ld --with-lcms2
%make_build
%install
%make_install
%delete_la_and_a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc LICENSE
%{_libdir}/*.so.*
%files devel
%doc doc/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libmng.pc
%files help
%{_mandir}/man3/*
%{_mandir}/man5/*
%doc CHANGES README*
%changelog
* Tue Sep 17 2019 Yiru Wang <wangyiru1@huawei.com> - 2.0.3-9
- Pakcage init