ec261d
Name: libcdio
a823bc
Version: 0.92
ed96f6
Release: 3%{?dist}
ec261d
Summary: CD-ROM input and control library
ec261d
Group: System Environment/Libraries
ec261d
License: GPLv3+
ec261d
URL: http://www.gnu.org/software/libcdio/
a823bc
Source0: http://ftp.gnu.org/gnu/libcdio/libcdio-0.92.tar.gz
a823bc
Source1: http://ftp.gnu.org/gnu/libcdio/libcdio-0.92.tar.gz.sig
ec261d
Source2: libcdio-no_date_footer.hml
ec261d
Source3: cdio_config.h
ec261d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ec261d
BuildRequires: pkgconfig doxygen
ec261d
BuildRequires: ncurses-devel
ec261d
BuildRequires: help2man
ec261d
Requires(post): /sbin/ldconfig
ec261d
Requires(post): /sbin/install-info
ec261d
Requires(preun): /sbin/install-info
ec261d
BuildRequires: gettext-devel
ec261d
BuildRequires: chrpath
ec261d
ec261d
ed96f6
Patch0: CVE-2017-18201.patch
ed96f6
#Following patches (1-4) also fix CVE-2017-18199
ed96f6
Patch1: CVE-2017-18198-part1.patch
ed96f6
Patch2: CVE-2017-18198-part2.patch
ed96f6
Patch3: CVE-2017-18198-part3.patch
ed96f6
Patch4: CVE-2017-18198-part4.patch
ed96f6
ec261d
%description
ec261d
This library provides an interface for CD-ROM access. It can be used
ec261d
by applications that need OS- and device-independent access to CD-ROM
ec261d
devices.
ec261d
ec261d
%package devel
ec261d
Summary: Header files and libraries for %{name}
ec261d
Group: Development/Libraries
ec261d
Requires: %{name} = %{version}-%{release}
ec261d
ec261d
%description devel
ec261d
This package contains header files and libraries for %{name}.
ec261d
ec261d
ec261d
%prep
ec261d
%setup -q
ed96f6
%patch0 -p1
ed96f6
%patch1 -p1
ed96f6
%patch2 -p1
ed96f6
%patch3 -p3
ed96f6
%patch4 -p3
ec261d
ec261d
f=src/cd-paranoia/doc/ja/cd-paranoia.1.in
ec261d
iconv -f euc-jp -t utf-8 -o $f.utf8 $f && mv $f.utf8 $f
ec261d
iconv -f ISO88591 -t utf-8 -o THANKS.utf8 THANKS && mv THANKS.utf8 THANKS
ec261d
ec261d
%build
ec261d
%configure \
ec261d
	--disable-vcd-info \
ec261d
	--disable-dependency-tracking \
ec261d
	--disable-cddb \
ec261d
	--disable-static \
ec261d
	--disable-rpath
ec261d
make %{?_smp_mflags}
ec261d
ec261d
# another multilib fix; remove the architecture information from version.h
ec261d
sed -i -e "s,%{version}.*$,%{version}\\\",g" include/cdio/version.h
ec261d
ec261d
cd doc/doxygen
ec261d
sed -i -e "s,HTML_FOOTER.*$,HTML_FOOTER = libcdio-no_date_footer.hml,g; \
ec261d
		s,EXCLUDE .*$,EXCLUDE = ../../include/cdio/cdio_config.h,g;" Doxyfile
ec261d
cp %{SOURCE2} .
ec261d
./run_doxygen
ec261d
ec261d
%install
ec261d
rm -rf $RPM_BUILD_ROOT
ec261d
make install DESTDIR=$RPM_BUILD_ROOT
ec261d
ec261d
# multilib header hack; taken from postgresql.spec
ec261d
case `uname -i` in
ec261d
	i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
ec261d
		mv $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config.h $RPM_BUILD_ROOT%{_includedir}/cdio/cdio_config_`uname -i`.h
ec261d
		install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_includedir}/cdio
ec261d
		;;
ec261d
	*)
ec261d
		;;
ec261d
esac
ec261d
ec261d
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
ec261d
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
ec261d
ec261d
rm -rf examples
ec261d
mkdir -p examples/C++
ec261d
cp -a example/{*.c,README} examples
ec261d
cp -a example/C++/{*.cpp,README} examples/C++
ec261d
ec261d
# fix timestamps of generated man-pages
ec261d
for i in cd-info iso-read iso-info cd-read cd-drive; do 
ec261d
	# remove build architecture information from man pages
ec261d
	sed -i -e 's, version.*linux-gnu,,g' $RPM_BUILD_ROOT%{_mandir}/man1/$i.1
ec261d
	# remove libtool leftover from man pages
ec261d
	sed -i -e 's,lt-,,g;s,LT-,,g' $RPM_BUILD_ROOT%{_mandir}/man1/$i.1
ec261d
	# fix timestamps to be the same in all packages
ec261d
	touch -r src/$i.help2man $RPM_BUILD_ROOT%{_mandir}/man1/$i.1
