6495ce
%global pkgname libburn
6495ce
6495ce
%if 0%{?rhel} >= 6 && 0%{?rhel} <= 7
6495ce
%global cdrskin cdrskin1
6495ce
%else
6495ce
%global cdrskin cdrskin
6495ce
%endif
6495ce
6495ce
Summary:         Library for reading, mastering and writing optical discs
6495ce
Name:            libburn
6495ce
Version:         1.4.8
6495ce
Release:         3%{?dist}
6495ce
License:         GPLv2+
6495ce
Group:           System Environment/Libraries
6495ce
URL:             http://libburnia-project.org/
6495ce
Source0:         http://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz
6495ce
Source1:         http://files.libburnia-project.org/releases/%{pkgname}-%{version}.tar.gz.sig
6495ce
Patch0:          libburn-0.6.16-multilib.patch
6495ce
BuildRequires:   intltool, gettext
6495ce
%if 0%{?rhel} >= 6 && 0%{?rhel} <= 7
6495ce
BuildRequires:   autoconf, automake, libtool, pkgconfig
6495ce
%endif
6495ce
BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6495ce
6495ce
%description
6495ce
Libburn is a library by which preformatted data get onto optical media:
6495ce
CD, DVD and BD (Blu-Ray). It also offers a facility for reading data
6495ce
blocks from its drives without using the normal block device I/O, which
6495ce
has advantages and disadvantages. It seems appropriate, nevertheless,
6495ce
to do writing and reading via same channel. On several Linux systems,
6495ce
the block device driver needs reloading of the drive tray in order to
6495ce
make available freshly written data. The libburn read function does not
6495ce
need such a reload. The code of libburn is independent of cdrecord.
6495ce
6495ce
%package         devel
6495ce
Summary:         Development files for %{name}
6495ce
Group:           Development/Libraries
6495ce
Requires:        %{name}%{?_isa} = %{version}-%{release}, pkgconfig
6495ce
6495ce
%description     devel
6495ce
The %{name}-devel package contains libraries and header files for
6495ce
developing applications that use %{name}.
6495ce
6495ce
%package doc
6495ce
Summary:         Documentation files for %{name}
6495ce
Group:           Documentation
6495ce
%if 0%{?fedora} || 0%{?rhel} >= 6
6495ce
BuildArch:       noarch
6495ce
%endif
6495ce
BuildRequires:   doxygen, graphviz
6495ce
6495ce
%description doc
6495ce
Libburn is a library by which preformatted data get onto optical media:
6495ce
CD, DVD and BD (Blu-Ray). This package contains the API documentation
6495ce
for developing applications that use %{name}.
6495ce
6495ce
%package -n      %{cdrskin}
6495ce
Summary:         Limited cdrecord compatibility wrapper to ease migration to %{name}
6495ce
Group:           Applications/Multimedia
6495ce
Requires:        %{name}%{?_isa} = %{version}-%{release}
6495ce
%if 0%{?rhel} >= 6 || 0%{?fedora}
6495ce
Requires(post):  %{_sbindir}/alternatives, coreutils
6495ce
Requires(preun): %{_sbindir}/alternatives
6495ce
%endif
6495ce
6495ce
%description -n %{cdrskin}
6495ce
A limited cdrecord compatibility wrapper which allows to use some %{name}
6495ce
features from the command line.
6495ce
6495ce
%prep
6495ce
%setup -q -n %{pkgname}-%{version}
6495ce
%patch0 -p1 -b .multilib
6495ce
6495ce
# Rename from libburn to libburn1 for RHEL >= 6
6495ce
%if 0%{?rhel} >= 6 && 0%{?rhel} <= 7
6495ce
sed -e 's@libburn_libburn@libburn_libburn1@g' \
6495ce
    -e 's@libburn/libburn.la@libburn/libburn1.la@g' \
6495ce
    -e 's@(includedir)/libburn@(includedir)/libburn1@g' \
6495ce
    -e 's@libburn-1.pc@libburn1-1.pc@g' -i Makefile.am
