libmng-vl.spec 5.5 KB

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