File dvdisaster.spec of Package dvdisaster
#
# spec file for package dvdisaster (Version 0.72.3)
#
# 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 licence for this file, and modifications and additions to the
# file, is the same licence as for the pristine package itself (unless the
# licence for the pristine package is not an Open Source Licence, in which
# case the licence is the MIT Licence). An "Open Source Licence" is a
# licence 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: dvdisaster
Version: 0.72.4
Release: 35.1
Summary: Additional error protection for CD/DVD media
Group: Productivity/Archiving/Backup
License: GPL
URL: http://www.dvdisaster.com
Source0: %{name}-%{version}.tar.bz2
Source90: %{name}-rpmlintrc
# Fixes some Desktop File entries
Patch0: dekstop.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: fdupes
BuildRequires: gtk2-devel
BuildRequires: gettext
BuildRequires: libbz2-devel
BuildRequires: libpng-devel
BuildRequires: desktop-file-utils
BuildRequires: sed
Requires: xdg-utils
%description
Dvdisaster provides a margin of safety against data loss on CD and
DVD media caused by scratches or ageing. It creates error correction
data, which is used to recover unreadable sectors if the disc becomes
damaged at a later time.
%description -l de
Dvdisaster erzeugt einen Sicherheitspuffer gegen Datenverluste, die
auf CD- und DVD-Datenträgern durch Alterung oder Kratzer entstehen. Es
erzeugt Fehlerkorrekturdaten, um bei nachfolgenden Datenträger-
Problemen unlesbare Sektoren zu rekonstruieren.
%description -l it
Dvdisaster offre un margine di sicurezza contro la perdita di dati
dei supporti CD e DVD causata dall'invecchiamento e dai graffi. Crea
dei dati di correzione degli errori che saranno poi utilizzati per
recuperare i settori illeggibili se il supporto dovesse danneggiarsi
col tempo.
%description -l cs
Dvdisaster poskytuje dodatečnou ochranu proti ztrátě dat na médiích
CD a DVD způsobených poškrábáním nebo stárnutím. Vytváří data oprav
chyb, která jsou použita pro obnovu nečitelných sektorů, pokud se disk
později poškodí.
%prep
%setup -q
%patch0
%build
./configure \
--mandir=%{_mandir} \
--localedir=%{_datadir}/locale \
--docdir=%{_datadir}/doc \
--docsubdir=%{name}
%__make CFLAGS="%{optflags}"
%install
make install \
BINDIR=%{buildroot}%{_bindir} \
DOCSUBDIR=%{buildroot}%{_docdir}/%{name} \
MANDIR=%{buildroot}%{_mandir} \
LOCALEDIR=%{buildroot}%{_datadir}/locale
%__rm -f %{buildroot}%{_bindir}/*-uninstall.sh
pushd %{buildroot}%{_mandir}
for i in `find . -type f -name "*.[1-9]"`; do
%__sed -i "s,%{buildroot},,g" $i
done
popd
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
%__install -m 644 contrib/dvdisaster48.png \
%{buildroot}%{_datadir}/pixmaps/%{name}48.png
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
--mode=0644 \
contrib/%{name}.desktop
%find_lang %{name}
%if %suse_version >= 1030
%fdupes -s %{buildroot}%{_docdir}/%{name}
%endif
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root,-)
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*
%doc %{_mandir}/man1/*
%dir %{_mandir}/cs
%dir %{_mandir}/cs/man1
%doc %{_mandir}/*/man1/*
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%changelog
* Sat Oct 30 2011 Bruno Canning <bruno.canning@dsl.pipex.com> - 0.72.3-1
- initial RPM build