zziplib-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. Name: zziplib
  2. Summary: Lightweight library to easily extract data from zip files
  3. Version: 0.13.62
  4. Release: 1%{?_dist_release}
  5. License: LGPLv2+ or MPLv1.1
  6. Group: System Environment/Libraries
  7. URL: http://zziplib.sourceforge.net/
  8. Source: http://dl.sf.net/zziplib/zziplib-%{version}.tar.bz2
  9. Patch0: zziplib-0.13.59-multilib.patch
  10. Patch1: zziplib-0.13.62-xmlto.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: perl
  13. BuildRequires: python
  14. BuildRequires: zip
  15. BuildRequires: xmlto
  16. BuildRequires: zlib-devel
  17. BuildRequires: SDL-devel
  18. BuildRequires: pkgconfig
  19. #BuildRequires: autoconf
  20. #BuildRequires: automake
  21. %description
  22. The zziplib library is intentionally lightweight, it offers the ability to
  23. easily extract data from files archived in a single zip file. Applications
  24. can bundle files into a single zip archive and access them. The implementation
  25. is based only on the (free) subset of compression with the zlib algorithm
  26. which is actually used by the zip/unzip tools.
  27. %package utils
  28. Summary: Utilities for the zziplib library
  29. Group: Applications/Archiving
  30. Requires: %{name} = %{version}-%{release}
  31. %description utils
  32. The zziplib library is intentionally lightweight, it offers the ability to
  33. easily extract data from files archived in a single zip file. Applications
  34. can bundle files into a single zip archive and access them. The implementation
  35. is based only on the (free) subset of compression with the zlib algorithm
  36. which is actually used by the zip/unzip tools.
  37. This packages contains all the utilities that come with the zziplib library.
  38. %package devel
  39. Summary: Development files for the zziplib library
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: pkgconfig
  43. Requires: zlib-devel
  44. Requires: SDL-devel
  45. %description devel
  46. The zziplib library is intentionally lightweight, it offers the ability to
  47. easily extract data from files archived in a single zip file. Applications
  48. can bundle files into a single zip archive and access them. The implementation
  49. is based only on the (free) subset of compression with the zlib algorithm
  50. which is actually used by the zip/unzip tools.
  51. This package contains files required to build applications that will use the
  52. zziplib library.
  53. %prep
  54. %setup -q
  55. %patch0 -p1
  56. %patch1 -p1
  57. autoreconf -f -i
  58. # Save the common patched _config.h file to overwrite the generated one
  59. %{__cp} -a zzip/_config.h _config.h
  60. %build
  61. %configure \
  62. --disable-static \
  63. --enable-sdl \
  64. --enable-frame-pointer
  65. # Remove rpath on 64bit archs
  66. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' */libtool
  67. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' */libtool
  68. %{__make} %{?_smp_mflags}
  69. %install
  70. %{__rm} -rf %{buildroot}
  71. %{__make} install DESTDIR=%{buildroot}
  72. # Overwrite the platform specific _config.h with our own modified common one
  73. %{__rm} -f %{buildroot}%{_includedir}/zzip/_config.h
  74. %{__install} -p -m 0644 _config.h %{buildroot}%{_includedir}/zzip/_config.h
  75. %clean
  76. %{__rm} -rf %{buildroot}
  77. %post -p /sbin/ldconfig
  78. %postun -p /sbin/ldconfig
  79. %files
  80. %defattr(-,root,root,-)
  81. %doc docs/COPYING* ChangeLog README TODO
  82. %{_libdir}/*.so.*
  83. %files utils
  84. %defattr(-,root,root,-)
  85. %{_bindir}/*
  86. %files devel
  87. %defattr(-,root,root,-)
  88. %doc docs/README.SDL docs/*.htm
  89. %{_includedir}/*
  90. %exclude %{_libdir}/*.la
  91. %{_libdir}/*.so
  92. %{_libdir}/pkgconfig/*.pc
  93. %{_datadir}/aclocal/*.m4
  94. %{_mandir}/man3/*
  95. %changelog
  96. * Thu Oct 02 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.13.62-1
  97. - updated to 0.13.62
  98. - added Patch1 to build xmlto-0.0.26
  99. - moved main package to System Environment/Libraries Group
  100. * Fri Apr 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.13.59-1
  101. - initial build based on Fedora rawhide
  102. * Thu Dec 9 2010 Hans de Goede <hdegoede@redhat.com> 0.13.59-2
  103. - Fix broken zzip/_config.h which causes apps using zziplib to fail to compile
  104. * Sat Dec 4 2010 Matthias Saou <http://freshrpms.net/> 0.13.59-1
  105. - Update to 0.13.59.
  106. - Remove no longer needed 'open' patch.
  107. - Rebase the multilib patch, still required.
  108. - Re-enable _smp_mflags, build works again with it apparently.
  109. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-8
  110. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  111. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.49-7
  112. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  113. * Mon Dec 22 2008 Matthias Saou <http://freshrpms.net/> 0.13.49-6
  114. - Patch _config.h to make it identical for 32bit and 64bit archs (#343521).
  115. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org>
  116. - Autorebuild for GCC 4.3
  117. * Wed Aug 8 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-4
  118. - Include patch to fix fd.open calls with recent glibc.
  119. - Disable _smp_mflags since the docs fail to build.
  120. * Fri Aug 3 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-3
  121. - Update License field.
  122. * Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-2
  123. - Disable static lib build instead of excluding it later.
  124. - Remove rpath on 64bit archs.
  125. - Switch to using DESTDIR install method.
  126. * Mon Mar 26 2007 Matthias Saou <http://freshrpms.net/> 0.13.49-1
  127. - Update to 0.13.49 to fix CVE-2007-1614 (rhbz #233700).
  128. - Include new man3 pages to the devel sub-package.
  129. * Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 0.13.47-1
  130. - Update to 0.13.47.
  131. - FC6 rebuild.
  132. * Mon Jul 24 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-3
  133. - Split off -utils sub-package (#199467). Could have been plain "zzip"?
  134. - Have sub-packages require exact release too.
  135. - Build require automake to make the aclocal-1.9 check happy.
  136. - Use --enable-frame-pointer otherwise -g gets removed from the CFLAGS.
  137. * Mon Mar 6 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-2
  138. - FC5 rebuild.
  139. * Thu Feb 9 2006 Matthias Saou <http://freshrpms.net/> 0.13.45-1
  140. - Update to 0.13.45.
  141. - Exclude static library.
  142. * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.13.38-2
  143. - rebuild on all arches
  144. * Tue Apr 5 2005 Matthias Saou <http://freshrpms.net/> 0.13.38-1
  145. - Update to 0.13.38, fixes gcc4 compile issues (Adrian Reber).
  146. * Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-2
  147. - Bump release to provide Extras upgrade path.
  148. * Tue Jun 8 2004 Matthias Saou <http://freshrpms.net/> 0.13.36-1
  149. - Initial RPM release.