libmng-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libmng
  3. Version: 1.0.10
  4. Release: 3%{?_dist_release}
  5. URL: http://www.libmng.com/
  6. Summary: A library of functions for manipulating MNG format files.
  7. License: AS IS
  8. Source: http://prdownloads.sourceforge.net/libmng/%{name}-%{version}.tar.gz
  9. Group: System Environment/Libraries
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildPrereq: glibc-devel zlib-devel libjpeg-devel lcms-devel
  12. BuildPrereq: automake autoconf libtool
  13. PreReq: ldconfig
  14. Requires: zlib libjpeg lcms
  15. %package devel
  16. Summary: Development tools for programs to manipulate MNG format files.
  17. Group: Development/Libraries
  18. Requires: %{name} = %{version}-%{release}
  19. Requires: zlib-devel libjpeg-devel lcms-devel
  20. %description
  21. libmng - library for reading, writing, displaying and examing
  22. Multiple-Image Network Graphics. MNG is the animation extension to the
  23. popular PNG image-format.
  24. %description devel
  25. The libmng-devel package contains the header files
  26. necessary for developing programs using the MNG
  27. (Multiple-Image Network Graphics) library.
  28. %package static
  29. Summary: Static libraries of %{name}
  30. Group: Development/Libraries
  31. Requires: %{name}-devel = %{version}-%{release}
  32. %description static
  33. The libmng-static package contains static libraries.
  34. # compat32
  35. %package -n compat32-%{name}
  36. Summary: A library of functions for manipulating MNG format files.
  37. Group: System Environment/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. %description -n compat32-%{name}
  40. libmng - library for reading, writing, displaying and examing
  41. Multiple-Image Network Graphics. MNG is the animation extension to the
  42. popular PNG image-format.
  43. %package -n compat32-%{name}-devel
  44. Summary: Development tools for programs to manipulate MNG format files.
  45. Group: Development/Libraries
  46. Requires: %{name}-devel = %{version}-%{release}
  47. Requires: compat32-%{name} = %{version}-%{release}
  48. Requires: compat32-zlib-devel compat32-libjpeg-devel compat32-lcms-devel
  49. %description -n compat32-%{name}-devel
  50. The libmng-devel package contains the header files
  51. necessary for developing programs using the MNG
  52. (Multiple-Image Network Graphics) library.
  53. %prep
  54. %setup -q
  55. %build
  56. # generate, but don't run
  57. #[ ! -x ./configure ] && ./autogen.sh
  58. cp -p makefiles/configure.in .
  59. cp -p makefiles/Makefile.am .
  60. libtoolize -f -c
  61. aclocal
  62. automake -a -c
  63. autoconf
  64. %configure --enable-shared --with-zlib --with-jpeg \
  65. --with-gnu-ld --with-lcms
  66. make
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %makeinstall
  70. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT
  73. %post -p /sbin/ldconfig
  74. %postun -p /sbin/ldconfig
  75. %post -n compat32-%{name} -p /sbin/ldconfig
  76. %postun -n compat32-%{name} -p /sbin/ldconfig
  77. %files
  78. %defattr(-,root,root)
  79. %doc CHANGES LICENSE README doc
  80. %{_libdir}/*.so.*
  81. %{_mandir}/man*/*
  82. %files devel
  83. %defattr(-,root,root)
  84. %{_includedir}/*
  85. %{_libdir}/*.so
  86. %files static
  87. %defattr(-,root,root)
  88. %{_libdir}/*.a
  89. # compat32
  90. %if %{build_compat32}
  91. %files -n compat32-%{name}
  92. %defattr(-,root,root)
  93. %{_libdir}/*.so.*
  94. %files -n compat32-%{name}-devel
  95. %defattr(-,root,root)
  96. %{_libdir}/*.so
  97. %endif
  98. %changelog
  99. * Mon Jul 20 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.10-3
  100. - added compat32 package for x86_64 arch support
  101. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.10-2
  102. - add libmng-static which is needed by tuxonice-userui
  103. - remove --disable-static
  104. - remove Obsoletes: libmng-static
  105. * Wed Mar 19 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.10-1
  106. - new upstream release
  107. - delete *.la
  108. - add --disable-static
  109. * Sat May 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.9-0vl1
  110. - updated to 1.0.9
  111. - added BuildPrereq: automake, autoconf, libtool
  112. * Sun May 15 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.7-0vl3
  113. - add BuildPrereq: lcms-devel and Requires: lcms
  114. - add Requires: zlib-devel libjpeg-devel lcms-devel to -devel pkg
  115. - add --with-lcms to configure option
  116. * Wed May 11 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.7-0vl2
  117. - rebuilt to fix unwanted dependencies with lcms (ppc only)
  118. * Thu Apr 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-0vl1
  119. - rebuild with new toolchains
  120. - updated to 1.0.7
  121. * Mon Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl2
  122. - License: AS IS
  123. - Obsoletes: libmng-static, and merge %%{prefix}/lib/*.a to -devel pkg
  124. - add PreReq: ldconfig
  125. - revised summaries and descriptions
  126. * Mon Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl1
  127. - source upgrade
  128. - add %%doc Changes LICENSE README doc
  129. - add Requires: %%{name} = %%{version}-%%{release} for devel package
  130. - add Requires: %%{name}-devel = %%{version}-%%{release} for static package
  131. * Sat Oct 13 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.3-0vl1
  132. - Update to 1.0.3
  133. - Build for VineSeed
  134. * Mon Jun 11 2001 net_hal <net_hal@cwa.bai.ne.jp>
  135. - First build for Vine2.1.5
  136. * Thu Apr 11 2001 Rex Dieter <rdieter@unl.edu> 1.0.0-0.6x.2
  137. - redhat6 backport based on rawhide's libmng-1.0.0-2
  138. * Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
  139. - remove bogus symlink trick
  140. * Mon Feb 26 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  141. - Update to 1.0.0 to make Qt 2.3.0 happy
  142. * Sat Jan 19 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  143. - 0.9.4, fixes MNG 1.0 spec compliance
  144. * Tue Dec 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  145. - 0.9.3
  146. - Add ldconfig calls in %%post and %%postun
  147. * Tue Dec 05 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  148. - added a clean section to the spec file
  149. * Tue Sep 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  150. - initial rpm