From fa667d528c5b60091423df3e95c086e48b267570095747f819d45d6b762e65a5 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Thu, 7 Jan 2010 12:03:51 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++ .gitignore | 1 + ready | 0 tre-0.8.0.tar.bz2 | 3 ++ tre.changes | 29 ++++++++++ tre.diff | 28 ++++++++++ tre.spec | 134 ++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 218 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ready create mode 100644 tre-0.8.0.tar.bz2 create mode 100644 tre.changes create mode 100644 tre.diff create mode 100644 tre.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/tre-0.8.0.tar.bz2 b/tre-0.8.0.tar.bz2 new file mode 100644 index 0000000..9adc6d6 --- /dev/null +++ b/tre-0.8.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8dc642c2cde02b2dac6802cdbe2cda201daf79c4ebcbb3ea133915edf1636658 +size 380714 diff --git a/tre.changes b/tre.changes new file mode 100644 index 0000000..cae41d3 --- /dev/null +++ b/tre.changes @@ -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 . New programs should + use . + + - 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) + diff --git a/tre.diff b/tre.diff new file mode 100644 index 0000000..400ad0d --- /dev/null +++ b/tre.diff @@ -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 + #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 +-# 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 diff --git a/tre.spec b/tre.spec new file mode 100644 index 0000000..b0e400f --- /dev/null +++ b/tre.spec @@ -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 + +%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 + +%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