Accepting request 312890 from home:elvigia:branches:Base:System
- remove dependency on libusb-devel, only libusb-1.0 is used for build. - split a -devel-static subpackage that contains the static libraries and all the extra dependencies which are not needed for dynamic linking. OBS-URL: https://build.opensuse.org/request/show/312890 OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=48
This commit is contained in:
parent
3e71c7912a
commit
e7c807bcf7
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 21 04:41:13 UTC 2015 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- remove dependency on libusb-devel, only libusb-1.0 is used for
|
||||||
|
build.
|
||||||
|
- split a -devel-static subpackage that contains the static
|
||||||
|
libraries and all the extra dependencies which are not needed
|
||||||
|
for dynamic linking.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 26 18:55:17 UTC 2015 - astieger@suse.com
|
Sun Apr 26 18:55:17 UTC 2015 - astieger@suse.com
|
||||||
|
|
||||||
|
31
libpcap.spec
31
libpcap.spec
@ -39,11 +39,9 @@ BuildRequires: automake
|
|||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: dbus-1-devel
|
BuildRequires: dbus-1-devel
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: libusb-devel
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
%if %{?suse_version} >= 1210
|
|
||||||
BuildRequires: libnl3-devel
|
BuildRequires: libnl3-devel
|
||||||
%endif
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: pkgconfig(libusb-1.0)
|
||||||
%if %{with bluetooth}
|
%if %{with bluetooth}
|
||||||
BuildRequires: bluez-devel
|
BuildRequires: bluez-devel
|
||||||
%endif
|
%endif
|
||||||
@ -77,12 +75,8 @@ program yourself.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: A Library for Network Sniffers
|
Summary: A Library for Network Sniffers
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: bluez-devel
|
Requires: glibc-devel
|
||||||
Requires: libpcap1 = %{version}
|
Requires: libpcap1 = %{version}
|
||||||
Requires: libusb-devel
|
|
||||||
%if %{?suse_version} >= 1210
|
|
||||||
Requires: libnl3-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
libpcap is a library used by packet sniffer programs. It provides an
|
libpcap is a library used by packet sniffer programs. It provides an
|
||||||
@ -90,6 +84,20 @@ interface for them to capture and analyze packets from network devices.
|
|||||||
This package is only needed if you plan to compile or write such a
|
This package is only needed if you plan to compile or write such a
|
||||||
program yourself.
|
program yourself.
|
||||||
|
|
||||||
|
%package devel-static
|
||||||
|
Summary: A Library for Network Sniffers
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name}-devel = %{version}
|
||||||
|
Requires: dbus-1-devel
|
||||||
|
Requires: libnl3-devel
|
||||||
|
Requires: pkgconfig(libusb-1.0)
|
||||||
|
%if %{with bluetooth}
|
||||||
|
Requires: bluez-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description devel-static
|
||||||
|
libpcap static libraries
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
@ -128,12 +136,15 @@ make DESTDIR=%{buildroot} install install-shared
|
|||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%doc %{_mandir}/man7/*
|
%doc %{_mandir}/man7/*
|
||||||
|
|
||||||
|
%files devel-static
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/*.*a
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc %{_mandir}/man[1-6]/*
|
%doc %{_mandir}/man[1-6]/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_bindir}/pcap-config
|
%{_bindir}/pcap-config
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/*.*a
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user