File: libast.spec

package info (click to toggle)
libast 0.6-0pre2003010606sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,096 kB
  • ctags: 1,269
  • sloc: ansic: 9,888; sh: 8,265; makefile: 57
file content (54 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download
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
Summary: Library of Assorted Spiffy Things
Name: libast
Version: 0.6
Release: 0.1
Copyright: BSD
Group: System Environment/Libraries
Source: %{name}-%{version}.tar.gz
URL: http://www.eterm.org/
BuildRoot: /var/tmp/%{name}-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.

%changelog

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS
if [ -e ./configure ]
then
  %configure --prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir} --includedir=%{_includedir} --datadir=%{_datadir}
else
  ./autogen.sh --prefix=%{_prefix} --bindir=%{_bindir} --libdir=%{_libdir} --includedir=%{_includedir} --datadir=%{_datadir}
fi
make

%install
make DESTDIR=$RPM_BUILD_ROOT 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 README
%{_bindir}/*
%{_libdir}/*
%{_includedir}/*
%{_datadir}/*