123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- Name: libmng
- Version: 1.0.10
- Release: 3%{?_dist_release}
- URL: http://www.libmng.com/
- Summary: A library of functions for manipulating MNG format files.
- License: AS IS
- Source: http://prdownloads.sourceforge.net/libmng/%{name}-%{version}.tar.gz
- Group: System Environment/Libraries
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildPrereq: glibc-devel zlib-devel libjpeg-devel lcms-devel
- BuildPrereq: automake autoconf libtool
- PreReq: ldconfig
- Requires: zlib libjpeg lcms
- %package devel
- Summary: Development tools for programs to manipulate MNG format files.
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: zlib-devel libjpeg-devel lcms-devel
- %description
- libmng - library for reading, writing, displaying and examing
- Multiple-Image Network Graphics. MNG is the animation extension to the
- popular PNG image-format.
- %description devel
- The libmng-devel package contains the header files
- necessary for developing programs using the MNG
- (Multiple-Image Network Graphics) library.
- %package static
- Summary: Static libraries of %{name}
- Group: Development/Libraries
- Requires: %{name}-devel = %{version}-%{release}
- %description static
- The libmng-static package contains static libraries.
- # compat32
- %package -n compat32-%{name}
- Summary: A library of functions for manipulating MNG format files.
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- %description -n compat32-%{name}
- libmng - library for reading, writing, displaying and examing
- Multiple-Image Network Graphics. MNG is the animation extension to the
- popular PNG image-format.
- %package -n compat32-%{name}-devel
- Summary: Development tools for programs to manipulate MNG format files.
- Group: Development/Libraries
- Requires: %{name}-devel = %{version}-%{release}
- Requires: compat32-%{name} = %{version}-%{release}
- Requires: compat32-zlib-devel compat32-libjpeg-devel compat32-lcms-devel
- %description -n compat32-%{name}-devel
- The libmng-devel package contains the header files
- necessary for developing programs using the MNG
- (Multiple-Image Network Graphics) library.
- %prep
- %setup -q
- %build
- # generate, but don't run
- #[ ! -x ./configure ] && ./autogen.sh
- cp -p makefiles/configure.in .
- cp -p makefiles/Makefile.am .
- libtoolize -f -c
- aclocal
- automake -a -c
- autoconf
- %configure --enable-shared --with-zlib --with-jpeg \
- --with-gnu-ld --with-lcms
- make
- %install
- rm -rf $RPM_BUILD_ROOT
- %makeinstall
- rm $RPM_BUILD_ROOT%{_libdir}/*.la
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %post -n compat32-%{name} -p /sbin/ldconfig
- %postun -n compat32-%{name} -p /sbin/ldconfig
- %files
- %defattr(-,root,root)
- %doc CHANGES LICENSE README doc
- %{_libdir}/*.so.*
- %{_mandir}/man*/*
- %files devel
- %defattr(-,root,root)
- %{_includedir}/*
- %{_libdir}/*.so
- %files static
- %defattr(-,root,root)
- %{_libdir}/*.a
- # compat32
- %if %{build_compat32}
- %files -n compat32-%{name}
- %defattr(-,root,root)
- %{_libdir}/*.so.*
- %files -n compat32-%{name}-devel
- %defattr(-,root,root)
- %{_libdir}/*.so
- %endif
- %changelog
- * Mon Jul 20 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.10-3
- - added compat32 package for x86_64 arch support
- * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.10-2
- - add libmng-static which is needed by tuxonice-userui
- - remove --disable-static
- - remove Obsoletes: libmng-static
- * Wed Mar 19 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.10-1
- - new upstream release
- - delete *.la
- - add --disable-static
- * Sat May 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.9-0vl1
- - updated to 1.0.9
- - added BuildPrereq: automake, autoconf, libtool
- * Sun May 15 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.7-0vl3
- - add BuildPrereq: lcms-devel and Requires: lcms
- - add Requires: zlib-devel libjpeg-devel lcms-devel to -devel pkg
- - add --with-lcms to configure option
- * Wed May 11 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.7-0vl2
- - rebuilt to fix unwanted dependencies with lcms (ppc only)
- * Thu Apr 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-0vl1
- - rebuild with new toolchains
- - updated to 1.0.7
- * Mon Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl2
- - License: AS IS
- - Obsoletes: libmng-static, and merge %%{prefix}/lib/*.a to -devel pkg
- - add PreReq: ldconfig
- - revised summaries and descriptions
- * Mon Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl1
- - source upgrade
- - add %%doc Changes LICENSE README doc
- - add Requires: %%{name} = %%{version}-%%{release} for devel package
- - add Requires: %%{name}-devel = %%{version}-%%{release} for static package
- * Sat Oct 13 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.3-0vl1
- - Update to 1.0.3
- - Build for VineSeed
- * Mon Jun 11 2001 net_hal <net_hal@cwa.bai.ne.jp>
- - First build for Vine2.1.5
- * Thu Apr 11 2001 Rex Dieter <rdieter@unl.edu> 1.0.0-0.6x.2
- - redhat6 backport based on rawhide's libmng-1.0.0-2
- * Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
- - remove bogus symlink trick
- * Mon Feb 26 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- - Update to 1.0.0 to make Qt 2.3.0 happy
- * Sat Jan 19 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- - 0.9.4, fixes MNG 1.0 spec compliance
- * Tue Dec 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - 0.9.3
- - Add ldconfig calls in %%post and %%postun
- * Tue Dec 05 2000 Florian La Roche <Florian.LaRoche@redhat.de>
- - added a clean section to the spec file
- * Tue Sep 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- - initial rpm
|