Add gcc BuildReq, cleanup spec
This commit is contained in:
parent
962402bd44
commit
84eac1d09d
17
libmnl.spec
17
libmnl.spec
@ -1,13 +1,14 @@
|
||||
Name: libmnl
|
||||
Version: 1.0.4
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: A minimalistic Netlink library
|
||||
|
||||
Group: System Environment/Libraries
|
||||
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
|
||||
@ -18,12 +19,10 @@ to avoid re-inventing the wheel.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}%{_isa} = %{version}-%{release}
|
||||
|
||||
%package static
|
||||
Summary: Static development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
@ -45,8 +44,8 @@ make CFLAGS="%{optflags}" %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
find examples '(' -name 'Makefile.am' -o -name 'Makefile.in' ')' -exec rm -f {} ';'
|
||||
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}
|
||||
|
||||
@ -57,14 +56,11 @@ mv examples examples-%{_arch}
|
||||
|
||||
|
||||
%files
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license COPYING
|
||||
%doc README
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license COPYING
|
||||
%doc examples-%{_arch}
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
@ -74,6 +70,9 @@ mv examples examples-%{_arch}
|
||||
%{_libdir}/*.a
|
||||
|
||||
%changelog
|
||||
* Sat Jul 21 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.4-1
|
||||
- Add gcc BuildReq, cleanup spec
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user