]>
Commit | Line | Data |
---|---|---|
c23b5dc8 | 1 | # |
2 | # Conditional build: | |
4a12e5c7 | 3 | %bcond_without static_libs # static library |
c23b5dc8 | 4 | # |
5 | Summary: Event expression library | |
4a12e5c7 | 6 | Summary(pl.UTF-8): Biblioteka wyrażeń dotyczących zdarzeń |
c23b5dc8 | 7 | Name: libee |
4a12e5c7 | 8 | Version: 0.4.1 |
c23b5dc8 | 9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: http://www.libee.org/files/download/%{name}-%{version}.tar.gz | |
4a12e5c7 | 13 | # Source0-md5: 7bbf4160876c12db6193c06e2badedb2 |
c23b5dc8 | 14 | URL: http://www.libee.org/ |
4a12e5c7 | 15 | BuildRequires: autoconf >= 2.61 |
c23b5dc8 | 16 | BuildRequires: automake |
17 | BuildRequires: libestr-devel | |
4a12e5c7 | 18 | BuildRequires: libtool |
c23b5dc8 | 19 | BuildRequires: libxml2-devel |
4a12e5c7 | 20 | BuildRequires: zlib-devel |
c23b5dc8 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | Libee is an event expression library that is inspired by the upcoming | |
25 | CEE standard. Right now, it provides capabilities to generate and emit | |
26 | messages in a set of standard formats and read a set of different | |
27 | input formats. Libee also comes with a handy conversion tool that | |
28 | provides format transformation without the need to program. | |
29 | ||
4a12e5c7 JB |
30 | %description -l pl.UTF-8 |
31 | Libee to biblioteka wyrażeń dotychących zdarzeń, zainspirowana | |
32 | nadchodzącym standardem CEE. Obecnie daje możliwość generowania i | |
33 | wysyłania komunikatów w zbiorze standardowych formatów oraz czytania | |
34 | zbioru innych formatów wejściowych. Pakiet zawiera także podręczne | |
35 | narzędzie do konwersji, pozwalające na przekształcanie formatów bez | |
36 | potrzeby pisania programu. | |
37 | ||
c23b5dc8 | 38 | %package devel |
39 | Summary: Header files for libee library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libee | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
4a12e5c7 | 43 | Requires: libestr-devel |
c23b5dc8 | 44 | |
45 | %description devel | |
46 | Header files for libee library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki libee. | |
50 | ||
51 | %package static | |
52 | Summary: Static libee library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka libee | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static libee library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka libee. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | ||
66 | %build | |
4a12e5c7 | 67 | %{__libtoolize} |
c23b5dc8 | 68 | %{__aclocal} -I m4 |
69 | %{__autoconf} | |
70 | %{__autoheader} | |
71 | %{__automake} | |
72 | %configure \ | |
4a12e5c7 | 73 | --disable-silent-rules \ |
c23b5dc8 | 74 | %{!?with_static_libs:--disable-static} |
4a12e5c7 JB |
75 | |
76 | # make can't resolve $(top_builddir)/src/libee.la dependency | |
77 | %{__make} -C src libee.la | |
78 | ||
79 | %{__make} | |
c23b5dc8 | 80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
de3e943b | 87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libee.la |
88 | ||
c23b5dc8 | 89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS ChangeLog | |
4a12e5c7 | 98 | %attr(755,root,root) %{_sbindir}/libee-convert |
c23b5dc8 | 99 | %attr(755,root,root) %{_libdir}/libee.so.*.*.* |
100 | %attr(755,root,root) %ghost %{_libdir}/libee.so.0 | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
4a12e5c7 | 104 | %attr(755,root,root) %{_libdir}/libee.so |
c23b5dc8 | 105 | %{_includedir}/libee |
106 | %{_pkgconfigdir}/libee.pc | |
107 | ||
108 | %if %{with static_libs} | |
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libee.a | |
112 | %endif |