]> git.pld-linux.org Git - packages/tre.git/blame - tre.spec
refresh config.sub
[packages/tre.git] / tre.spec
CommitLineData
8c9507fb
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static lirbary
727b0859 4
02376586
JB
5Summary: TRE: approximate regex matching
6Summary(pl.UTF-8): TRE - przybliżone dopasowywanie wyrażeń regularnych
7bd360c0 7Name: tre
c9603519 8Version: 0.8.0
7667399c 9Release: 3
c9603519 10License: BSD
8c1df726
JB
11Group: Applications/Text
12#Source0Download: http://laurikari.net/tre/download/
7bd360c0 13Source0: http://laurikari.net/tre/%{name}-%{version}.tar.bz2
c9603519 14# Source0-md5: b4d3232593dadf6746f4727bdda20b41
7bd360c0 15URL: http://laurikari.net/tre/
8c9507fb
JB
16Provides: agrep
17Obsoletes: agrep
7bd360c0
ER
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21TRE is a lightweight, robust, and efficient POSIX compliant regexp
22matching library with some exciting features such as approximate
23(fuzzy) matching.
24
25This package also contains agrep (approximate grep) tool for
26approximate regexp matching in the style of grep.
27
2aae5ead 28%description -l pl.UTF-8
9d806a02
AG
29TRE jest lekką i wydajną biblioteką dopasowań przy użyciu wyrażeń
30regularnych, zgodną ze standardem POSIX oraz oferującą kilka
31przydatnych funkcji, jak np. dopasowywanie przybliżone (rozmyte).
2aae5ead 32
c0693124 33Pakiet zawiera także narzędzie agrep (przybliżony grep) do
9d806a02
AG
34przybliżonego dopasowywania przy użyciu wyrażeń regularnych w stylu
35grepa.
c0693124 36
7bd360c0
ER
37%package devel
38Summary: Header files for tre library
c0693124 39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki tre
7bd360c0
ER
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description devel
44Header files for tre library.
45
c0693124
JB
46%description devel -l pl.UTF-8
47Pliki nagłówkowe biblioteki tre.
48
8c9507fb
JB
49%package static
50Summary: Static tre library
51Summary(pl.UTF-8): Statyczna bibloteka tre
52Group: Development/Libraries
53Requires: %{name}-devel = %{version}-%{release}
54
55%description static
56Static tre library.
57
58%description static -l pl.UTF-8
59Statyczna bibloteka tre.
60
7bd360c0
ER
61%prep
62%setup -q
63
64%build
48595383 65cp -f /usr/share/automake/config.sub utils
8c9507fb
JB
66%configure \
67 %{?with_static_libs:--enable-static}
7bd360c0
ER
68%{__make}
69
70%install
71rm -rf $RPM_BUILD_ROOT
72
73%{__make} install \
74 DESTDIR=$RPM_BUILD_ROOT
75
76%find_lang %{name}
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post -p /sbin/ldconfig
82%postun -p /sbin/ldconfig
83
84%files -f %{name}.lang
85%defattr(644,root,root,755)
86%doc AUTHORS ChangeLog NEWS README THANKS TODO
87%attr(755,root,root) %{_bindir}/agrep
88%attr(755,root,root) %{_libdir}/libtre.so.*.*.*
02376586 89%attr(755,root,root) %ghost %{_libdir}/libtre.so.5
7bd360c0
ER
90%{_mandir}/man1/agrep.1*
91
92%files devel
93%defattr(644,root,root,755)
94%attr(755,root,root) %{_libdir}/libtre.so
95%{_libdir}/libtre.la
02376586 96%{_includedir}/tre
7bd360c0 97%{_pkgconfigdir}/tre.pc
8c9507fb 98
727b0859 99%if %{with static_libs}
8c9507fb
JB
100%files static
101%defattr(644,root,root,755)
102%{_libdir}/libtre.a
727b0859 103%endif
This page took 0.09018 seconds and 4 git commands to generate.