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