Package init
This commit is contained in:
commit
23373a1322
29
cdio_config.h
Normal file
29
cdio_config.h
Normal file
@ -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
|
||||||
BIN
libcdio-2.0.0.tar.gz
Normal file
BIN
libcdio-2.0.0.tar.gz
Normal file
Binary file not shown.
6
libcdio-2.0.0.tar.gz.sig
Normal file
6
libcdio-2.0.0.tar.gz.sig
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iEYEABECAAYFAlpJdAsACgkQGo3lAIJ17CEXdgCdEZXiRK7QgIz2cT0J7ck9URTK
|
||||||
|
xh8AnjmWzo2mrHFaROhv+upvO/XKv8gg
|
||||||
|
=gzNu
|
||||||
|
-----END PGP SIGNATURE-----
|
||||||
4
libcdio-no_date_footer.hml
Normal file
4
libcdio-no_date_footer.hml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<hr size="1"><address style="text-align: right;"><small>
|
||||||
|
Generated for $projectname by <a href="http://www.doxygen.org/
|
||||||
|
index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
|
||||||
|
$doxygenversion</small></address></body></html>
|
||||||
115
libcdio.spec
Normal file
115
libcdio.spec
Normal file
@ -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 <buildteam@openeuler.org> - 2.0.0-6
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
|
||||||
|
* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-5
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: openEuler Debranding
|
||||||
|
|
||||||
|
* Wed Aug 14 2019 sunyun <sunyun9@huawei.com> - 2.0.0-4
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user