summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-05 16:36:14 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-02-11 06:02:12 -0800
commita07a540a4cf43d22cb29f0d11f67a4dc8a93fd3d (patch)
treed31f8f18fbba069f5029b539f58a75ef3ab9493f
parentc8f7791277086a40cd9108c1b9d4f92d6b7ff854 (diff)
downloadpkg-config-a07a540a4cf43d22cb29f0d11f67a4dc8a93fd3d.tar.gz
pkg-config-a07a540a4cf43d22cb29f0d11f67a4dc8a93fd3d.tar.bz2
pkg-config-a07a540a4cf43d22cb29f0d11f67a4dc8a93fd3d.zip
add packaging
-rw-r--r--packaging/pkg-config.spec58
1 files changed, 30 insertions, 28 deletions
diff --git a/packaging/pkg-config.spec b/packaging/pkg-config.spec
index 0a541a6..6ea1ba9 100644
--- a/packaging/pkg-config.spec
+++ b/packaging/pkg-config.spec
@@ -1,44 +1,46 @@
Name: pkg-config
-Version: 0.25
-Release: 3
+Version: 0.27.1
+Release: 0
+Summary: A library management system
License: GPL-2.0+
-Summary: A tool for determining compilation options
-Url: http://pkgconfig.freedesktop.org
-Group: Development/Tools
-Source: http://www.freedesktop.org/software/pkgconfig/releases/%{name}-%{version}.tar.gz
-Source1001: %{name}.manifest
-BuildRequires: popt-devel
-
+Group: System/Packages
+Url: http://pkgconfig.freedesktop.org/
+Source: http://pkgconfig.freedesktop.org/releases/%{name}-%{version}.tar.gz
+Provides: pkgconfig = %{version}
+Obsoletes: pkgconfig < 0.21
+# pkg-config has a virtual internal pkg-config.pc file, so we should provide it
Provides: pkgconfig(pkg-config) = %{version}
-Provides: pkgconfig
%description
-The pkgconfig tool determines compilation options. For each required
-library, it reads the configuration file and outputs the necessary
-compiler and linker flags.
+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
-cp %{SOURCE1001} .
-%configure --disable-shared \
- --with-pc-path=%{_libdir}/pkgconfig:%{_datadir}/pkgconfig
-make
+%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
-mkdir -p %{buildroot}%{_libdir}/pkgconfig
-mkdir -p %{buildroot}%{_datadir}/pkgconfig
+# We'll put it with the other docs
+rm %{buildroot}%{_datadir}/doc/pkg-config/pkg-config-guide.html
-# we include this below, already
-rm -rf %{buildroot}%{_datadir}/doc/pkg-config
+%files
+%defattr(-,root,root)
+%doc COPYING
+%{_bindir}/pkg-config
+%dir %{_datadir}/aclocal
+%{_datadir}/aclocal/pkg.m4
-%remove_docs
+%docs_package
-%files
-%manifest %{name}.manifest
-%{_bindir}/*
-%{_libdir}/pkgconfig
-%{_datadir}/pkgconfig
-%{_datadir}/aclocal/*
+%changelog