File libax25.spec of Package libax25

#
# spec file for package libax25 (Version 0.0.11)
#
# Copyright (c) 2006 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
# usedforbuild    aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cpp41 cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gcc41 gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc41 libltdl libmudflap41 libnscd libstdc++41 libtool libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel

Name:           libax25
URL:            http://ax25.sourceforge.net/
License:        GNU General Public License (GPL)
Group:          Development/Libraries/C and C++
Provides:       ax25dev
Autoreqprov:    on

%if 0%{?suse_version} >= 1120
Version:      0.0.12rc2
%endif
%if 0%{?suse_version} <= 1110
Version:        0.0.11cvs20090410
%endif
Release:        10.0
Summary:        AX.25 Libraries for Development
Source:         libax25-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Packager: 	Tim Fischer <dg7gt@gmx.de>

%description
Libraries for AX.25 support (glibc2.x, kernel 2.2.x). This library set
is still undergoing testing, but is now released for general use.



Authors:
--------
    Craig Small <csmall@small.dropbear.id.au>
    Jonathan Naylor <g4klx@g4klx.demon.co.uk>
    Tomi Manninen <Tomi.Manninen@hut.fi>
    Jean-Paul ROUBELAT <jpr@f6fbb.org>

%package devel
Summary: 	Ax25 header files
Group:		Development/Libraries/C and C++
Requires:	libax25

%description devel
Header file for libax25. Used to build packages that are
linked against kernel ax25

%debug_package
%prep
%if 0%{?suse_version} >= 1120
%setup
%endif
%if 0%{?suse_version} <= 1110
%setup -n libax25
%endif

%build
%{suse_update_config}
libtoolize --copy --force
#aclocal
#autoconf
%if 0%{?suse_version} > 1100
autoreconf --force --install
%endif
HARDWARE=`uname -m`
export CFLAGS="$RPM_OPT_FLAGS"
if [ $HARDWARE = "alpha" ]; then
./configure --host=alpha-unknown-linux-gnu --prefix= --exec-prefix=  --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var --libdir=/usr/%_lib --includedir=/usr/include --infodir=/usr/info --mandir=%{_mandir}
else
./configure --host=i486-unknown-linux-gnu --prefix= --exec-prefix=  --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var --libdir=/usr/%_lib --includedir=/usr/include --infodir=/usr/info --mandir=%{_mandir}
fi
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
make installconf DESTDIR=$RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%dir /etc/ax25
%dir /usr/include/netax25
%config /etc/ax25/axports
%config /etc/ax25/nrports
%config /etc/ax25/rsports
/usr/%_lib/libax25.la
/usr/%_lib/libax25.so.0
/usr/%_lib/libax25.so.0.0.0
/usr/%_lib/libax25io.la
/usr/%_lib/libax25io.so.0
/usr/%_lib/libax25io.so.0.0.0
%doc %{_mandir}/man3/ax25.3.gz
%doc %{_mandir}/man3/rose.3.gz
%doc %{_mandir}/man5/axports.5.gz
%doc %{_mandir}/man5/nrports.5.gz
%doc %{_mandir}/man5/rsports.5.gz

%files devel
%defattr(-,root,root)
/usr/%_lib/libax25.a
/usr/%_lib/libax25io.so
/usr/%_lib/libax25.so
/usr/%_lib/libax25io.a
/usr/include/netax25/ax25io.h
/usr/include/netax25/axconfig.h
/usr/include/netax25/axlib.h
/usr/include/netax25/daemon.h
%if 0%{?suse_version} <= 1110
/usr/include/netax25/kernel_ax25.h
/usr/include/netax25/kernel_netrom.h
/usr/include/netax25/kernel_rose.h
%endif
/usr/include/netax25/mheard.h
/usr/include/netax25/nrconfig.h
/usr/include/netax25/procutils.h
/usr/include/netax25/rsconfig.h
/usr/include/netax25/ttyutils.h



%changelog -n libax25
* Sat Nov 14 2009 - dg7gt@gmx.de
- Update to rc2 for openSUSE 11.2 (11.0 and 11.1 unchanged due to build errors)
* Fri Apr 10 2009 - dg7gt@online.de
- Update to current CVS with some bug fixes
* Sun Feb 08 2009 - dg7gt@online.de
- Recompiling using actual CVS version
* Sat Nov 15 2008 - dg7gt@online.de
- recompiled with actual cvs version
- added devel package
* Fri Oct 24 2008 - dg7gt@online.de
- recompiled with actual cvs version
* Tue Feb 20 2007 - dg7gt@online.de
- imported to openSUSE Buildservice
* Sun Dec 10 2006 - dg7gt@online.de
- updated version to 0.0.11
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 10 2004 - adrian@suse.de
- add %%run_ldconfig
* Thu Dec 05 2002 - jreuter@suse.de
- upgrade to version 0.0.10
- bziped source archive
* Wed Sep 18 2002 - ro@suse.de
- removed bogus self-provides
* Tue Jul 02 2002 - meissner@suse.de
- Cleaned up .spec, buildrooted, auto* rerun.
* Tue Feb 12 2002 - jreuter@suse.de
- update to version 0.0.9
* Thu Nov 30 2000 - jreuter@suse.de
- changed group to Applications/Hamradio
* Wed Nov 08 2000 - sim@suse.de
- changed group to Applications/Communications
* Thu May 25 2000 - sim@suse.de
- doc to /usr/share/doc
* Thu Mar 02 2000 - kukuk@suse.de
- Use _mandir macro
* Thu Oct 28 1999 - ka@suse.de
- added make installconf to install section of spec file
* Thu Sep 16 1999 - ka@suse.de
- update to version 0.0.7
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Aug 12 1999 - ka@suse.de
- more detailed configure call to fix wrong paths in ax25tool/ax25apps
* Mon Jul 19 1999 - ka@suse.de
- update to version 0.0.6
* Tue Jul 13 1999 - ka@suse.de
- update to version 0.0.5
- fixed typo in pathnames.h
* Fri Jun 11 1999 - ka@suse.de
- added header files for glibc 2.1 received from Tomi Manninen
* Wed May 19 1999 - ro@suse.de
- re-added patch to apps/call.c
* Tue May 18 1999 - ka@suse.de
- added patch for procutils.c
* Fri May 07 1999 - ka@suse.de
- initial release of new sources for kernel 2.2.x
- renamed package to libax25
* Tue May 04 1999 - ro@suse.de
- rebuilt diff
- patched to build with glibc-2.1 and on alpha
- rspfd can't work on alpha yet due to inline asm
* Mon Mar 15 1999 - ro@suse.de
- renamed subpackage to ax25dev
* Fri Mar 12 1999 - ka@suse.de
- added sample configuration files to /etc/ax25/
* Thu Mar 11 1999 - ka@suse.de
- initial release

openSUSE Build Service is sponsored by