/
libast.spec
64 lines (52 loc) · 1.65 KB
/
libast.spec
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
60
61
62
63
%define major 2
%define libname %mklibname ast %{major}
%define devname %mklibname ast -d
%define _disable_lto 1
Summary: Library of Assorted Spiffy Things
Name: libast
Version: 0.7
Release: 26
Group: System/Libraries
License: BSD
Url: http://www.eterm.org/
Source0: http://www.eterm.org/download/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(imlib2)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(xt)
%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.
%package -n %{libname}
Summary: Library of Assorted Spiffy Things
Group: System/Libraries
Provides: %{name} = %{version}-%{release}
%description -n %{libname}
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.
%package -n %{devname}
Summary: Development related files for LibAST
Group: Development/C
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{devname}
Install this package if you need to compile applications that needs
%{name}.
%prep
%autosetup -p1
%build
%configure
%make_build LIBS='-lX11 -lpcre'
%install
%make_install
%files -n %{libname}
%{_libdir}/libast.so.%{major}*
%files -n %{devname}
%doc README
%{_libdir}/lib*.so
%{_includedir}/*
%{_datadir}/aclocal/*.m4
%{_bindir}/libast-config