diff --git a/libparserutils.spec b/libparserutils.spec index cfd1dd4..faf95c8 100644 --- a/libparserutils.spec +++ b/libparserutils.spec @@ -1,6 +1,6 @@ Name: libparserutils Version: 0.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library for building efficient parsers Group: System Environment/Libraries @@ -52,6 +52,7 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %global make_vars COMPONENT_TYPE=lib-shared PREFIX=/usr Q= +%global build_envvars CFLAGS='%{optflags}' LDFLAGS="$RPM_LD_FLAGS" %prep %setup -q -n %{name}-%{version} @@ -59,7 +60,7 @@ The %{name}-doc package contains documentation files for %{name}. sed -i -e s@/lib/@/%{_lib}/@ -e s@/lib:@/%{_lib}:@ Makefile %{name}.pc.in %build -make %{?_smp_mflags} %{make_vars} +%{build_envvars} make %{?_smp_mflags} %{make_vars} make %{?_smp_mflags} docs %{make_vars} %install @@ -69,7 +70,7 @@ make install DESTDIR=%{buildroot} %{make_vars} %postun -p /sbin/ldconfig %check -make %{?_smp_mflags} test %{make_vars} +%{build_envvars} make %{?_smp_mflags} test %{make_vars} %files %doc COPYING README @@ -85,5 +86,8 @@ make %{?_smp_mflags} test %{make_vars} %doc build/docs/html %changelog +* Tue Jan 07 2014 David Tardon - 0.1.2-2 +- build with correct flags + * Wed Dec 25 2013 David Tardon - 0.1.2-1 - initial import