libmng-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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.3
  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. * Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1
  108. - updated to 2.0.3.
  109. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.2-1
  110. - update to 2.0.2
  111. - change BuildRequires; lcms2-devel instead of lcms-devel
  112. * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.10-4
  113. - rebuilt with new toolchain
  114. - s/BuildPrereq/BuildRequires/g
  115. * Mon Jul 20 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.10-3
  116. - added compat32 package for x86_64 arch support
  117. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.10-2
  118. - add libmng-static which is needed by tuxonice-userui
  119. - remove --disable-static
  120. - remove Obsoletes: libmng-static
  121. * Wed Mar 19 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.10-1
  122. - new upstream release
  123. - delete *.la
  124. - add --disable-static
  125. * Sat May 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.9-0vl1
  126. - updated to 1.0.9
  127. - added BuildPrereq: automake, autoconf, libtool
  128. * Sun May 15 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.7-0vl3
  129. - add BuildPrereq: lcms-devel and Requires: lcms
  130. - add Requires: zlib-devel libjpeg-devel lcms-devel to -devel pkg
  131. - add --with-lcms to configure option
  132. * Wed May 11 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.7-0vl2
  133. - rebuilt to fix unwanted dependencies with lcms (ppc only)
  134. * Thu Apr 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-0vl1
  135. - rebuild with new toolchains
  136. - updated to 1.0.7
  137. * Tue Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl2
  138. - License: AS IS
  139. - Obsoletes: libmng-static, and merge %%{prefix}/lib/*.a to -devel pkg
  140. - add PreReq: ldconfig
  141. - revised summaries and descriptions
  142. * Tue Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl1
  143. - source upgrade
  144. - add %%doc Changes LICENSE README doc
  145. - add Requires: %%{name} = %%{version}-%%{release} for devel package
  146. - add Requires: %%{name}-devel = %%{version}-%%{release} for static package
  147. * Sat Oct 13 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.3-0vl1
  148. - Update to 1.0.3
  149. - Build for VineSeed
  150. * Mon Jun 11 2001 net_hal <net_hal@cwa.bai.ne.jp>
  151. - First build for Vine2.1.5
  152. * Wed Apr 11 2001 Rex Dieter <rdieter@unl.edu> 1.0.0-0.6x.2
  153. - redhat6 backport based on rawhide's libmng-1.0.0-2
  154. * Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
  155. - remove bogus symlink trick
  156. * Mon Feb 26 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  157. - Update to 1.0.0 to make Qt 2.3.0 happy
  158. * Fri Jan 19 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  159. - 0.9.4, fixes MNG 1.0 spec compliance
  160. * Tue Dec 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  161. - 0.9.3
  162. - Add ldconfig calls in %%post and %%postun
  163. * Tue Dec 05 2000 Florian La Roche <Florian.LaRoche@redhat.de>
  164. - added a clean section to the spec file
  165. * Tue Sep 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  166. - initial rpm