From b6a05af9b8d5ca529f8a374ba61fd959317a21c45016b902ee08ab651dd2ab1f Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Thu, 24 Apr 2014 09:10:59 +0000 Subject: [PATCH] - remove redundant setting of C(XX)FLAGS - package translations in tre-lang OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tre?expand=0&rev=14 --- tre.changes | 6 ++++++ tre.spec | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/tre.changes b/tre.changes index 075febb..e7ae274 100644 --- a/tre.changes +++ b/tre.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 24 09:06:44 UTC 2014 - pgajdos@suse.com + +- remove redundant setting of C(XX)FLAGS +- package translations in tre-lang + ------------------------------------------------------------------- Tue Apr 8 10:01:26 CDT 2014 - bjones@ece.msstate.edu diff --git a/tre.spec b/tre.spec index 71201b3..471735c 100644 --- a/tre.spec +++ b/tre.spec @@ -48,6 +48,7 @@ Group: System/Libraries Requires: %{name} = %{version} Obsoletes: libtre Provides: libtre +Recommends: %{name}-lang = %{version} %description -n libtre5 TRE is a lightweight, robust, and efficient POSIX compatible regexp @@ -85,6 +86,9 @@ Group: System/Libraries %description -n python-%{name} This package contains the python bindings for the TRE library. +%lang_package + + %prep %setup -q %patch0 -p1 @@ -92,11 +96,6 @@ This package contains the python bindings for the TRE library. ./utils/autogen.sh %build -# Add compiler option below because of warnings: -# tre-python.c:577:3: warning: dereferencing type-punned pointer will break -# strict-aliasing rules [-Wstrict-aliasing] -export CXXFLAGS="%{optflags}" -export CFLAGS="%{optflags}" %configure --disable-static --enable-shared make %{?_smp_mflags} pushd python @@ -109,7 +108,7 @@ pushd python python setup.py install --prefix=%{_prefix} --root=%{buildroot} popd find %{buildroot} -type f -name "*.la" -delete -print -rm -rf %{buildroot}%{_datadir}/locale/ +%find_lang %{name} || echo -n >> %{name}.lang %files %defattr (-, root, root) @@ -136,6 +135,9 @@ rm -rf %{buildroot}%{_datadir}/locale/ %{python_sitearch}/tre.so %{python_sitearch}/*.egg-info +%files lang -f %{name}.lang +%defattr(-,root,root,-) + %check make check %{?_smp_mflags}