]>
Commit | Line | Data |
---|---|---|
a45480d9 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
eff546a7 | 5 | Summary: Library of Assorted Spiffy Things |
c4b79b97 | 6 | Summary(pl.UTF-8): Biblioteka AST (Assorted Spiffy Things) |
eff546a7 | 7 | Name: libast |
54bba3b7 | 8 | Version: 0.7 |
36435152 | 9 | Release: 1 |
eff546a7 | 10 | License: BSD |
7ea8d2bf | 11 | Group: Libraries |
eff546a7 | 12 | Source0: http://www.eterm.org/download/%{name}-%{version}.tar.gz |
54bba3b7 | 13 | # Source0-md5: a9ec3b2da317f35869316e6d9571d296 |
eff546a7 | 14 | URL: http://www.eterm.org/ |
24f2f12c | 15 | BuildRequires: automake |
7ea8d2bf | 16 | BuildRequires: imlib2-devel |
b7c4c47e | 17 | BuildRequires: pcre-devel |
eff546a7 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | LibAST is the Library of Assorted Spiffy Things. It contains various | |
22 | handy routines and drop-in substitutes for some good-but-non-portable | |
23 | functions. It currently has a built-in memory tracking subsystem as | |
24 | well as some debugging aids and other similar tools. | |
25 | ||
634b6d04 JR |
26 | %description -l pl.UTF-8 |
27 | LibAST to biblioteka Assorted Spiffy Things. Zawiera różne podręczne | |
28 | procedury i zastępniki niektórych dobrych, ale nie przenośnych | |
29 | funkcji. Aktualnie ma wbudowany system śledzenia pamięci, trochę | |
30 | pomocy odpluskwiających i parę podobnych narzędzi. | |
5be25387 | 31 | |
eff546a7 | 32 | %package devel |
5be25387 | 33 | Summary: Library of Assorted Spiffy Things header files |
c4b79b97 | 34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AST |
eff546a7 | 35 | Group: X11/Development/Libraries |
b7c4c47e | 36 | Requires: %{name} = %{version}-%{release} |
37e463b9 JB |
37 | Requires: imlib2-devel |
38 | Requires: pcre-devel | |
eff546a7 | 39 | |
40 | %description devel | |
41 | Header files and development documentation for libast. | |
42 | ||
634b6d04 JR |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe i dokumentacja programisty do libast. | |
5be25387 | 45 | |
eff546a7 | 46 | %package static |
47 | Summary: Libast static libraries | |
c4b79b97 | 48 | Summary(pl.UTF-8): Biblioteki statyczne libast |
eff546a7 | 49 | Group: X11/Development/Libraries |
b7c4c47e | 50 | Requires: %{name}-devel = %{version}-%{release} |
eff546a7 | 51 | |
52 | %description static | |
53 | Libast static libraries. | |
54 | ||
634b6d04 | 55 | %description static -l pl.UTF-8 |
eff546a7 | 56 | Biblioteki statyczne libast. |
57 | ||
eff546a7 | 58 | %prep |
59 | %setup -q | |
60 | ||
61 | %build | |
54bba3b7 | 62 | cp -f /usr/share/automake/config.sub . |
a45480d9 | 63 | %configure \ |
64 | %{!?with_static_libs:--disable-static} | |
eff546a7 | 65 | %{__make} |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
7ea8d2bf | 69 | |
6240a39d JB |
70 | %{__make} install \ |
71 | DESTDIR=$RPM_BUILD_ROOT | |
eff546a7 | 72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
6240a39d JB |
76 | %post -p /sbin/ldconfig |
77 | %postun -p /sbin/ldconfig | |
78 | ||
eff546a7 | 79 | %files |
80 | %defattr(644,root,root,755) | |
6240a39d | 81 | %doc ChangeLog README |
54bba3b7 | 82 | %attr(755,root,root) %{_libdir}/libast.so.*.*.* |
eff546a7 | 83 | |
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
54bba3b7 JB |
86 | %doc DESIGN |
87 | %attr(755,root,root) %{_bindir}/libast-config | |
88 | %attr(755,root,root) %{_libdir}/libast.so | |
89 | %{_libdir}/libast.la | |
90 | %{_includedir}/libast* | |
91 | %{_aclocaldir}/libast.m4 | |
eff546a7 | 92 | |
a45480d9 | 93 | %if %{with static_libs} |
eff546a7 | 94 | %files static |
95 | %defattr(644,root,root,755) | |
54bba3b7 | 96 | %{_libdir}/libast.a |
a45480d9 | 97 | %endif |