Package id3lib: Specfile

Name: id3lib
Version: 3.8.3
Release: alt10

Summary: A software library for manipulating ID3v1 and ID3v2 tags
License: LGPL
Group: System/Libraries
Url: http://id3lib.sourceforge.net
Packager: Repocop Q. A. Robot <repocop@altlinux.org>

Source: http://prdownloads.sourceforge.net/%name/%name-%version.tar.bz2
Patch1: %name-3.8.0-no_included_zlib.patch
Patch2: %name-3.8.2-doxygen.patch
Patch3: id3lib-3.8.3-libadd.patch
Patch4: id3lib-3.8.3-SA26536-fix.diff
Patch5: id3lib-3.8.3-gcc-4.3.patch
Patch6: id3lib-3.8.3-utf16.patch

%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}

# Automatically added by buildreq on Wed Dec 03 2003
BuildRequires: doxygen gcc-c++ libstdc++-devel zlib-devel

Summary(ru_RU.CP1251): \xc1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe0 \xe4\xeb\xff \xf0\xe0\xe1\xee\xf2\xfb \xf1 \xf2\xe5\xe3\xe0\xec\xe8 ID3v1 \xe8 ID3v2

%description
This package provides a software library for manipulating ID3v1 and ID3v2 tags.
It provides a convenient interface for software developers to include
standards-compliant ID3v1/2 tagging capabilities in their applications.
Features include identification of valid tags, automatic size conversions,
(re)synchronisation of tag frames, seamless tag (de)compression, and optional
padding facilities.

%description -l ru_RU.CP1251
\xcf\xe0\xea\xe5\xf2 \xf1\xee\xe4\xe5\xf0\xe6\xe8\xf2 \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xf3 \xe4\xeb\xff \xf0\xe0\xe1\xee\xf2\xfb \xf1 \xf2\xe5\xe3\xe0\xec\xe8 ID3v1 \xe8 ID3v2.
\xd0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xf7\xe8\xea\xe0\xec \xef\xf0\xe5\xe4\xee\xf1\xf2\xe0\xe2\xeb\xff\xe5\xf2\xf1\xff \xf3\xe4\xee\xe1\xed\xfb\xe9 \xe8\xed\xf2\xe5\xf0\xf4\xe5\xe9\xf1, \xee\xf2\xe2\xe5\xf7\xe0\xfe\xf9\xe8\xe9
\xf1\xf2\xe0\xed\xe4\xe0\xf0\xf2\xe0\xec ID3v1/2, \xe4\xeb\xff \xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed\xe8\xff \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe8 \xe2 \xef\xf0\xe8\xeb\xee\xe6\xe5\xed\xe8\xff\xf5.
\xce\xf1\xed\xee\xe2\xed\xfb\xec\xe8 \xf4\xf3\xed\xea\xf6\xe8\xff\xec\xe8 \xff\xe2\xeb\xff\xfe\xf2\xf1\xff \xef\xf0\xee\xe2\xe5\xf0\xea\xe0 \xf2\xe5\xe3\xee\xe2, \xe0\xe2\xf2\xee\xec\xe0\xf2\xe8\xf7\xe5\xf1\xea\xee\xe5 \xef\xf0\xe5\xee\xe1\xf0\xe0\xe7\xee\xe2\xe0\xed\xe8\xe5
\xf0\xe0\xe7\xec\xe5\xf0\xe0, \xf1\xe8\xed\xf5\xf0\xee\xed\xe8\xe7\xe0\xf6\xe8\xff \xf4\xf0\xe5\xe9\xec\xee\xe2 \xf2\xe5\xe3\xee\xe2 \xe8 \xef\xf0\xee\xe7\xf0\xe0\xf7\xed\xe0\xff (\xe4\xe5)\xea\xee\xec\xef\xf0\xe5\xf1\xf1\xe8\xff \xf2\xe5\xe3\xee\xe2.

%package utils
Summary: A set of small applications that use the id3lib library.
Group: Sound
Requires: %name = %version-%release

%description utils
This package contains simple applications that make use of
id3lib, a software library for ID3v1 and ID3v2 tag manipulation.

%description utils -l ru_RU.CP1251
\xc2 \xef\xe0\xea\xe5\xf2\xe5 \xed\xe0\xf5\xee\xe4\xff\xf2\xf1\xff \xef\xf0\xe8\xec\xe5\xf0\xfb \xef\xf0\xee\xe3\xf0\xe0\xec\xec, \xe8\xf1\xef\xee\xeb\xfc\xe7\xf3\xfe\xf9\xe8\xf5 \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xf3 id3lib.

%package devel
Summary: Headers for developing programs that will use id3lib
Group: Development/C
PreReq: %name = %version-%release
Requires: libpopt-devel, libstdc++-devel, zlib-devel

%description devel
This package contains the headers and API documentation that programmers
will need to develop applications which will use id3lib, the software
library for ID3v1 and ID3v2 tag manipulation.

%description devel -l ru_RU.CP1251
\xc2 \xfd\xf2\xee\xec \xef\xe0\xea\xe5\xf2\xe5 \xed\xe0\xf5\xee\xe4\xff\xf2\xf1\xff \xf4\xe0\xe9\xeb\xfb \xe8 \xe4\xee\xea\xf3\xec\xe5\xed\xf2\xe0\xf6\xe8\xff \xef\xee API \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe8,
\xed\xe5\xee\xe1\xf5\xee\xe4\xe8\xec\xfb\xe5 \xe4\xeb\xff \xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed\xe8\xff \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe8 id3lib \xe2 \xf0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xea\xe5 \xef\xf0\xe8\xeb\xee\xe6\xe5\xed\xe8\xe9.

