- 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
This commit is contained in:
parent
8a4184e1e2
commit
b6a05af9b8
@ -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
|
Tue Apr 8 10:01:26 CDT 2014 - bjones@ece.msstate.edu
|
||||||
|
|
||||||
|
14
tre.spec
14
tre.spec
@ -48,6 +48,7 @@ Group: System/Libraries
|
|||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Obsoletes: libtre
|
Obsoletes: libtre
|
||||||
Provides: libtre
|
Provides: libtre
|
||||||
|
Recommends: %{name}-lang = %{version}
|
||||||
|
|
||||||
%description -n libtre5
|
%description -n libtre5
|
||||||
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
TRE is a lightweight, robust, and efficient POSIX compatible regexp
|
||||||
@ -85,6 +86,9 @@ Group: System/Libraries
|
|||||||
%description -n python-%{name}
|
%description -n python-%{name}
|
||||||
This package contains the python bindings for the TRE library.
|
This package contains the python bindings for the TRE library.
|
||||||
|
|
||||||
|
%lang_package
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
@ -92,11 +96,6 @@ This package contains the python bindings for the TRE library.
|
|||||||
./utils/autogen.sh
|
./utils/autogen.sh
|
||||||
|
|
||||||
%build
|
%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
|
%configure --disable-static --enable-shared
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
pushd python
|
pushd python
|
||||||
@ -109,7 +108,7 @@ pushd python
|
|||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
popd
|
popd
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
rm -rf %{buildroot}%{_datadir}/locale/
|
%find_lang %{name} || echo -n >> %{name}.lang
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr (-, root, root)
|
%defattr (-, root, root)
|
||||||
@ -136,6 +135,9 @@ rm -rf %{buildroot}%{_datadir}/locale/
|
|||||||
%{python_sitearch}/tre.so
|
%{python_sitearch}/tre.so
|
||||||
%{python_sitearch}/*.egg-info
|
%{python_sitearch}/*.egg-info
|
||||||
|
|
||||||
|
%files lang -f %{name}.lang
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check %{?_smp_mflags}
|
make check %{?_smp_mflags}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user