libid3tag-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # $Id: libid3tag.spec,v 1.9 2004/02/19 09:37:51 dude Exp $
  2. Summary: Library for reading and writing ID3v1 and ID3v2 tags.
  3. Summary(ja): ID3 タグを読み書きするためのライブラリ
  4. Name: libid3tag
  5. Version: 0.15.1b
  6. Release: 6%{_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. Packager: inagaki
  11. License: GPLv2
  12. URL: https://www.underbit.com/products/mad/
  13. Source: ftp://ftp.mars.org/pub/mpeg/%{name}-%{version}.tar.gz
  14. Patch0: libid3tag-0.15.1b-fix_overflow.patch
  15. Patch1: libid3tag-0.15.1b-id3v1-zero-padding.patch
  16. Patch2: libid3tag-0.15.1b-handle-unknown-encoding.patch
  17. Patch3: libid3tag-0.15.1b-id3v2-endless-loop.patch
  18. # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869598
  19. Patch4: libid3tag-0.15.1b-gperf-size_t.patch
  20. Buildroot: %{_tmppath}/%{name}-%{version}-root
  21. BuildRequires: zlib-devel
  22. BuildRequires: gcc-c++
  23. BuildRequires: gperf
  24. Conflicts: libmad < 0.15.1b
  25. %description
  26. A library for reading and (eventually) writing ID3 tags, both ID3v1 and the
  27. various versions of ID3v2.
  28. %package devel
  29. Summary: Header and library for developing programs that will use libid3tag.
  30. Summary(ja): libid3tag を使うプログラムを開発するためのライブラリ
  31. Group: programming
  32. Requires: %{name} = %{version}
  33. Requires: zlib-devel
  34. %description devel
  35. A library for reading and (eventually) writing ID3 tags, both ID3v1 and the
  36. various versions of ID3v2.
  37. This package contains the header file as well as the static library needed
  38. to develop programs that will use libid3tag for ID3 tar reading and writing.
  39. %debug_package
  40. %prep
  41. %setup -q
  42. %patch0 -p0 -b .CVE-2008-2109
  43. %patch1 -p1 -b .zero-padding
  44. %patch2 -p1 -b .unknown-encoding
  45. %patch3 -p0 -b .endless-loop
  46. %patch4 -p1 -b .gperf
  47. touch NEWS AUTHORS ChangeLog
  48. # Force these files to be regenerated from the .gperf sources.
  49. rm compat.c frametype.c
  50. cat << EOF > id3tag.pc
  51. prefix=%{_prefix}
  52. exec_prefix=%{_prefix}
  53. libdir=%{_libdir}
  54. includedir=%{_includedir}
  55. Name: id3tag
  56. Description: ID3 tag library
  57. Requires:
  58. Version: %{version}
  59. Libs: -L%{_libdir} -lid3tag -lz
  60. Cflags: -I%{_includedir}
  61. EOF
  62. %build
  63. autoreconf -vfi
  64. %configure --disable-static
  65. make %{_smp_mflags}
  66. %install
  67. rm -rf %{buildroot}
  68. %makeinstall
  69. rm -vf $RPM_BUILD_ROOT%{_libdir}/*.la
  70. install -m 644 -D id3tag.pc %{buildroot}%{_libdir}/pkgconfig/id3tag.pc
  71. %clean
  72. rm -rf %{buildroot}
  73. %post -p /sbin/ldconfig
  74. %postun -p /sbin/ldconfig
  75. %files
  76. %defattr(-, root, root)
  77. %license COPYRIGHT
  78. %doc CHANGES COPYING CREDITS README TODO
  79. %{_libdir}/*.so.*
  80. %files devel
  81. %defattr(-, root, root)
  82. %{_libdir}/*.so
  83. %{_libdir}/pkgconfig/*.pc
  84. %{_includedir}/*
  85. %changelog
  86. * Sun Sep 13 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.15.1b-6
  87. - dropped Patch10.
  88. - imported Patch0-4 from rawhide.
  89. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.15.1b-5
  90. - rebuild with VineSeed environment
  91. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.15.1b-4
  92. - rebuilt with rpm-4.8.1 for pkg-config
  93. * Fri Jul 3 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.15.1b-3
  94. - spec in UTF-8
  95. - added --disable-static option to %%configure
  96. * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.15.1b-2vl5
  97. - rebuilt for VineSeed
  98. * Sat Jun 07 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 0.15.1b-2vl4
  99. - add patch10 for fix CVE-2008-2109 (ID3_FIELD_TYPE_STRINGLIST field)
  100. - new versioning policy
  101. - add Vendor/Distribution tag
  102. * Thu Mar 11 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.15.1b-1vl1
  103. - based on freshrpms package
  104. - rebuild for Vine Linux
  105. - added Japanese summary
  106. - added %post and %postun script
  107. * Thu Feb 19 2004 Matthias Saou <http://freshrpms.net/> - 0.15.1b-1.fr
  108. - Update to 0.15.1b.
  109. * Sun Nov 2 2003 Matthias Saou <http://freshrpms.net/> - 0.15.0b-4.fr
  110. - Rebuild for Fedora Core 1.
  111. * Wed Sep 3 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
  112. - Fixed the -I in the pkgconfig file, thanks to Michael A. Peters.
  113. * Thu Aug 28 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
  114. - Added id3tag.pc required by gstreamer-plugins.
  115. - Added zlib-devel dep to the devel package.
  116. * Mon Jul 21 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
  117. - Added zlib-devel build dep.
  118. * Wed Jun 25 2003 Matthias Saou <matthias.saou@est.une.marmotte.net>
  119. - Initial release of 0.15.0b.