summaryrefslogtreecommitdiff
path: root/libast.spec
blob: bbd5615c3dcd1a7b9cb528cf5ec0444d5d25e810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%{!?_rel:%{expand:%%global _rel 0.%(git describe --abbrev=4 --always --tags --long --dirty=.1 | cut -d- -f 2- | tr '-' '.')}}

%define __os_install_post /usr/lib/rpm/brp-compress
%if %{!?optflags:1}0
%{expand:%%define optflags %{!?el8:${RPM_OPT_FLAGS:--O0 -g3}}%{?el8:-O2 -ggdb3 -fPIC}}
%endif

Summary: Library of Assorted Spiffy Things
Name: libast
Version: 0.8.1
Release: %{_rel}%{?dist}
Group: System Environment/Libraries
License: BSD
URL: http://www.eterm.org/
Source: %{name}-%{version}.tar.gz
#BuildSuggests: pcre-devel xorg-x11-devel imlib2-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
LibAST is the Library of Assorted Spiffy Things.  It contains various
handy routines and drop-in substitutes for some good-but-non-portable
functions.  It currently has a built-in memory tracking subsystem as
well as some debugging aids and other similar tools.

It's not documented yet, mostly because it's not finished.  Hence the
version number that begins with 0.

%prep
%setup -q

%build
CFLAGS="%{optflags}"
export CFLAGS

%{configure} --prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir} \
             --includedir=%{_includedir} --datadir=%{_datadir} %{?acflags}
%{__make} %{?_smp_mflags} %{?mflags}

%install
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}

%post
test -x /sbin/ldconfig && /sbin/ldconfig || :

%postun
test -x /sbin/ldconfig && /sbin/ldconfig || :

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc ChangeLog DESIGN LICENSE README
%{_bindir}/*
%{_libdir}/*
%{_includedir}/*
%{_datadir}/*

%changelog