File lltag.spec of Package lltag
#
# spec file for package lltag (Version 0.14.2)
#
# Copyright 2008 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.
# norootforbuild
%define perl_sitelib %(eval "`%{__perl} -V:installsitelib`"; echo $installsitelib)
%define perl_arch %(eval "`%{__perl} -V:archname`"; echo $archname)
%define perl_version %(eval "`%{__perl} -V:version`"; echo $version)
Summary: Audio file meta data handler, media tagger
Name: lltag
Version: 0.14.2
Release: 1
Source0: %{name}-%{version}.tar.bz2
Source1: http://download.gna.org/lltag/lltag-0.14.2.tar.bz2
Vendor: %{vendor}
URL: http://home.gna.org/lltag
License: GPL
Requires: perl-TermReadLine-Gnu perl-libwww-perl perl-MP3-Tag
Requires: perl = %{perl_version}
BuildRequires: perl sed
BuildArch: noarch
Group: Productivity/Multimedia/Other
BuildRoot: %{_builddir}/%{name}-%{version}-build
%description
lltag takes a list of music files on the command
line and tries to automatically understand their
filenames and guess their associated tags.
It uses an internal format database to do so. For
each file, it will try each format until one
matches the current filename, extract the
corresponding fields from the filename and set the
music tags.
lltag also allows to pass one or several
format strings like "%a - %A/%n. - %t", so that
the user may help the program when the filenames
are too strange, complex or damaged.
It is also possible to set some fields by hand
or edit some. And finally, lltag may use these
fields to rename the file according to a user-
given filename format.
lltag also provides a interface to access an
online CDDB (TrackType.org) and retrieve tags from
there. It makes it possible to tag/rename a file
from scratch.
%prep
%setup -q
%build
%install
DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} \
SYSCONFDIR=%{_sysconfdir} MANDIR=%{_mandir} \
%{__sed} -e 's!@SYSCONFDIR@!/usr/local/etc!g' \
-e 's!@VERSION@!0.14.2!g' \
< lltag.in > lltag
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} \
SYSCONFDIR=%{_sysconfdir} MANDIR=%{_mandir}
# Lazy... Is it better patching Makefile.PL instead?
%{__install} -d -m 755 %{buildroot}%{perl_vendorarch}
%{__install} -d -m 755 %{buildroot}%{perl_vendorlib}
%{__cp} -a -p %{buildroot}%{perl_sitearch}/* \
%{buildroot}%{perl_vendorarch}
%{__cp} -a -p %{buildroot}%{perl_sitelib}/* \
%{buildroot}%{perl_vendorlib}
%{__rm} -r %{buildroot}%{perl_sitearch}
%{__rm} -r %{buildroot}%{perl_sitelib}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/formats
/usr/lib/perl5/5.10.0/%{perl_arch}
/usr/lib/perl5/5.10.0/%{perl_arch}/perllocal.pod
###################################
### FALSE ERROR: Directory not owned
### I suppose it will not erase everything
### else during removal...
###################################
#%{perl_vendorarch}/auto
###################################
%{perl_vendorarch}/auto/Lltag
%{perl_vendorarch}/auto/Lltag/.packlist
%{perl_vendorlib}/Lltag
%{perl_vendorlib}/Lltag/*.pm
%changelog
* Fri Jul 17 2009 Mario GarcĂa H. <code933k@gmail.com> - 0.14
- Initial package.