%package devel-static
Summary: Headers for developing programs that will use id3lib
Group: Development/C
PreReq: %name-devel = %version-%release

%description devel-static
This package contains development libraries required for packaging
statically linked software with id3lib.

%description devel-static -l ru_RU.CP1251
\xc2 \xfd\xf2\xee\xec \xef\xe0\xea\xe5\xf2\xe5 \xed\xe0\xf5\xee\xe4\xff\xf2\xf1\xff \xf1\xf2\xe0\xf2\xe8\xf7\xe5\xf1\xea\xe8\xe5 \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe8, \xed\xe5\xee\xe1\xf5\xee\xe4\xe8\xec\xfb\xe5
\xe4\xeb\xff \xf0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xea\xe8 \xf1\xf2\xe0\xf2\xe8\xf7\xe5\xf1\xea\xe8\xf5 \xef\xf0\xe8\xeb\xee\xe6\xe5\xed\xe8\xe9, \xe8\xf1\xef\xee\xeb\xfc\xe7\xf3\xfe\xf9\xe8\xf5 id3lib.

%prep
%setup -q
rm -rfv zlib
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p2
%patch5 -p1
%patch6 -p1

%build
autoconf
%{?!_enable_static:export lt_cv_prog_cc_static_works=no}
export ac_cv_lib_z_uncompress=yes
%configure %{subst_enable static} 
sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool
%make_build
%make_build docs

gzip ChangeLog

%install
%makeinstall

%files
%_libdir/*.so.*
%doc AUTHORS ChangeLog.gz HISTORY NEWS README THANKS TODO

%files utils
%_bindir/*

%files devel
%_includedir/*
#_libdir/*.la
%_libdir/*.so
%doc doc/*.{html,png,jpg,gif,txt,ico,php,css} doc/api

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog
* Sat Jul 01 2017 Ildar Mulyukov <ildar@altlinux.ru> 3.8.3-alt10
- add id3lib-3.8.3-utf16.patch (fixes #33607)

* Fri Apr 08 2016 Gleb F-Malinovskiy (qa) <qa_glebfm@altlinux.org> 3.8.3-alt9.qa1
- Rebuilt for gcc5 C++11 ABI.

* Wed Dec 14 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.3-alt9
- Fixed RPATH

* Sun Mar 20 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.3-alt8
- Rebuilt for debuginfo

* Thu Oct 28 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.3-alt7
- Rebuilt for soname set-versions

* Wed Nov 04 2009 Igor Vlasenko <viy@altlinux.ru> 3.8.3-alt6.1
- NMU (by repocop): the following fixes applied:
  * post_ldconfig for id3lib
  * postun_ldconfig for id3lib

* Mon Oct 27 2008 Pavlov Konstantin <thresh@altlinux.ru> 3.8.3-alt6
- Fix FTBFS with gcc 4.3.

* Fri Sep 14 2007 Pavlov Konstantin <thresh@altlinux.ru> 3.8.3-alt5
- Fixed CVE-2007-4460 (SA26536):
  Insecure temporary file privilege escalation.

* Sat Jan 06 2007 Pavlov Konstantin <thresh@altlinux.ru> 3.8.3-alt4
- Compressed ChangeLog (fixes #8976).

* Fri Jun 02 2006 Pavlov Konstantin <thresh@altlinux.ru> 3.8.3-alt3
- Fixed build.

* Tue Jan 18 2005 ALT QA Team Robot <qa-robot@altlinux.org> 3.8.3-alt2.1
- Rebuilt with libstdc++.so.6.

* Wed Dec 03 2003 Alexey Tourbin <at@altlinux.ru> 3.8.3-alt2
- Do not package .la files.
- Do not package %name-devel-static by default.

* Fri Mar 07 2003 Andrey Astafiev <andrei@altlinux.ru> 3.8.3-alt1
- 3.8.3

* Mon Jan 13 2003 Andrey Astafiev <andrei@altlinux.ru> 3.8.2-alt1
- 3.8.2

* Wed Nov 13 2002 Andrey Astafiev <andrei@altlinux.ru> 3.8.1-alt1
- 3.8.1
- fixed build of api documentation.

* Tue Sep 24 2002 Yuri N. Sedunov <aris@altlinux.ru> 3.8.0-alt3
- rebuilt with gcc-3.2 (%name-mdk-gcc3.2_cvs.patch)

* Mon Aug 12 2002 Andrey Astafiev <andrei@altlinux.ru> 3.8.0-alt2
- 3.8.0

* Fri Jul 12 2002 Andrey Astafiev <andrei@altlinux.ru> 3.8.0-alt1pre3
- 3.8.0pre3
- Library uses dynamically linked zlib.

* Mon May 27 2002 Yuri N. Sedunov <aris@altlinux.ru> 3.8.0-alt0.9pre2.1
- 3.8.0pre2.1

* Thu Jan 10 2002 Yuri N. Sedunov <aris@altlinux.ru> 3.8.0-alt0.8pre2
- 3.8.0pre2.
- utils package.

* Wed Aug 15 2001 Andrey Astafiev <andrei@altlinux.ru> 3.7.13-alt1
- First version of RPM package