File lib3ds.spec of Package lib3ds

#
# spec file for package lib3ds (Version 1.3.0)
#
# Copyright (c) 2009 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:           lib3ds
BuildRequires:  Mesa-devel freeglut-devel
Url:            http://lib3ds.sourceforge.net
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
Summary:        Import and Export of Autodesk 3DS Files
Version:        1.3.0
Release:        4
Source0:        %name-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
handling 3DS files. Its main goal is to simplify the creation of 3DS
import and export filters.



Authors:
--------
    J.E. Hoffmann <je-h@gmx.net>

%package -n lib3ds-1-3
License:        LGPL v2.1 or later
Summary:        Import and Export of Autodesk 3DS Files
Group:          Development/Libraries/C and C++
Provides:       %{name} = %{version}
#opensuse 10.2
Obsoletes:      %{name} <= 1.2.0

%description -n lib3ds-1-3
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
handling 3DS files. Its main goal is to simplify the creation of 3DS
import and export filters.



Authors:
--------
    J.E. Hoffmann <je-h@gmx.net>

%package devel
License:        LGPL v2.1 or later
Summary:        Import and Export of Autodesk 3DS Files
Group:          Development/Libraries/C and C++
Requires:       lib3ds-1-3 = %{version} glibc-devel

%description devel
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
handling 3DS files. Its main goal is to simplify the creation of 3DS
import and export filters.



Authors:
--------
    J.E. Hoffmann <je-h@gmx.net>

%prep
%setup -q

%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS"
%configure --enable-shared --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
%{__rm} -rf examples/.deps
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la

%check
%{__make} check

%files -n lib3ds-1-3
%defattr(-,root,root)
%{_libdir}/lib3ds-1.so.3*

%files devel
%defattr(-,root,root)
%doc AUTHORS README COPYING ChangeLog examples
%dir %{_includedir}/lib3ds
%{_bindir}/3dsdump
%{_includedir}/lib3ds/*.h
%{_bindir}/lib3ds-config
%{_mandir}/man1/*gz
%{_libdir}/lib3ds.so
%{_datadir}/aclocal/lib3ds.m4

%post -n lib3ds-1-3  -p /sbin/ldconfig

%postun -n lib3ds-1-3 -p /sbin/ldconfig

%changelog
* Mon Aug 13 2007 crrodriguez@suse.de
- update to version 1.3.0
- use library packaging policy
- drop all no longer needed patches
- provide shared libraries only.
* Wed May 30 2007 pth@suse.de
- Suppress "devel file in non-devel package" error. lib3ds only
  provides a static library and headers.
- Don't compile examples, let the user do that himself if needed.
- Provide CONFIGURE_GLUT in acinclude.m4 in order to make it
  possible to run autoreconf. Remove unnecessary acconfig.h.
- modify lib3ds-no_type_punning.patch to more resemble upstream
  fix.
- (Build)Require Mesa-devel and freeglut-devel
* Thu Aug 31 2006 pth@suse.de
- Fix quoting in definition of AM_PATH_LIB3DS.
- Fix type punning to compile with strict-aliasing.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Apr 21 2004 adrian@suse.de
- compile with -fno-strict-aliasing
* Fri Dec 05 2003 adrian@suse.de
- package also examples
* Tue Apr 01 2003 adrian@suse.de
- initial package of version 1.2.0
openSUSE Build Service is sponsored by