]> git.pld-linux.org Git - packages/bridge-utils.git/blobdiff - bridge-utils.spec
- removed outdated build_fix patch
[packages/bridge-utils.git] / bridge-utils.spec
index ba7a81abd520e4c704d4db8f3b216a52352cf262..69c9f1e7bdaec8c614cb03c0ab1622c652cb688d 100644 (file)
@@ -1,84 +1,92 @@
-Summary:       Utilities for configuring the linux ethernet bridge
-Summary(pl):   U¿ytki przeznaczone do konfiguracji linux ethernet bridge
+Summary:       Utilities for configuring the Linux ethernet bridge
+Summary(pl.UTF-8):     Narzędzia przeznaczone do konfiguracji linuksowego ethernet bridge
 Name:          bridge-utils
-Version:       0.9.1
+Version:       1.7.1
 Release:       1
-License:       GPL
+License:       GPL v2+
 Group:         Networking/Admin
-Group(de):     Netzwerkwesen/Administration
-Group(pl):     Sieciowe/Administacyjne
-Source0:       ftp://openrock.net/bridge/bridge-utils/%{name}-%{version}.tar.gz
-Patch0:                %{name}-opt.patch
-Patch1:                %{name}-rootonly.patch
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Source0:       https://www.kernel.org/pub/linux/utils/net/bridge-utils/%{name}-%{version}.tar.xz
+# Source0-md5: 3e1fee4dc22cac5457c2f6ffb990a518
+Patch0:                debian.patch
+Patch1:                man.patch
+URL:           http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: linux-libc-headers >= 7:2.6.7
+BuildRequires: sed >= 4.0
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 Obsoletes:     brcfg
-BuildRequires: kernel-headers(bridging)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
 
 %description
-This package contains utilities for configuring the linux ethernet
-bridge. The linux ethernet bridge can be used for connecting multiple
+This package contains utilities for configuring the Linux ethernet
+bridge. The Linux ethernet bridge can be used for connecting multiple
 ethernet devices together. The connecting is fully transparent: hosts
 connected to one ethernet device see hosts connected to the other
 ethernet devices directly.
 
-%description -l pl
-Ten pakiet zawiera narzêdzia przeznaczone do konfigurowania linuxowego
-ethernet bridge (inteligentny switch). Linux ethernet bridge mo¿e byæ
-u¿yty do ³±czenia kilku ethernetowych interfejsów sieciowych w jeden.
-Po³±czenie jest w pe³ni prze¼roczyste; hosty przy³±czone po jednej
-stronie widz± hosty z drugiej strony bezpo¶rednio.
+%description -l pl.UTF-8
+Ten pakiet zawiera narzędzia przeznaczone do konfigurowania
+linuksowego ethernet bridge (inteligentnego switcha). Linux ethernet
+bridge może być użyty do łączenia kilku ethernetowych interfejsów
+sieciowych w jeden. Połączenie jest w pełni przezroczyste; hosty
+przyłączone po jednej stronie widzą hosty z drugiej strony
+bezpośrednio.
 
 %package devel
-Summary:       Libraries for the linux ethernet bridge programs.
-Summary(pl):   Biblioteki u¿ywane do sterowania linuxowym bridge.
+Summary:       Libraries for the linux ethernet bridge programs
+Summary(pl.UTF-8):     Biblioteki używane do sterowania linuksowym bridge
 Group:         Development/Libraries
-Group(de):     Entwicklung/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
 
 %description devel
 This package contains the header and object files necessary for
 developing programs which use 'libbridge', the interface to the linux
 kernel ethernet bridge.
 
-%description devel -l pl
-Ten pakiet zawiera pliki nag³ówkowe i bibliotekê konieczn± do rozwoju
-programów u¿ywaj±cych 'libbridge' - interfejs do linuxowego ethernet
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe i bibliotekę konieczną do rozwoju
+programów używających libbridge - interfejsu do linuksowego ethernet
 bridge.
 
 %prep
-%setup -q -n bridge
+%setup -q
 %patch0 -p1
 %patch1 -p1
 
 %build
-%{__make} OPT="$RPM_OPT_FLAGS" all
+cp -f /usr/share/automake/{config.*,missing} .
+%{__aclocal}
+%{__autoconf}
+%configure \
+       --with-linux-headers=%{_includedir}
+
+%{__make} \
+       CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir},%{_includedir}} \
        $RPM_BUILD_ROOT%{_mandir}/man8
 
-install -s brctl/brctl         $RPM_BUILD_ROOT%{_sbindir}/
-#install -s brctl/brctld               $RPM_BUILD_ROOT%{_sbindir}/
-install doc/*.8                        $RPM_BUILD_ROOT%{_mandir}/man8
-install libbridge/libbridge.a  $RPM_BUILD_ROOT%{_libdir}/
-install libbridge/libbridge.h  $RPM_BUILD_ROOT%{_includedir}/
-       
-gzip -9nf doc/*        $RPM_BUILD_ROOT%{_mandir}/man8/*
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install libbridge/libbridge.h $RPM_BUILD_ROOT%{_includedir}
+install libbridge/libbridge.a $RPM_BUILD_ROOT%{_libdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/{FAQ,FIREWALL,HOWTO,TODO,WISHLIST}.gz
-%attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man8/*
+%doc AUTHORS ChangeLog THANKS doc/{FAQ,FIREWALL,HOWTO,SMPNOTES,WISHLIST}
+%attr(755,root,root) %{_sbindir}/brctl
+%{_mandir}/man8/brctl.8*
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/*.a
-%{_includedir}/*.h
+%{_libdir}/libbridge.a
+%{_includedir}/libbridge.h
This page took 0.038169 seconds and 4 git commands to generate.