1 |
# $Id$ |
2 |
|
3 |
%define basedir /usr/local/bglibs |
4 |
%define _libdir %{basedir}/lib |
5 |
%define _includedir %{basedir}/include |
6 |
|
7 |
Name: bglibs |
8 |
Summary: BG Libraries Collection |
9 |
Version: 1.102 |
10 |
Release: 1%{?dist} |
11 |
License: GPL |
12 |
Group: Development/Libraries |
13 |
Source: http://untroubled.org/bglibs/bglibs-1.102.tar.gz |
14 |
BuildRoot: %{_tmppath}/bglibs-buildroot |
15 |
BuildRequires: libtool |
16 |
URL: http://untroubled.org/bglibs/ |
17 |
Provides: bglibs-devel = %{version} |
18 |
|
19 |
%description |
20 |
BG Libraries Collection |
21 |
|
22 |
%prep |
23 |
%setup |
24 |
echo gcc "%{optflags}" -g >conf-cc |
25 |
echo gcc -g -L. >conf-ld |
26 |
echo %{_includedir} >conf-include |
27 |
echo %{_libdir} >conf-lib |
28 |
echo %{_bindir} >conf-bin |
29 |
echo %{_mandir} >conf-man |
30 |
|
31 |
%build |
32 |
make |
33 |
|
34 |
%install |
35 |
rm -fr %{buildroot} |
36 |
make install_prefix=%{buildroot} install |
37 |
|
38 |
cp -a doc %{buildroot}%{basedir} |
39 |
|
40 |
%clean |
41 |
rm -rf %{buildroot} |
42 |
|
43 |
%post |
44 |
fgrep -x /usr/local/bglibs/lib /etc/ld.so.conf >/dev/null \ |
45 |
|| echo /usr/local/bglibs/lib >>/etc/ld.so.conf |
46 |
/sbin/ldconfig |
47 |
|
48 |
%files |
49 |
%defattr(-,root,root) |
50 |
%doc ANNOUNCEMENT COPYING NEWS README |
51 |
%{basedir} |
52 |
%{_bindir}/* |
53 |
%{_mandir}/*/* |