libntrack/libntrack.spec

180 lines
5.8 KiB
RPMSpec

Name: libntrack
Version: 017
Release: 1mamba
Summary: A library for application developers that want to get events on network online status changes
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://launchpad.net/ntrack
Source: http://launchpad.net/ntrack/main/%{version}/+download/ntrack-%{version}.tar.gz
Patch0: %{name}-014-deadloop.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libnl-devel
BuildRequires: libnl1-devel
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
ntrack aims to be a lightweight and easy to use library for application developers that want to get events on network online status changes such as online, offline or route changes.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
ntrack aims to be a lightweight and easy to use library for application developers that want to get events on network online status changes such as online, offline or route changes.
This package contains static libraries and header files needed for development.
%package qt4
Group: System/Libraries
Summary: %{name} binding for Qt4
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description qt4
ntrack aims to be a lightweight and easy to use library for application developers that want to get events on network online status changes such as online, offline or route changes.
This package contains the Qt4 ntrack library.
%package qt4-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}-qt4
Requires: %{name}-qt4 = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description qt4-devel
ntrack aims to be a lightweight and easy to use library for application developers that want to get events on network online status changes such as online, offline or route changes.
This package contains static libraries and header files needed for development.
%package glib
Group: System/Libraries
Summary: %{name} binding for Glib
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description glib
ntrack aims to be a lightweight and easy to use library for application developers that want to get events on network online status changes such as online, offline or route changes.
This package contains the Glib ntrack library.
%package glib-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}-glib
Requires: %{name}-glib = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description glib-devel
ntrack aims to be a lightweight and easy to use library for application developers that want to get events on network online status changes such as online, offline or route changes.
This package contains static libraries and header files needed for development.
%package -n pyntrack
Group: System/Libraries
Summary: Python binding for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n pyntrack
ntrack aims to be a lightweight and easy to use library for application developers that want to get events on network online status changes such as online, offline or route changes.
This package contains the Python binding to the ntrack library.
# FIXME:
#checking for LIBNL2... no
%debug_package
%prep
%setup -q -n ntrack-%{version}
#%patch0 -p0
%build
%configure \
--disable-static \
--without-pygobject
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
rm -rf %{buildroot}%{_docdir}/ntrack
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post qt4 -p /sbin/ldconfig
%postun qt4 -p /sbin/ldconfig
%post glib -p /sbin/ldconfig
%postun glib -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libntrack.so.*
%{_libdir}/ntrack/modules/ntrack-libnl1.la
%{_libdir}/ntrack/modules/ntrack-libnl1.so
%{_libdir}/ntrack/modules/ntrack-libnl3_x.la
%{_libdir}/ntrack/modules/ntrack-libnl3_x.so
%doc AUTHORS COPYING COPYING.LESSER
%files devel
%defattr(-,root,root)
%{_includedir}/ntrack/common/*
%{_libdir}/libntrack.la
%{_libdir}/libntrack.so
%{_libdir}/pkgconfig/libntrack.pc
%doc ChangeLog NEWS README
%files qt4
%defattr(-,root,root)
%{_libdir}/libntrack-qt4.so.*
%files qt4-devel
%defattr(-,root,root)
%{_includedir}/ntrack/qt4/*
%{_libdir}/libntrack-qt4.la
%{_libdir}/libntrack-qt4.so
%{_libdir}/pkgconfig/libntrack-qt4.pc
%files glib
%defattr(-,root,root)
%{_libdir}/libntrack-glib.so.*
%{_libdir}/libntrack-gobject.so.*
%files glib-devel
%defattr(-,root,root)
%{_includedir}/ntrack/glib/*
%{_includedir}/ntrack/gobject/*
%{_libdir}/libntrack-glib.la
%{_libdir}/libntrack-glib.so
%{_libdir}/libntrack-gobject.la
%{_libdir}/libntrack-gobject.so
%{_libdir}/pkgconfig/libntrack-glib.pc
%{_libdir}/pkgconfig/libntrack-gobject.pc
#%files -n pyntrack
#%defattr(-,root,root)
#%{python_sitearch}/pyntrack.la
#%{python_sitearch}/pyntrack.so
%changelog
* Tue Feb 16 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 017-1mamba
- update to 017
* Thu May 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 014-2mamba
- added deadloop fix patch affecting kded4 from https://bugs.launchpad.net/ntrack/+bug/755608
* Thu May 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 014-1mamba
- update to 014
* Sun Mar 06 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 011-1mamba
- package created by autospec
libntrack-014-deadloop.patch