6495ce
sed -e 's@libburn-1.pc@libburn1-1.pc@g' -i configure.ac
6495ce
sed -e 's@burn@burn1@g' libburn-1.pc.in > libburn1-1.pc.in
6495ce
6495ce
libtoolize --force
6495ce
autoreconf --force
6495ce
%endif
6495ce
6495ce
%build
6495ce
%configure --disable-static
6495ce
make %{?_smp_mflags}
6495ce
doxygen doc/doxygen.conf
6495ce
6495ce
%install
6495ce
rm -rf $RPM_BUILD_ROOT
6495ce
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
6495ce
6495ce
# Don't install any libtool .la files
6495ce
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
6495ce
6495ce
# Clean up for later usage in documentation
6495ce
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}
6495ce
6495ce
# RHEL >= 6 ships a cdrskin package already
6495ce
%if 0%{?rhel} >= 6 && 0%{?rhel} <= 7
6495ce
mv -f $RPM_BUILD_ROOT%{_bindir}/{cdrskin,%{cdrskin}}
6495ce
mv -f $RPM_BUILD_ROOT%{_mandir}/man1/{cdrskin,%{cdrskin}}.1
6495ce
%endif
6495ce
6495ce
# Symlink cdrskin as cdrecord (like in cdrkit)
6495ce
%if 0%{?rhel} >= 6 || 0%{?fedora}
6495ce
ln -sf %{cdrskin} $RPM_BUILD_ROOT%{_bindir}/cdrecord
6495ce
%endif
6495ce
6495ce
%clean
6495ce
rm -rf $RPM_BUILD_ROOT
6495ce
6495ce
%post -p /sbin/ldconfig
6495ce
6495ce
%postun -p /sbin/ldconfig
6495ce
6495ce
%if 0%{?rhel} >= 6 || 0%{?fedora}
6495ce
%post -n %{cdrskin}
6495ce
link=`readlink %{_bindir}/cdrecord`
6495ce
if [ "$link" == "%{cdrskin}" ]; then
6495ce
  rm -f %{_bindir}/cdrecord
6495ce
fi
6495ce
6495ce
%{_sbindir}/alternatives --install %{_bindir}/cdrecord cdrecord %{_bindir}/%{cdrskin} 50 \
6495ce
  --slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman %{_mandir}/man1/%{cdrskin}.1.gz
6495ce
6495ce
%preun -n %{cdrskin}
6495ce
if [ $1 = 0 ]; then
6495ce
  %{_sbindir}/alternatives --remove cdrecord %{_bindir}/%{cdrskin}
