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