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