6495ce
fi
6495ce
%endif
6495ce
6495ce
%files
6495ce
%{!?_licensedir:%global license %%doc}
6495ce
%license COPYING
6495ce
%doc AUTHORS COPYRIGHT README
6495ce
%{_libdir}/%{name}*.so.*
6495ce
6495ce
%files devel
6495ce
%{_includedir}/%{name}
6495ce
%{_libdir}/%{name}*.so
6495ce
%{_libdir}/pkgconfig/%{name}*.pc
6495ce
6495ce
%files doc
6495ce
%doc doc/html/
6495ce
6495ce
%files -n %{cdrskin}
6495ce
%if 0%{?rhel} >= 6 || 0%{?fedora}
6495ce
%ghost %{_bindir}/cdrecord
6495ce
%endif
6495ce
%{_bindir}/%{cdrskin}
6495ce
%{_mandir}/man1/%{cdrskin}.1*
6495ce
6495ce
%changelog
6495ce
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.8-3
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6495ce
6495ce
* Fri Dec 01 2017 Merlin Mathesius <mmathesi@redhat.com> - 1.4.8-2
6495ce
- Cleanup spec file conditionals
6495ce
6495ce
* Fri Sep 15 2017 Robert Scheck <robert@fedoraproject.org> 1.4.8-1
6495ce
- Upgrade to 1.4.8 (#1491478)
6495ce
6495ce
* Thu Aug 24 2017 Robert Scheck <robert@fedoraproject.org> 1.4.6-5
6495ce
- Move large documentation into -doc subpackage (#750009)
6495ce
6495ce
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-4
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6495ce
6495ce
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-3
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6495ce
6495ce
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6495ce
6495ce
* Sun Sep 18 2016 Robert Scheck <robert@fedoraproject.org> 1.4.6-1
6495ce
- Update to upstream 1.4.6 (#1377006)
6495ce
6495ce
* Tue Jul 05 2016 Robert Scheck <robert@fedoraproject.org> 1.4.4-1
6495ce
- Update to upstream 1.4.4 (#1352496)
6495ce
- Reworked spec file to build libburn1 for RHEL >= 6 (#750009)
6495ce
6495ce
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-3
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6495ce
6495ce
* Sat Jan 30 2016 Robert Scheck <robert@fedoraproject.org> 1.4.2-2
6495ce
- Update to upstream 1.4.2.pl01 (#1294947)
6495ce
6495ce
* Thu Dec 24 2015 Robert Scheck <robert@fedoraproject.org> 1.4.2-1
6495ce
- Update to upstream 1.4.2 (#1287345)
6495ce
- Add symlink handling via alternatives for cdrecord (#1256240)
6495ce
6495ce
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6495ce
6495ce
* Mon May 18 2015 Robert Scheck <robert@fedoraproject.org> 1.4.0-1
6495ce
- Update to upstream 1.4.0 (#1222524)
6495ce
6495ce
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6495ce
6495ce
* Sun Jun 29 2014 Robert Scheck <robert@fedoraproject.org> 1.3.8-1
6495ce
- Update to upstream 1.3.8 (#1078717)
6495ce
6495ce
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6495ce
6495ce
* Wed Mar 05 2014 Robert Scheck <robert@fedoraproject.org> 1.3.6-1
6495ce
- Update to upstream 1.3.6 (#1072835)
6495ce
6495ce
* Sat Dec 14 2013 Robert Scheck <robert@fedoraproject.org> 1.3.4-1
6495ce
- Update to upstream 1.3.4 (#1043068)
6495ce
6495ce
* Sun Aug 25 2013 Robert Scheck <robert@fedoraproject.org> 1.3.2-1
6495ce
- Update to upstream 1.3.2 (#994916)
6495ce
6495ce
* Sat Aug 03 2013 Robert Scheck <robert@fedoraproject.org> 1.3.0-1
6495ce
- Update to upstream 1.3.0 (#965231)
6495ce
- Run autoreconf to recognize aarch64 (#925679)
6495ce
6495ce
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.8-3
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6495ce
6495ce
* Tue Apr 02 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.2.8-2
6495ce
- Run autoreconf to overwrite old scripts => recognize aarch64
6495ce
6495ce
* Tue Mar 19 2013 Robert Scheck <robert@fedoraproject.org> 1.2.8-1
6495ce
- Update to upstream 1.2.8
6495ce
6495ce
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6495ce
6495ce
* Sat Jan 12 2013 Robert Scheck <robert@fedoraproject.org> 1.2.6-1
6495ce
- Update to upstream 1.2.6 (#893692)
6495ce
6495ce
* Wed Dec 05 2012 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.2.4-5
6495ce
- renamed patch - added package name to match naming guidelines
6495ce
6495ce
* Tue Dec 04 2012 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.2.4-4
6495ce
- current time in doxygen footer caused multilib difference - inserted empty footer instead
6495ce
6495ce
* Thu Nov 22 2012 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.2.4-3
6495ce
- Minor spec-file cleanup
6495ce
6495ce
* Wed Aug 29 2012 Honza Horak <hhorak@redhat.com> 1.2.4-2
6495ce
- Changed license from GPLv2 to GPLv2+ to correspond with source
6495ce
6495ce
* Fri Aug 10 2012 Robert Scheck <robert@fedoraproject.org> 1.2.4-1
6495ce
- Update to upstream 1.2.4 (#842077)
6495ce
6495ce
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6495ce
6495ce
* Sun May 13 2012 Robert Scheck <robert@fedoraproject.org> 1.2.2-1
6495ce
- Update to upstream 1.2.2
6495ce
6495ce
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6495ce
6495ce
* Sun Nov 27 2011 Robert Scheck <robert@fedoraproject.org> 1.1.8-1
6495ce
- Update to upstream 1.1.8
6495ce
6495ce
* Sat Oct 08 2011 Robert Scheck <robert@fedoraproject.org> 1.1.6-1
6495ce
- Update to upstream 1.1.6
6495ce
6495ce
* Sun Sep 18 2011 Robert Scheck <robert@fedoraproject.org> 1.1.4-1
6495ce
- Update to upstream 1.1.4
6495ce
6495ce
* Sun Jul 10 2011 Robert Scheck <robert@fedoraproject.org> 1.1.0-1
6495ce
- Update to upstream 1.1.0
6495ce
6495ce
* Sun Apr 17 2011 Robert Scheck <robert@fedoraproject.org> 1.0.6-1
6495ce
- Update to upstream 1.0.6
6495ce
6495ce
* Mon Feb 28 2011 Honza Horak <hhorak@redhat.com> - 1.0.2-1
6495ce
- Update to upstream 1.0.2
6495ce
6495ce
* Thu Feb 17 2011 Honza Horak <hhorak@redhat.com> - 1.0.0-1
6495ce
- Update to upstream 1.0.0
6495ce
6495ce
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6495ce
6495ce
* Thu Apr 22 2010 Nikola Pajkovsky <npajkovs@redhat.com> - 0.8.0-1
6495ce
- Update to upstream 0.8.0
6495ce
6495ce
* Wed Sep 30 2009 Denis Leroy <denis@poolshark.org> - 0.7.0-1
6495ce
- Update to upstream 0.7.0
6495ce
- Fixed binary installation
6495ce
- Removed rpath
6495ce
6495ce
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6495ce
6495ce
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
6495ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6495ce
6495ce
* Sat Jan 24 2009 Denis Leroy <denis@poolshark.org> - 0.6.0-2
6495ce
- Updating to pl01 tarball from upstream
6495ce
- Fixed project URL
6495ce
6495ce
* Wed Jan 07 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.6.0-1
6495ce
- New upstream version
6495ce
6495ce
* Tue Aug  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.8-2
6495ce
- fix license tag
6495ce
6495ce
* Wed Jun 11 2008 Denis Leroy <denis@poolshark.org> - 0.4.8-1
6495ce
- Update to upstream 0.4.8
6495ce
6495ce
* Thu Feb 14 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.4.0-2
6495ce
- Autorebuild for GCC 4.3
6495ce
6495ce
* Thu Dec 13 2007 Denis Leroy <denis@poolshark.org> - 0.4.0-1
6495ce
- Update to 0.4.0
6495ce
6495ce
* Wed Oct 10 2007 Jesse Keating <jkeating@redhat.com> - 0.3.8-2
6495ce
- Rebuild for BuildID
6495ce
6495ce
* Fri Aug 10 2007 Denis Leroy <denis@poolshark.org> - 0.3.8-1
6495ce
- Update to upstream 0.3.8
6495ce
- Fixed project URL
6495ce
6495ce
* Sun Mar 25 2007 Denis Leroy <denis@poolshark.org> - 0.2.6.3-3
6495ce
- Fixed unowned include directory (#233860)
6495ce
6495ce
* Tue Mar 20 2007 Denis Leroy <denis@poolshark.org> - 0.2.6.3-2
6495ce
- Moved documentation into devel package, #228372
6495ce
- Updated source URL to new upstream location
6495ce
6495ce
* Tue Jan 02 2007 Jesse Keating <jkeating@redhat.com> - 0.2.6.3-1
6495ce
- Update to 0.2.6.3
6495ce
- Remove libisofs stuff as it's packaged seperately now.
6495ce
- Add a manpage for cdrskin
6495ce
6495ce
* Sat Oct 21 2006 Jesse Keating <jkeating@redhat.com> - 0.2-2-2
6495ce
- Point to a real URL in source, now that we have a tarball
6495ce
6495ce
* Fri Oct 20 2006 Jesse Keating <jkeating@redhat.com> - 0.2-2-1
6495ce
- 0.2.2 release
6495ce
6495ce
* Tue Sep 12 2006 Jesse Keating <jkeating@redhat.com> - 0.2-5.20060808svn
6495ce
- Create doxygen docs
6495ce
6495ce
* Fri Sep  8 2006 Jesse Keating <jkeating@redhat.com> - 0.2-4.20060808svn
6495ce
- rebuild with new snapshot
6495ce
6495ce
* Sun Aug 27 2006 Jesse Keating <jkeating@redhat.com> - 0.2-3.20060823svn
6495ce
- don't install dupe headers in -devel packages
6495ce
- libisofs requires libburn devel for directory ownership
6495ce
6495ce
* Sun Aug 27 2006 Jesse Keating <jkeating@redhat.com> - 0.2-2.20060823svn
6495ce
- Fix cdrskin require
6495ce
- Fix tabs
6495ce
- Added doc files
6495ce
6495ce
* Wed Aug 23 2006 Jesse Keating <jkeating@redhat.com> - 0.2-1.20060823svn
6495ce
- Initial package for review