Blame SPECS/libcdio.spec

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