File mISDNuser.spec of Package mISDNuser

#
# spec file for package mISDNuser (Version 1.1.20)
#
# 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:           mISDNuser
#BuildRequires:  
Url:            www.misdn.org
License:        GPL v2 only ; LGPL v2.1 only
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Group:          Hardware/ISDN
Summary:        Tools and library for mISDN
Version:        1.1.20
Release:        7
Source0:        %{name}-%{version}.tar.bz2
ExcludeArch:    s390 s390x

%description
This package contains libmisdn and some tools to use the mISDN driver.
mISDN is the new modular ISDN driver for Linux.



Authors:
--------
    Karsten Keil <kkeil@novell.com>
    Andreas Eversberg <jolly@eversberg.eu>
    Christian Richter <christian.richter@beronet.com>
    Martin Bachem <m.bachem@gmx.de>
    Matthias Urlichs <smurf@smurf.noris.de>
    and more ...

%package devel
License:        GPL v2 only ; LGPL v2.1 only
Requires:       %{name} = %{version}
Summary:        C header files for mISDN
Group:          Development/Libraries/C and C++

%description devel
This package contain the header files and static libraries for
mISDNuser development.



Authors:
--------
    Karsten Keil <kkeil@novell.com>
    Andreas Eversberg <jolly@eversberg.eu>
    Christian Richter <christian.richter@beronet.com>
    Martin Bachem <m.bachem@gmx.de>
    Matthias Urlichs <smurf@smurf.noris.de>
    and more ...

%prep
%setup -q -n mISDNuser

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
make EXTRA_CFLAGS="$RPM_OPT_FLAGS"

%install
make INSTALL_PREFIX=$RPM_BUILD_ROOT INSTALL_LIBDIR=%{_libdir}/ install

%files
%defattr(-,root,root)
#%doc 
/usr/bin/*
%{_libdir}/libmisdn.so

%files devel
%defattr(-,root,root)
%dir /usr/include/mISDNuser
%attr (0644, root, root) /usr/include/mISDNuser/*.h
%attr (0644, root, root) %{_libdir}/libmisdn*.a

%changelog
* Fri Jun 19 2009 coolo@novell.com
- disable as-needed for this package as it fails to build with it
* Mon Sep 01 2008 kkeil@suse.de
-  first version
openSUSE Build Service is sponsored by