blob: 409023621bfd38048fe14f4a55a453a859d4d37b (
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
|
Name: pkg-config
Version: 0.28
Release: 0
Summary: A library management system
License: GPL-2.0+
Group: Platfrom Development/Tools
Url: http://pkgconfig.freedesktop.org/
Source: http://pkgconfig.freedesktop.org/releases/%{name}-%{version}.tar.gz
Provides: pkgconfig = %{version}
# pkg-config has a virtual internal pkg-config.pc file, so we should provide it
Provides: pkgconfig(pkg-config) = %{version}
%description
The pkg-config program is used to retrieve information about installed
libraries in the system. It is typically used to compile and link
against one or more libraries.
%prep
%setup -q
%build
%configure\
--with-internal-glib \
%if "%{_lib}" == "lib"
--with-pc_path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig:/opt/kde3/%{_lib}/pkgconfig
%else
--with-pc_path=/usr/local/%{_lib}/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig:/opt/kde3/%{_lib}/pkgconfig
%endif
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_datadir}/doc/pkg-config/pkg-config-guide.html
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/pkg-config
%{_bindir}/*-pkg-config
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/pkg.m4
%docs_package
%changelog
|