File xorriso.spec of Package xorriso

#
# spec file for package xorriso
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           xorriso
Version:        1.4.8
Release:        0
Summary:        ISO 9660 Rock Ridge Filesystem Manipulator for Linux, FreeBSD, Solaris, NetBSD
License:        GPL-3.0
Group:          System/Filesystems
Url:            https://www.gnu.org/software/xorriso
Source:         %{name}-%{version}.tar.gz
Source1:        %{name}-%{version}.tar.gz.sig
Source2:        %{name}-keyring.gpg
BuildRequires:  gpg-offline
BuildRequires:  libacl-devel
%if 0%{?suse_version} > 1320 || (0%{?is_opensuse} && 0%{?sle_version} >= 120300)
BuildRequires:  libjte-devel
%endif
BuildRequires:  libtool
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  pkgconfig(libcdio)
BuildRequires:  pkgconfig(libisoburn-1)
BuildRequires:  pkgconfig(libisofs-1)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  readline-devel
PreReq:         %{install_info_prereq}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
xorriso copies file objects from POSIX compliant filesystems into Rock Ridge
enhanced ISO 9660 filesystems and allows session-wise manipulation of such
filesystems. It can load the management information of existing ISO images and
it writes the session results to optical media or to filesystem objects. 
Vice versa xorriso is able to copy file objects out of ISO 9660 filesystems.

%package tcltk
Summary:        GUI Frontend for xorriso
License:        0BSD
Group:          System/GUI/Other
Requires:       %{name} = %{version}-%{release}
Requires:       tcl
Requires:       tk

%description tcltk
xorriso-tcltk is mainly a proof of concept for a frontend that operates
xorriso in dialog mode.
It exercises several fundamental gestures of communication:
- connecting via two pipes
- sending commands
- receiving replies
- inquiring the xorriso message sieve
- using the xorriso parsing service

%prep
%gpg_verify -f %{S:2} %{S:1}
%setup -q

%build
%configure \
    --enable-libcdio \
    --enable-external-filters-setuid \
    --enable-launch-frontend-setuid \
    --enable-dvd-obs-64k \
    --enable-track-src-odirect \
    --enable-pkg-check-modules
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

%check
make %{?_smp_mflags} check

%post
%install_info --info-dir=%{_infodir} %{_infodir}/xorrecord.info%{ext_info}
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}fs.info%{ext_info}

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/xorrecord.info%{ext_info}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}fs.info%{ext_info}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog CONTRIBUTORS COPYING COPYRIGHT README
%{_bindir}/osirrox
%{_bindir}/xorrecord
%{_bindir}/%{name}
%{_bindir}/%{name}fs
%{_infodir}/xorrecord.info%{ext_info}
%{_infodir}/%{name}.info%{ext_info}
%{_infodir}/%{name}fs.info%{ext_info}
%{_mandir}/man?/xorrecord.?%{ext_man}
%{_mandir}/man?/%{name}.?%{ext_man}
%{_mandir}/man?/%{name}fs.?%{ext_man}

%files tcltk
%defattr(-,root,root)
%doc frontend/README-tcltk
%{_bindir}/%{name}-tcltk

%changelog
openSUSE Build Service is sponsored by