From a1d83058597564a4b2a46b9daee89e2f5d05fe18fd74bd394021c2b0a4986879 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 8 Feb 2012 16:21:03 +0000 Subject: [PATCH] Accepting request 103179 from devel:libraries:c_c++ - Remove redundant tags/sections per specfile guideline suggestions - Parallel building using %_smp_mflags - Enable pkgconfig provides OBS-URL: https://build.opensuse.org/request/show/103179 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tre?expand=0&rev=7 --- tre.changes | 7 +++++++ tre.spec | 25 +++++-------------------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/tre.changes b/tre.changes index cae41d3..6d240cc 100644 --- a/tre.changes +++ b/tre.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Jan 29 01:09:35 UTC 2012 - jengelh@medozas.de + +- Remove redundant tags/sections per specfile guideline suggestions +- Parallel building using %_smp_mflags +- Enable pkgconfig provides + ------------------------------------------------------------------- Thu Dec 10 12:47:07 CET 2009 - pgajdos@suse.cz diff --git a/tre.spec b/tre.spec index b0e400f..18f42be 100644 --- a/tre.spec +++ b/tre.spec @@ -1,7 +1,7 @@ # -# spec file for package tre (Version 0.8.0) +# spec file for package tre # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,18 +27,13 @@ Patch0: %{name}.diff Summary: POSIX compatible regexp library with approximate matching Url: http://laurikari.net/tre/ BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig %description TRE is a lightweight, robust, and efficient POSIX compatible regexp matching library with some exciting features such as approximate matching. - - -Authors: --------- - Ville Laurikari - %package -n libtre5 License: GPL v2.1 or later Summary: POSIX compatible regexp library with approximate matching @@ -70,12 +65,6 @@ TRE is a lightweight, robust, and efficient POSIX compatible regexp matching library with some exciting features such as approximate matching. - - -Authors: --------- - Ville Laurikari - %package -n agrep License: NON-OSI-COMPLIANT(non-commercial) ; LGPLv2.1+ Summary: Another powerful grep with interesting features @@ -86,7 +75,6 @@ agrep is another powerful grep which has the ability to search for approximate patterns as well as block oriented search. - Authors: -------- Sun Wu @@ -94,23 +82,20 @@ Authors: Burra Gopal %prep -%setup -q -n tre-%{version} +%setup -q %patch0 -p1 %build export CXXFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS" %configure --disable-static --enable-shared -make %{?jobs:-j%jobs} +make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la rm -rf $RPM_BUILD_ROOT/usr/share/locale/ -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr (-, root, root) %doc ABOUT-NLS AUTHORS LICENSE NEWS README THANKS TODO