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