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 Name: libmnl
Version: 1.0.4 Version: 1.0.4
Release: 7%{?dist} Release: 8%{?dist}
Summary: A minimalistic Netlink library Summary: A minimalistic Netlink library
Group: System Environment/Libraries License: LGPLv2+
License: LGPLv2+ URL: http://netfilter.org/projects/libmnl
URL: http://netfilter.org/projects/libmnl Source0: http://netfilter.org/projects/libmnl/files/%{name}-%{version}.tar.bz2
Source0: http://netfilter.org/projects/libmnl/files/%{name}-%{version}.tar.bz2
BuildRequires: gcc
%description %description
libmnl is a minimalistic user-space library oriented to Netlink developers. 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. to avoid re-inventing the wheel.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Libraries Requires: %{name}%{_isa} = %{version}-%{release}
Requires: %{name}%{_isa} = %{version}-%{release}
%package static %package static
Summary: Static development files for %{name} Summary: Static development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description devel %description devel
@ -45,8 +44,8 @@ make CFLAGS="%{optflags}" %{?_smp_mflags}
%install %install
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.la' -delete
find examples '(' -name 'Makefile.am' -o -name 'Makefile.in' ')' -exec rm -f {} ';' find examples '(' -name 'Makefile.am' -o -name 'Makefile.in' ')' -delete
find examples -type d -name '.deps' -prune -exec rm -rf {} ';' find examples -type d -name '.deps' -prune -exec rm -rf {} ';'
mv examples examples-%{_arch} mv examples examples-%{_arch}
@ -57,14 +56,11 @@ mv examples examples-%{_arch}
%files %files
%{!?_licensedir:%global license %%doc}
%license COPYING %license COPYING
%doc README %doc README
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc examples-%{_arch} %doc examples-%{_arch}
%{_includedir}/* %{_includedir}/*
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
@ -74,6 +70,9 @@ mv examples examples-%{_arch}
%{_libdir}/*.a %{_libdir}/*.a
%changelog %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 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild