- Sort out a bit to properly define all the library names as defines
for easier updating in future when soname changes - Execute testsuite OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcdio?expand=0&rev=57
This commit is contained in:
parent
eb25b269a5
commit
74ebfa67db
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 11 12:50:34 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Sort out a bit to properly define all the library names as defines
|
||||||
|
for easier updating in future when soname changes
|
||||||
|
- Execute testsuite
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 11 09:31:42 UTC 2018 - kbabioch@suse.com
|
Mon Jun 11 09:31:42 UTC 2018 - kbabioch@suse.com
|
||||||
|
|
||||||
|
70
libcdio.spec
70
libcdio.spec
@ -16,8 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define cdio_soname 18
|
%define cdio_name libcdio18
|
||||||
%define libiso9660_soname 11
|
%define cdiopp_name libcdio++0
|
||||||
|
%define iso9660_name libiso9660-11
|
||||||
|
%define udf_name libudf0
|
||||||
Name: libcdio
|
Name: libcdio
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -47,11 +49,11 @@ access. Applications can use them as an abstraction to OS- and
|
|||||||
device-dependent properties of a CD-ROM or of the specific details of
|
device-dependent properties of a CD-ROM or of the specific details of
|
||||||
various CD image formats.
|
various CD image formats.
|
||||||
|
|
||||||
%package -n libcdio%{cdio_soname}
|
%package -n %{cdio_name}
|
||||||
Summary: CD-ROM Access Library
|
Summary: CD-ROM Access Library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcdio%{cdio_soname}
|
%description -n %{cdio_name}
|
||||||
The libcdio package contains libraries for CD-ROM and CD image
|
The libcdio package contains libraries for CD-ROM and CD image
|
||||||
access. Applications can use them as an abstraction to OS- and
|
access. Applications can use them as an abstraction to OS- and
|
||||||
device-dependent properties of a CD-ROM or of the specific details of
|
device-dependent properties of a CD-ROM or of the specific details of
|
||||||
@ -59,39 +61,38 @@ various CD image formats.
|
|||||||
|
|
||||||
This subpackage contains the C API library from cdio.
|
This subpackage contains the C API library from cdio.
|
||||||
|
|
||||||
%package -n libcdio++0
|
%package -n %{cdiopp_name}
|
||||||
Summary: C++ API for the libcdio CD-ROM access library
|
Summary: C++ API for the libcdio CD-ROM access library
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libcdio++0
|
%description -n %{cdiopp_name}
|
||||||
The libcdio package contains libraries for CD-ROM and CD image
|
The libcdio package contains libraries for CD-ROM and CD image
|
||||||
access.
|
access.
|
||||||
|
|
||||||
This subpackage contains the C++ API library for cdio.
|
This subpackage contains the C++ API library for cdio.
|
||||||
|
|
||||||
%package -n libiso9660-%{libiso9660_soname}
|
%package -n %{iso9660_name}
|
||||||
Summary: Library for working with ISO 9660 filesystems
|
Summary: Library for working with ISO 9660 filesystems
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libiso9660-%{libiso9660_soname}
|
%description -n %{iso9660_name}
|
||||||
A library for working with ISO 9660 filesystems, which are mainly used on CDs.
|
A library for working with ISO 9660 filesystems, which are mainly used on CDs.
|
||||||
|
|
||||||
%package -n libudf0
|
%package -n %{udf_name}
|
||||||
Summary: Library for working with Universal Disk Format filesystems
|
Summary: Library for working with Universal Disk Format filesystems
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libudf0
|
%description -n %{udf_name}
|
||||||
This library is made to read and write UDF filesystems, which are mainly
|
This library is made to read and write UDF filesystems, which are mainly
|
||||||
used on DVDs.
|
used on DVDs.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: CD-ROM access library
|
Summary: CD-ROM access library
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
Requires: glibc-devel
|
Requires: %{cdio_name} = %{version}
|
||||||
Requires: libcdio%{cdio_soname} = %{version}
|
Requires: %{cdiopp_name} = %{version}
|
||||||
Requires: libcdio++0 = %{version}
|
Requires: %{iso9660_name} = %{version}
|
||||||
Requires: libiso9660-%{libiso9660_soname} = %{version}
|
Requires: %{udf_name} = %{version}
|
||||||
Requires: libudf0 = %{version}
|
|
||||||
Requires(post): %{install_info_prereq}
|
Requires(post): %{install_info_prereq}
|
||||||
Requires(preun): %{install_info_prereq}
|
Requires(preun): %{install_info_prereq}
|
||||||
|
|
||||||
@ -107,8 +108,6 @@ applications that want to make use of the cdio libraries.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%define buildir ${PWD}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
@ -120,42 +119,43 @@ applications that want to make use of the cdio libraries.
|
|||||||
--without-cd-read \
|
--without-cd-read \
|
||||||
--without-iso-info \
|
--without-iso-info \
|
||||||
--without-iso-read
|
--without-iso-read
|
||||||
VERBOSE=1 make -e %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
%if 1 == 0
|
|
||||||
mv %{buildroot}%{_mandir}/jp %{buildroot}%{_mandir}/ja
|
|
||||||
%endif
|
|
||||||
#empty depdendency libs
|
#empty depdendency libs
|
||||||
rm -rf %{buildroot}%{_bindir} %{buildroot}%{_mandir}
|
rm -rf %{buildroot}%{_bindir} %{buildroot}%{_mandir}
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
%post -n libcdio%{cdio_soname} -p /sbin/ldconfig
|
%check
|
||||||
%post -n libcdio++0 -p /sbin/ldconfig
|
make %{?_smp_mflags} check
|
||||||
%post -n libiso9660-%{libiso9660_soname} -p /sbin/ldconfig
|
|
||||||
%post -n libudf0 -p /sbin/ldconfig
|
%post -n %{cdio_name} -p /sbin/ldconfig
|
||||||
%postun -n libcdio%{cdio_soname} -p /sbin/ldconfig
|
%post -n %{cdiopp_name} -p /sbin/ldconfig
|
||||||
%postun -n libcdio++0 -p /sbin/ldconfig
|
%post -n %{iso9660_name} -p /sbin/ldconfig
|
||||||
%postun -n libiso9660-%{libiso9660_soname} -p /sbin/ldconfig
|
%post -n %{udf_name} -p /sbin/ldconfig
|
||||||
%postun -n libudf0 -p /sbin/ldconfig
|
%postun -n %{cdio_name} -p /sbin/ldconfig
|
||||||
|
%postun -n %{cdiopp_name} -p /sbin/ldconfig
|
||||||
|
%postun -n %{iso9660_name} -p /sbin/ldconfig
|
||||||
|
%postun -n %{udf_name} -p /sbin/ldconfig
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
||||||
|
|
||||||
%preun devel
|
%preun devel
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
||||||
|
|
||||||
%files -n libcdio%{cdio_soname}
|
%files -n %{cdio_name}
|
||||||
%{_libdir}/libcdio.so.*
|
%{_libdir}/libcdio.so.*
|
||||||
|
|
||||||
%files -n libcdio++0
|
%files -n %{cdiopp_name}
|
||||||
%{_libdir}/libcdio++.so.*
|
%{_libdir}/libcdio++.so.*
|
||||||
%{_libdir}/libiso9660++.so.*
|
%{_libdir}/libiso9660++.so.*
|
||||||
|
|
||||||
%files -n libiso9660-%{libiso9660_soname}
|
%files -n %{iso9660_name}
|
||||||
%{_libdir}/libiso9660.so.*
|
%{_libdir}/libiso9660.so.*
|
||||||
|
|
||||||
%files -n libudf0
|
%files -n %{udf_name}
|
||||||
%{_libdir}/libudf.so.*
|
%{_libdir}/libudf.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user