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