linux-atm/linux-atm.spec
Jiri Bohac d06e95453d - Add linux-atm-C99.patch to fix a wrong type being passed to
functionaccept which violates C99 rules and causes compilation to
  fail with GCC 14 (and IMHO can cause wrong behavior on big-endian
  systems).  [boo#1221006]

If the request is OK, please also forward it to Factory soon-ish so
that we can switch the default compiler.

OBS-URL: https://build.opensuse.org/package/show/Base:System/linux-atm?expand=0&rev=27
2024-07-12 11:52:56 +00:00

103 lines
3.3 KiB
RPMSpec

#
# spec file for package linux-atm
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%if %{undefined _firmwaredir}
%define _firmwaredir /lib/firmware
%endif
%global sover 1
Name: linux-atm
Version: 2.5.2
Release: 0
Summary: Tools for ATM
License: BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Productivity/Networking/Other
URL: http://linux-atm.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM linux-atm-2.5.2_fdleak.patch
Patch0: linux-atm-2.5.2_fdleak.patch
# PATCH-FIX-UPSTREAM linux-atm-2.5.2_implicit-fortify-decl.patch -- fix implicit declarations
Patch1: linux-atm-2.5.2_implicit-fortify-decl.patch
# PATCH-FIX-UPSTREAM linux-atm-2.5.2-fix-header-conflict.patch -- avoid conflict with kernel headers
Patch2: linux-atm-2.5.2-fix-header-conflict.patch
# PATCH-FIX-UPSTREAM linux-atm-2.5.2-remove-headers-crude-hack.patch -- Remove headers crude hack
Patch3: linux-atm-2.5.2-remove-headers-crude-hack.patch
# PATCH-FIX-UPSTREAM fix-build-after-y2038-changes-in-glibc.patch -- fix build after y2038 changes in glibc
Patch4: fix-build-after-y2038-changes-in-glibc.patch
# PATCH-FIX-UPSTREAM linux-atm-C99.patch -- fix passing wrong type to accept
Patch5: linux-atm-C99.patch
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: flex
BuildRequires: glibc-devel
BuildRequires: libtool
%description
Tools to support ATM (Asynchronous Transfer Mode) networking.
%package -n libatm%{sover}
Summary: Libraries for ATM
Group: System/Libraries
%description -n libatm%{sover}
Libraries for ATM (Asynchronous Transfer Mode) networking.
%package devel
Summary: Development for ATM
Group: Development/Libraries/C and C++
Requires: libatm%{sover} = %{version}
%description devel
Libraries and header files for ATM (Asynchronous Transfer Mode)
networking.
%prep
%autosetup -p1
%build
sed 's|/lib/firmware|%{_firmwaredir}|g' -i src/extra/Makefile.am
autoreconf -fiv
%configure --disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libatm%{sover} -p /sbin/ldconfig
%postun -n libatm%{sover} -p /sbin/ldconfig
%files
%doc README AUTHORS ChangeLog NEWS THANKS BUGS
%config(noreplace) %{_sysconfdir}/atmsigd.conf
%config(noreplace) %{_sysconfdir}/hosts.atm
%{_bindir}/*
%{_sbindir}/*
%{_firmwaredir}/*
%{_mandir}/man*/*%{?ext_man}
%files -n libatm%{sover}
%license COPYING COPYING.GPL COPYING.LGPL
%{_libdir}/libatm.so.%{sover}*
%files devel
%{_includedir}/atm*.h
%{_libdir}/libatm.so
%changelog