diff --git a/libburn-0.6.16-multilib.patch b/libburn-0.6.16-multilib.patch new file mode 100644 index 0000000..8edd567 --- /dev/null +++ b/libburn-0.6.16-multilib.patch @@ -0,0 +1,23 @@ +Patch by Robert Scheck for libburn >= 0.6.16, which solves the +multilib/multiarch problem by removing the timestamp within the footer from the doxygen +generated files. + +--- libburn-0.6.16/doc/doxygen.conf.in 2008-11-25 11:00:11.000000000 +0100 ++++ libburn-0.6.16/doc/doxygen.conf.in.multilib 2009-03-17 22:17:03.000000000 +0100 +@@ -904,7 +904,7 @@ + # each generated HTML page. If it is left blank doxygen will generate a + # standard footer. + +-HTML_FOOTER = ++HTML_FOOTER = doc/footer_no_timestamp.html + + # The HTML_STYLESHEET tag can be used to specify a user-defined cascading + # style sheet that is used by each HTML page. It can be used to +--- libburn-0.6.16/doc/footer_no_timestamp.html 1970-01-01 01:00:00.000000000 +0100 ++++ libburn-0.6.16/doc/footer_no_timestamp.html.multilib 2009-03-17 22:18:47.000000000 +0100 +@@ -0,0 +1,5 @@ ++
Generated for $projectname by  ++ ++doxygen $doxygenversion
++ ++ diff --git a/libburn-1.4.8.tar.gz b/libburn-1.4.8.tar.gz new file mode 100644 index 0000000..1a043f2 Binary files /dev/null and b/libburn-1.4.8.tar.gz differ diff --git a/libburn-1.4.8.tar.gz.sig b/libburn-1.4.8.tar.gz.sig new file mode 100644 index 0000000..823f358 Binary files /dev/null and b/libburn-1.4.8.tar.gz.sig differ diff --git a/libburn.spec b/libburn.spec new file mode 100644 index 0000000..2a29768 --- /dev/null +++ b/libburn.spec @@ -0,0 +1,99 @@ +Name: libburn +Version: 1.4.8 +Release: 6 +Summary: The underlying programming library +License: GPLv2+ +URL: http://libburnia-project.org/ +Source0: http://files.libburnia-project.org/releases/libburn-%{version}.tar.gz +Source1: http://files.libburnia-project.org/releases/libburn-%{version}.tar.gz.sig +Patch0000: 0000-libburn-0.6.16-multilib.patch +BuildRequires: intltool gettext + +%description +Libburn is a library for writing preformatted data onto optical media: CD, DVD and BD (Blu-Ray). +libburn also offers a facility for reading data blocks from its drives without using the normal +block device i/o, which has its advantages and disadvantages. + +%package devel +Summary: Development files of libburn +Requires: libburn = %{version}-%{release} pkgconfig + +%description devel +Development files of libburn. + +%package help +Summary: Help document for libburn +BuildArch: noarch +BuildRequires: doxygen graphviz +Provides: %{name}-doc = %{version}-%{release} +Obsoletes: %{name}-doc < %{version}-%{release} + +%description help +Help document for libburn. + +%package -n cdrskin +Summary: A limited cdrecord compatibility wrapper for libburn +Requires: %{name} = %{version}-%{release} +Requires(post): chkconfig coreutils +Requires(preun): chkconfig + +%description -n cdrskin +cdrskin is the end-user application of libburnia. It is CLI-only and its syntax is mostly +identical to cdrecord to act as a drop-in replacement for existing front-ends. + +%prep +%autosetup -n libburn-%{version} -p1 + +%build +%configure --disable-static +%make_build +doxygen doc/doxygen.conf + +%install +%make_install +%delete_la + +rm -rf $RPM_BUILD_ROOT%{_defaultdocdir} +ln -sf cdrskin $RPM_BUILD_ROOT%{_bindir}/cdrecord + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%post -n cdrskin +link=`readlink %{_bindir}/cdrecord` +if [ "$link" == "cdrskin" ]; then + rm -f %{_bindir}/cdrecord +fi + +%{_sbindir}/alternatives --install %{_bindir}/cdrecord cdrecord %{_bindir}/cdrskin 50 \ + --slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman %{_mandir}/man1/cdrskin.1.gz + +%preun -n cdrskin +if [ $1 = 0 ]; then + %{_sbindir}/alternatives --remove cdrecord %{_bindir}/cdrskin +fi + +%files +%license COPYING +%doc AUTHORS COPYRIGHT README +%{_libdir}/%{name}*.so.* + +%files devel +%{_includedir}/%{name} +%{_libdir}/%{name}*.so +%{_libdir}/pkgconfig/%{name}*.pc + +%files help +%doc doc/html/ +%{_mandir}/man1/cdrskin.1* + +%files -n cdrskin +%ghost %{_bindir}/cdrecord +%{_bindir}/cdrskin + +%changelog +* Sat Dec 21 2019 shijian - 1.4.8-6 +- Package init