1 Star 0 Fork 2

konglidong/id3lib

forked from src-openEuler/id3lib 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
id3lib.spec 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
konglidong 提交于 2022-01-27 18:13 . package init
Summary: Library for manipulating ID3v1 and ID3v2 tags
Name: id3lib
Version: 3.8.3
Release: 1
License: LGPLv2+
URL: http://id3lib.sourceforge.net/
Source0: http://downloads.sourceforge.net/id3lib/%{name}-%{version}.tar.gz
Source1: id3lib-no_date_footer.hml
Patch0: id3lib-dox.patch
Patch1: id3lib-3.8.3-autoreconf.patch
Patch2: id3lib-3.8.3-io_helpers-163101.patch
Patch3: fix-compilation-with-cpp-headers.patch
Patch4: fix-headers-of-main-functions.patch
Patch5: deal-with-mkstemp.patch
Patch6: remove-outdated-check.patch
Patch7: create-manpages.patch
Patch8: id3lib-missing-nullpointer-check.patch
Patch9: fix_make_check.patch
Patch10: fix_vbr_stack_smash.patch
BuildRequires: autoconf automake doxygen gcc gcc-c++
BuildRequires: libtool zlib-devel make
%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. Additionally, it can tell mp3 header info, like bitrate etc.
%package devel
Summary: Development tools for the id3lib library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: zlib-devel
%description devel
This package provides files needed to develop with the id3lib library.
%prep
%autosetup -p1
for i in doc/id3v2.3.0.txt doc/id3v2.3.0.html ChangeLog THANKS; do
iconv --from-code=ISO-8859-1 --to-code=UTF8 $i --output=tmp
sed -i -e 's/\r//' tmp
touch --reference=$i tmp
mv tmp $i
done
sed -i -e 's|@DOX_DIR_HTML@|%{_docdir}/%{name}-devel/api|' doc/index.html.in
sed -i -e "s,HTML_FOOTER.*$,HTML_FOOTER = id3lib-no_date_footer.hml,g" doc/Doxyfile.in
cp %{SOURCE1} doc
%build
autoreconf --force --install
%configure --disable-dependency-tracking --disable-static
%make_build libid3_la_LIBADD=-lz
%install
%make_install
make docs
mkdir -p __doc/doc ; cp -p doc/*.{gif,jpg,png,html,txt,ico,css} __doc/doc
rm -f $RPM_BUILD_ROOT%{_libdir}/libid3.la
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -pm 644 doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
%check
make check
%ldconfig_scriptlets
%files
%doc AUTHORS ChangeLog HISTORY NEWS README THANKS TODO __doc/doc/
%license COPYING
%{_libdir}/libid3-3.8.so.*
%{_bindir}/id3convert
%{_bindir}/id3cp
%{_bindir}/id3info
%{_bindir}/id3tag
%{_mandir}/man1/id3convert.1*
%{_mandir}/man1/id3cp.1*
%{_mandir}/man1/id3info.1*
%{_mandir}/man1/id3tag.1*
%files devel
%doc doc/id3lib.css doc/api/
%{_includedir}/id3.h
%{_includedir}/id3/
%{_libdir}/libid3.so
%changelog
* Thu Jan 27 2022 konglidong <konglidong@uniontech.com> - 3.8.1-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/konglidong/id3lib.git
git@gitee.com:konglidong/id3lib.git
konglidong
id3lib
id3lib
master

搜索帮助