libmng-vl.spec 5.8 KB

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