Add gcc BuildReq, cleanup spec

This commit is contained in:
Peter Robinson 2018-07-21 17:32:45 +01:00
parent 962402bd44
commit 84eac1d09d

View File

@ -1,12 +1,13 @@
Name: libmnl
Version: 1.0.4
Release: 7%{?dist}
Summary: A minimalistic Netlink library
Name: libmnl
Version: 1.0.4
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
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.
@ -16,14 +17,12 @@ 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}
Group: Development/Libraries
Requires: %{name}%{_isa} = %{version}-%{release}
%package devel
Summary: Development files for %{name}
Requires: %{name}%{_isa} = %{version}-%{release}
%package static
Summary: Static development files for %{name}
Group: Development/Libraries
%package static
Summary: Static development files for %{name}
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