Search
SailfishOS Open Build Service
>
Projects
>
home:Nokius
:
mer-playgound
>
libmnl
> libmnl.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libmnl.spec of Package libmnl
Name: libmnl Version: 1.0.4 Release: 0 Summary: A minimalistic Netlink library License: LGPLv2+ URL: http://netfilter.org/projects/libmnl Source0: http://netfilter.org/projects/libmnl/files/%{name}-%{version}.tar.bz2 BuildRequires: gcc %description libmnl is a minimalistic user-space library oriented to Netlink developers. There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong. This library aims to provide simple helpers that allows you to re-use code and to avoid re-inventing the wheel. %package devel Summary: Development files for %{name} Requires: %{name}%{_isa} = %{version}-%{release} %package static Summary: Static development files for %{name} Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %description static The %{name}-static package contains static libraries for devleoping applications that use %{name}. %prep %setup -q %build %configure --enable-static make CFLAGS="%{optflags}" %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -delete find examples '(' -name 'Makefile.am' -o -name 'Makefile.in' ')' -delete find examples -type d -name '.deps' -prune -exec rm -rf {} ';' mv examples examples-%{_arch} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING %doc README %{_libdir}/*.so.* %files devel %doc examples-%{_arch} %{_includedir}/* %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %files static %{_libdir}/*.a