1 |
unnilennium |
1.2 |
# $Id: bglibs.spec,v 1.1 2016/02/03 21:28:06 vip-ire Exp $ |
2 |
vip-ire |
1.1 |
|
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 |
unnilennium |
1.2 |
Release: 2%{?dist} |
11 |
vip-ire |
1.1 |
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 |
unnilennium |
1.2 |
Requires: /usr/bin/perl |
19 |
|
|
Requires: perl(Getopt::Std) |
20 |
|
|
Requires: perl(strict) |
21 |
|
|
Requires: glibc |
22 |
|
|
Autoreq: 0 |
23 |
vip-ire |
1.1 |
|
24 |
|
|
%description |
25 |
|
|
BG Libraries Collection |
26 |
|
|
|
27 |
|
|
%prep |
28 |
|
|
%setup |
29 |
|
|
echo gcc "%{optflags}" -g >conf-cc |
30 |
|
|
echo gcc -g -L. >conf-ld |
31 |
|
|
echo %{_includedir} >conf-include |
32 |
|
|
echo %{_libdir} >conf-lib |
33 |
|
|
echo %{_bindir} >conf-bin |
34 |
|
|
echo %{_mandir} >conf-man |
35 |
|
|
|
36 |
|
|
%build |
37 |
|
|
make |
38 |
|
|
|
39 |
|
|
%install |
40 |
|
|
rm -fr %{buildroot} |
41 |
|
|
make install_prefix=%{buildroot} install |
42 |
|
|
|
43 |
|
|
cp -a doc %{buildroot}%{basedir} |
44 |
|
|
|
45 |
|
|
%clean |
46 |
|
|
rm -rf %{buildroot} |
47 |
|
|
|
48 |
|
|
%post |
49 |
|
|
fgrep -x /usr/local/bglibs/lib /etc/ld.so.conf >/dev/null \ |
50 |
|
|
|| echo /usr/local/bglibs/lib >>/etc/ld.so.conf |
51 |
|
|
/sbin/ldconfig |
52 |
|
|
|
53 |
|
|
%files |
54 |
|
|
%defattr(-,root,root) |
55 |
|
|
%doc ANNOUNCEMENT COPYING NEWS README |
56 |
|
|
%{basedir} |
57 |
|
|
%{_bindir}/* |
58 |
|
|
%{_mandir}/*/* |