###############################################################################
###############################################################################
##
##  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
##
##  This copyrighted material is made available to anyone wishing to use,
##  modify, copy, or redistribute it subject to the terms and conditions
##  of the GNU General Public License v.2.
##
###############################################################################
###############################################################################
%define vers @VERS@
%define rel @REL@

Name: iddev
Version: %{vers}
Release: %{rel}
License: GPL
Group: System Environment/Libraries
Summary: iddev is a library that identifies device contents.

Source0: %{name}-%{version}-%{release}.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
iddev is a library that identifies device contents.  It will
tell you what file system (or logical volume manager) has
formatted the device.  This package contains the shared libraries.

%package devel
Group: Development/Libraries
Summary: iddev is a library that identifies device contents.

%description devel
iddev is a library that identifies device contents.  It will
tell you what file system (or logical volume manager) has
formatted the device.  This package contains the static
libraries and header files.

%prep
%setup -q

%build
./configure --libdir=%{_libdir} --incdir=%{_includedir}
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)

%doc

%files devel
%defattr(-,root,root,-)
%{_libdir}/libiddev.a
%{_includedir}/iddev.h

%changelog
* Mon Oct 25 2004 Chris Feist <cfeist@redhat.com>
- new upstream sources
* Sat Aug 14 2004 Jon Brassow <jbrassow@redhat.com>
- new upstream sources
* Wed Jul 14 2004 Jon Brassow <jbrassow@redhat.com>
- build for i386 and x86_64 only
* Mon Jul 12 2004 Jon Brassow <jbrassow@redhat.com>
- Update for new upstream sources
* Thu Jun 17 2004 Jon Brassow <jbrassow@redhat.com> 
- Initial build.


