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