commit 23373a13226a4f3c49fe98899f30a88c14f93fb6 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:55:08 2019 -0400 Package init diff --git a/cdio_config.h b/cdio_config.h new file mode 100644 index 0000000..9b01c00 --- /dev/null +++ b/cdio_config.h @@ -0,0 +1,29 @@ +/* + * Kluge to support multilib installation of both 32- and 64-bit RPMS: + * we need to arrange that header files that appear in both RPMs are + * identical. Hence, this file is architecture-independent and calls + * in an arch-dependent file that will appear in just one RPM. + * + * To avoid breaking arches not explicitly supported by Red Hat, we + * use this indirection file *only* on known multilib arches. + * + * Note: this may well fail if user tries to use gcc's -I- option. + * But that option is deprecated anyway. + */ +#if defined(__x86_64__) +#include "cdio_config_x86_64.h" +#elif defined(__i386__) +#include "cdio_config_i386.h" +#elif defined(__ppc64__) || defined(__powerpc64__) +#include "cdio_config_ppc64.h" +#elif defined(__ppc__) || defined(__powerpc__) +#include "cdio_config_ppc.h" +#elif defined(__s390x__) +#include "cdio_config_s390x.h" +#elif defined(__s390__) +#include "cdio_config_s390.h" +#elif defined(__sparc__) && defined(__arch64__) +#include "cdio_config_sparc64.h" +#elif defined(__sparc__) +#include "cdio_config_sparc.h" +#endif diff --git a/libcdio-2.0.0.tar.gz b/libcdio-2.0.0.tar.gz new file mode 100644 index 0000000..040723d Binary files /dev/null and b/libcdio-2.0.0.tar.gz differ diff --git a/libcdio-2.0.0.tar.gz.sig b/libcdio-2.0.0.tar.gz.sig new file mode 100644 index 0000000..975f3b2 --- /dev/null +++ b/libcdio-2.0.0.tar.gz.sig @@ -0,0 +1,6 @@ +-----BEGIN PGP SIGNATURE----- + +iEYEABECAAYFAlpJdAsACgkQGo3lAIJ17CEXdgCdEZXiRK7QgIz2cT0J7ck9URTK +xh8AnjmWzo2mrHFaROhv+upvO/XKv8gg +=gzNu +-----END PGP SIGNATURE----- diff --git a/libcdio-no_date_footer.hml b/libcdio-no_date_footer.hml new file mode 100644 index 0000000..4886c65 --- /dev/null +++ b/libcdio-no_date_footer.hml @@ -0,0 +1,4 @@ +
+Generated for $projectname by doxygen +$doxygenversion
diff --git a/libcdio.spec b/libcdio.spec new file mode 100644 index 0000000..64add6d --- /dev/null +++ b/libcdio.spec @@ -0,0 +1,115 @@ +Name: libcdio +Version: 2.0.0 +Release: 6 +Summary: CD-ROM input and control library +License: GPLv3+ +URL: http://www.gnu.org/software/libcdio/ +Source0: https://ftp.gnu.org/gnu/libcdio/libcdio-%{version}.tar.gz +Source1: https://ftp.gnu.org/gnu/libcdio/libcdio-%{version}.tar.gz.sig +Source2: libcdio-no_date_footer.hml +Source3: cdio_config.h + +BuildRequires: gcc gcc-c++ git pkgconfig doxygen ncurses-devel help2man chrpath gettext-devel +Requires(post): /sbin/ldconfig +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info + +%description +The GNU Compact Disc Input and Control library (libcdio) contains a library for CD-ROM and CD image access. +Applications wishing to be oblivious of the OS- and device-dependent properties of a CD-ROM or of the specific +details of various CD-image formats may benefit from using this library. + +%package devel +Summary: Header files and development Files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains header files and development Files for for %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 -S git +iconv -f ISO88591 -t utf-8 -o THANKS.utf8 THANKS && mv THANKS.utf8 THANKS + +%build +%configure --disable-rpath --disable-vcd-info --disable-dependency-tracking --disable-cddb +%make_build + +cd doc/doxygen +sed -i -e "s,HTML_FOOTER.*$,HTML_FOOTER = libcdio-no_date_footer.hml,g;" Doxyfile +sed -i -e "s,EXCLUDE .*$,EXCLUDE = ../../include/cdio/cdio_config.h,g;" Doxyfile + +cp %{SOURCE2} . +./run_doxygen + +%install +%make_install +if [ `uname -i` = x86_64 ]; then + mv $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config.h $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config_`uname -i`.h + install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/cdio +fi +rm -f $RPM_BUILD_ROOT%{_infodir}/dir +chrpath --delete $RPM_BUILD_ROOT%{_bindir}/* +chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.* +%delete_la + +%check +make check + +%post +/sbin/ldconfig +/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || : + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/%{name}.info \ + %{_infodir}/dir 2>/dev/null || : +fi + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc AUTHORS +%license COPYING +%{_bindir}/* +%{_libdir}/libcdio++.so.* +%{_libdir}/libcdio.so.* +%{_libdir}/libiso9660++.so.* +%{_libdir}/libiso9660.so.* +%{_libdir}/libudf.so.* + +%files devel +%defattr(-,root,root) +%doc doc/doxygen/html +%{_libdir}/pkgconfig/*.pc +%{_libdir}/libcdio++.so +%{_libdir}/libcdio.so +%{_libdir}/libiso9660++.so +%{_libdir}/libiso9660.so +%{_libdir}/libudf.so +%{_libdir}/*.a +%{_includedir}/cdio/*.h +%{_includedir}/cdio++/*.hpp + +%files help +%doc NEWS README README.libcdio THANKS TODO +%{_mandir}/man1/* +%{_infodir}/* + +%changelog +* Sat Aug 31 2019 openEuler Buildteam - 2.0.0-6 +- Type:bugfix +- ID:NA +- SUG:NA + +* Tue Aug 27 2019 openEuler Buildteam - 2.0.0-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: openEuler Debranding + +* Wed Aug 14 2019 sunyun - 2.0.0-4 +- Package init +