SHA256
6
0
forked from pool/tre

Accepting request 28061 from devel:libraries:c_c++

Copy from devel:libraries:c_c++/tre based on submit request 28061 from user pgajdos

OBS-URL: https://build.opensuse.org/request/show/28061
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tre?expand=0&rev=1
This commit is contained in:
OBS User autobuild 2010-01-07 12:03:51 +00:00 committed by Git OBS Bridge
commit fa667d528c
7 changed files with 218 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

0
ready Normal file
View File

3
tre-0.8.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8dc642c2cde02b2dac6802cdbe2cda201daf79c4ebcbb3ea133915edf1636658
size 380714

29
tre.changes Normal file
View File

@ -0,0 +1,29 @@
-------------------------------------------------------------------
Thu Dec 10 12:47:07 CET 2009 - pgajdos@suse.cz
- updated to 0.8.0:
- Added tre_ prefix to all functions exported from libtre. This
changes the binary interface (ABI). The old source interface
(API) is still available in <tre/regex.h>. New programs should
use <tre/tre.h>.
- Visual C++ 6 project files replaced with Visual Studio 2008 files.
- Bug fixes.
- package renamed to tre, splitted out subpackage libtre5
-------------------------------------------------------------------
Thu Jun 18 11:05:33 CEST 2009 - pgajdos@suse.cz
- updated to 0.7.6 (see NEWS)
-------------------------------------------------------------------
Thu Jan 24 20:51:08 CET 2008 - coolo@suse.de
- fix build
-------------------------------------------------------------------
Sun Feb 25 12:28:33 CET 2007 - dmueller@suse.de
- Initial package (0.7.5)

28
tre.diff Normal file
View File

@ -0,0 +1,28 @@
diff -ru tre-0.7.5/lib/tre-match-approx.c tre-0.7.5.new/lib/tre-match-approx.c
--- tre-0.7.5/lib/tre-match-approx.c 2006-12-08 19:07:03.000000000 +0000
+++ tre-0.7.5.new/lib/tre-match-approx.c 2008-01-24 19:47:12.000000000 +0000
@@ -23,24 +23,6 @@
#include <config.h>
#endif /* HAVE_CONFIG_H */
-/* AIX requires this to be the first thing in the file. */
-#ifdef TRE_USE_ALLOCA
-#ifndef __GNUC__
-# if HAVE_ALLOCA_H
-# include <alloca.h>
-# else
-# ifdef _AIX
- #pragma alloca
-# else
-# ifndef alloca /* predefined by HP cc +Olibcalls */
-char *alloca ();
-# endif
-# endif
-# endif
-#endif
-#endif /* TRE_USE_ALLOCA */
-
-#define __USE_STRING_INLINES
#undef __NO_INLINE__
#include <assert.h>

134
tre.spec Normal file
View File

@ -0,0 +1,134 @@
#
# spec file for package tre (Version 0.8.0)
#
# Copyright (c) 2010 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: tre
Version: 0.8.0
Release: 1
License: LGPLv2.1+
Group: System/Libraries
Source0: http://laurikari.net/tre/tre-%{version}.tar.bz2
Patch0: %{name}.diff
Summary: POSIX compatible regexp library with approximate matching
Url: http://laurikari.net/tre/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
TRE is a lightweight, robust, and efficient POSIX compatible regexp
matching library with some exciting features such as approximate
matching.
Authors:
--------
Ville Laurikari <vl@iki.fi>
%package -n libtre5
License: GPL v2.1 or later
Summary: POSIX compatible regexp library with approximate matching
Group: System/Libraries
Requires: %{name} = %{version}
Obsoletes: libtre
Provides: libtre
%description -n libtre5
TRE is a lightweight, robust, and efficient POSIX compatible regexp
matching library with some exciting features such as approximate
matching.
%post -n libtre5 -p /sbin/ldconfig
%postun -n libtre5 -p /sbin/ldconfig
%package devel
License: LGPLv2.1+
Requires: libtre5 = %{version}
Summary: POSIX compatible regexp library with approximate matching
Group: Development/Libraries/C and C++
Obsoletes: libtre-devel
Provides: libtre-devel
%description devel
TRE is a lightweight, robust, and efficient POSIX compatible regexp
matching library with some exciting features such as approximate
matching.
Authors:
--------
Ville Laurikari <vl@iki.fi>
%package -n agrep
License: NON-OSI-COMPLIANT(non-commercial) ; LGPLv2.1+
Summary: Another powerful grep with interesting features
Group: Productivity/Text/Utilities
%description -n agrep
agrep is another powerful grep which has the ability to search for
approximate patterns as well as block oriented search.
Authors:
--------
Sun Wu
Udi Manber
Burra Gopal
%prep
%setup -q -n tre-%{version}
%patch0 -p1
%build
export CXXFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS"
%configure --disable-static --enable-shared
make %{?jobs:-j%jobs}
%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
%files -n libtre5
%defattr (-, root, root)
%{_libdir}/libtre.so.*
%files devel
%defattr (-, root, root)
%doc doc/default.css doc/tre-api.html doc/tre-syntax.html
%{_includedir}/*
%{_libdir}/libtre.so
%{_libdir}/pkgconfig/*
%files -n agrep
%defattr (-, root, root)
%{_bindir}/agrep
%{_mandir}/man1/agrep.1.gz
%changelog