File id3v2.spec of Package id3v2

#
# spec file for package id3v2 (Version 0.1.11)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           id3v2
BuildRequires:  gcc-c++ id3lib-devel
Url:            http://id3v2.sourceforge.net/
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Utilities
Version:        0.1.11
Release:        77
Summary:        A Command Line Editor for ID3V2 Tags
Source0:        id3v2-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch0:         id3v2-%{version}.diff

%description
ID3 tags are found in MP3 files. They can store information about what
band recorded the song, the song name, and more.

ID3V1 tags are seriously deficient as to the kind of and length of
information that they can store. This is a tool for editing ID3V2 tags
in Linux.



%prep
%setup
%patch0 -p1

%build
make CXXFLAGS="$RPM_OPT_FLAGS '-DVERSION=\"%{version}\"'" PREFIX=%_prefix

%install
rm -rf $RPM_BUILD_ROOT
install -D id3v2 $RPM_BUILD_ROOT%_bindir/id3v2
mkdir -p $RPM_BUILD_ROOT%_mandir/man1
nroff -man id3v2.1 > $RPM_BUILD_ROOT%_mandir/man1/id3v2.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYING INSTALL
%_bindir/id3v2
%_mandir/man1/id3v2.1.gz
%changelog
* Mon Oct 01 2007 - coolo@suse.de
- fix compilation with gcc 4.3
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 - dmueller@suse.de
- add norootforbuild
* Fri Jan 21 2005 - coolo@suse.de
- update to newer version
* Tue Aug 12 2003 - coolo@suse.de
- initial package
openSUSE Build Service is sponsored by