File eject.spec of Package eject.import5542
#
# spec file for package eject
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#
# norootforbuild
Name: eject
BuildRequires: recode sg3_utils-devel
License: GPL v2 or later
Group: System/Base
Url: http://eject.sourceforge.net/
AutoReqProv: on
Summary: A Program to Eject Media under Software Control
Version: 2.1.0
Release: 152.<RELEASE153>
Source: %{name}-%{version}.tar.bz2
Patch1: %{name}-%{version}-subfs.diff
Patch3: %{name}-%{version}-scsi.diff
Patch4: %{name}-%{version}-po-cleanup.diff
Patch5: %{name}-%{version}-prototypes.diff
Patch6: %{name}-%{version}-toggle.diff
Patch7: %{name}-%{version}-status.diff
Patch8: %{name}-%{version}-umount.diff
# PATCH-FIX-SUSE fix segfault when unmounting (bnc#716644)
Patch9: eject-2.1.0-regfree_segfault.patch
PreReq: permissions
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Eject allows removable media (typically a CD-ROM, floppy disk, tape, or
JAZ or ZIP disk) to be ejected under software control. The command can
also control some multidisc CD-ROM changers, the autoeject feature
supported by some devices, and close the disc tray of some CD-ROM
drives.
Authors:
--------
Jeff Tranter <tranter@pobox.com>
%prep
%setup -q
%patch1
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9 -p1
%build
aclocal
automake -a
autoconf
./configure --prefix=%{_prefix} --bindir=/bin --mandir=%{_mandir} --enable-default-device=/dev/cdrom
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mv $RPM_BUILD_ROOT/bin/volname $RPM_BUILD_ROOT%{_bindir}
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_permissions
%verifyscript
%verify_permissions -e /bin/eject
%files -f %{name}.lang
%defattr(-,root,root)
%doc README COPYING ChangeLog TODO PORTING INSTALL
%doc %{_mandir}/man?/*
%verify(not mode) %attr(4750,root,audio) /bin/eject
%{_bindir}/*
%changelog