ec261d
done
ec261d
ec261d
# remove rpath
ec261d
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/*
ec261d
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.*
ec261d
ec261d
%check
ec261d
# disable test using local CDROM
ec261d
%{__sed} -i -e "s,testiso9660\$(EXEEXT),,g" \
ec261d
	    -e "s,testisocd\$(EXEEXT),,g" \
ec261d
	    -e "s,check_paranoia.sh check_opts.sh, check_opts.sh,g" \
ec261d
	    test/Makefile
ec261d
make check
ec261d
ec261d
ec261d
%clean
ec261d
rm -rf $RPM_BUILD_ROOT
ec261d
ec261d
ec261d
%post
ec261d
/sbin/ldconfig
ec261d
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
ec261d
ec261d
%preun
ec261d
if [ $1 = 0 ]; then
ec261d
	/sbin/install-info --delete %{_infodir}/%{name}.info \
ec261d
		%{_infodir}/dir 2>/dev/null || :
ec261d
fi
ec261d
ec261d
%postun -p /sbin/ldconfig
ec261d
ec261d
ec261d
%files
ec261d
%defattr(-,root,root,-)
ec261d
%doc AUTHORS COPYING NEWS README README.libcdio THANKS TODO
ec261d
%{_bindir}/*
ec261d
%{_libdir}/*.so.*
ec261d
%{_infodir}/*
ec261d
%{_mandir}/man1/*
ec261d
ec261d
ec261d
%files devel
ec261d
%defattr(-,root,root,-)
ec261d
%doc doc/doxygen/html examples
ec261d
%{_includedir}/cdio
ec261d
%{_includedir}/cdio++
ec261d
%{_libdir}/*.so
ec261d
%{_libdir}/pkgconfig/*.pc
ec261d
ec261d
ec261d
%changelog
ed96f6
* Mon Jun 18 2018 Jakub Martisko <jamartis@redhat.com> - 0.92-3
ed96f6
- fix CVE-2017-18198 and CVE-2017-18199
ed96f6
- Resolves: rhbz#1553769
ed96f6
- Resolves: rhbz#1553604
ed96f6
ed96f6
* Mon Jun 18 2018 Jakub Martisko <jamartis@redhat.com> - 0.92-2
ed96f6
- fix CVE-2017-18201
ed96f6
- Resolves: rhbz#1553621
ed96f6
a823bc
* Mon Dec 16 2013 Adrian Reber <adrian@lisas.de> - 0.92-1
a823bc
- updated to 0.92
a823bc
- Resolves: rhbz#1065642
a823bc
a823bc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.90-3
a823bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a823bc
ec261d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.90-2
ec261d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ec261d
ec261d
* Thu Nov 22 2012 Adrian Reber <adrian@lisas.de> - 0.90-1
ec261d
- updated to 0.90
ec261d
ec261d
* Tue Jul 24 2012 Adrian Reber <adrian@lisas.de> - 0.83-5
ec261d
- fixed #477288 (libcdio-devel multilib conflict) again
ec261d
ec261d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-4
ec261d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ec261d
ec261d
* Fri Mar 23 2012 Adrian Reber <adrian@lisas.de> - 0.83-3
ec261d
- fixed #804484 (/usr/bin/cd-info was killed by signal 11)
ec261d
ec261d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83-2
ec261d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ec261d
ec261d
* Sun Nov 13 2011 Adrian Reber <adrian@lisas.de> - 0.83-1
ec261d
- updated to 0.83
ec261d
ec261d
* Mon May 30 2011 Honza Horak <hhorak@redhat.com> - 0.82-5
ec261d
- applied patch to fix issues found by static analyses
ec261d
ec261d
* Thu May 19 2011 Honza Horak <hhorak@redhat.com> - 0.82-4
ec261d
- fixed #705673 buffer overflow and other unprotected sprintf calls
ec261d
ec261d
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.82-3
ec261d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ec261d
ec261d
* Thu Jan 28 2010 Adrian Reber <adrian@lisas.de> - 0.82-2
ec261d
- disabled building of static libraries (#556064)
ec261d
- removed "Requires: pkgconfig" (rpm adds it automatically)
ec261d
ec261d
* Wed Jan 20 2010 Roman Rakus rrakus@redhat.com 0.82-1
ec261d
- Update to 0.82
ec261d
- removed rpath
ec261d
- converted THANKS to utf8 
ec261d
ec261d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81-3
ec261d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ec261d
ec261d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81-2
ec261d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ec261d
ec261d
* Tue Oct 07 2008 Adrian Reber <adrian@lisas.de> - 0.81-1
ec261d
- updated to 0.81
ec261d
- license changed to GPLv3+
ec261d
- fixed #477288 (libcdio-devel multilib conflict)
ec261d
- applied patch to fix endless loop in mock
ec261d
ec261d
* Tue Oct 07 2008 Adrian Reber <adrian@lisas.de> - 0.80-5
ec261d
- fixed #462125 (Multilib conflict) - really, really, really
ec261d
  (also remove architecture information from man pages)
ec261d
ec261d
* Thu Oct 02 2008 Adrian Reber <adrian@lisas.de> - 0.80-4
ec261d
- fixed #462125 (Multilib conflict) - this time for real
ec261d
ec261d
* Fri Sep 12 2008 Adrian Reber <adrian@lisas.de> - 0.80-3
ec261d
- fixed #462125 (Multilib conflict)
ec261d
ec261d
* Wed Jun  4 2008 Tomas Bzatek <tbzatek@redhat.com> - 0.80-2
ec261d
- added patch enabling libcdio_paranoia.pc
ec261d
ec261d
* Thu May 29 2008 Adrian Reber <adrian@lisas.de> - 0.80-1
ec261d
- updated to 0.80
ec261d
- removed upstreamed patches
ec261d
- last GPLv2+ release
ec261d
ec261d
* Thu Feb 14 2008 Adrian Reber <adrian@lisas.de> - 0.79-3
ec261d
- added patch to compile with gcc43
ec261d
ec261d
* Fri Jan 04 2008 Adrian Reber <adrian@lisas.de> - 0.79-2
ec261d
- fixed security fix (was off by two)
ec261d
ec261d
* Wed Jan 02 2008 Adrian Reber <adrian@lisas.de> - 0.79-1
ec261d
- updated to 0.79
ec261d
- fixes #427197 (Long Joliet file name overflows cdio's buffer)
ec261d
- fixes #341981 (multiarch conflicts in libcdio)
ec261d
ec261d
* Fri Aug 24 2007 Adrian Reber <adrian@lisas.de> - 0.78.2-3
ec261d
- rebuilt
ec261d
ec261d
* Mon Jul 23 2007 Adrian Reber <adrian@lisas.de> - 0.78.2-2
ec261d
- updated to 0.78.2 (#221359) (this time for real)
ec261d
ec261d
* Thu Jan 04 2007 Adrian Reber <adrian@lisas.de> - 0.78.2-1
ec261d
- updated to 0.78.2 (#221359)
ec261d
ec261d
* Thu Oct 05 2006 Adrian Reber <adrian@lisas.de> - 0.77-3
ec261d
- disabled iso9660 test case (fails for some reason with date problems)
ec261d
  this seems to be a known problem according to the ChangeLog
ec261d
ec261d
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.77-2
ec261d
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
ec261d
ec261d
* Fri Sep 22 2006 Adrian Reber <adrian@lisas.de> - 0.77-1
ec261d
- Updated to 0.77
ec261d
ec261d
* Mon Sep 18 2006 Adrian Reber <adrian@lisas.de> - 0.76-3
ec261d
- Rebuilt
ec261d
ec261d
* Mon Sep 26 2005 Adrian Reber <adrian@lisas.de> - 0.76-2
ec261d
- Rebuilt
ec261d
ec261d
* Mon Sep 26 2005 Adrian Reber <adrian@lisas.de> - 0.76-1
ec261d
- Updated to 0.76.
ec261d
- Included doxygen generated documentation into -devel
ec261d
- Included examples into -devel
ec261d
ec261d
* Mon Aug 01 2005 Adrian Reber <adrian@lisas.de> - 0.75-4
ec261d
- disable test accessing local CDROM drive (#164266)
ec261d
ec261d
* Wed Jul 27 2005 Adrian Reber <adrian@lisas.de> - 0.75-3
ec261d
- Rebuilt without libcddb dependency (#164270)
ec261d
ec261d
* Tue Jul 26 2005 Adrian Reber <adrian@lisas.de> - 0.75-2
ec261d
- Rebuilt
ec261d
ec261d
* Thu Jul 14 2005 Adrian Reber <adrian@lisas.de> - 0.75-1
ec261d
- Updated to 0.75.
ec261d
ec261d
* Fri Jun 03 2005 Adrian Reber <adrian@lisas.de> - 0.74-2
ec261d
- Updated to 0.74.
ec261d
ec261d
* Sun Apr 24 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.73-2
ec261d
- BuildRequire ncurses-devel (for cdda-player and cd-paranoia).
ec261d
- Run test suite during build.
ec261d
- Install Japanese man pages.
ec261d
ec261d
* Sun Apr 24 2005 Adrian Reber <adrian@lisas.de> - 0.73-1
ec261d
- Updated to 0.73.
ec261d
ec261d
* Fri Mar 18 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.70-2
ec261d
- Fix FC4 build (#151468).
ec261d
- Build with dependency tracking disabled.
ec261d
ec261d
* Sun Sep  5 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.70-0.fdr.1
ec261d
- Updated to 0.70.
ec261d
ec261d
* Sat Jul 17 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.69-0.fdr.1
ec261d
- Updated to 0.69.
ec261d
- Removed broken iso-read.
ec261d
- Split Requires(pre,post).
ec261d
- Added BuildReq pkgconfig.
ec261d
ec261d
* Mon Mar 29 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.68-0.fdr.1
ec261d
- Initial RPM release.
ec261d