summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/pkg-config.spec44
1 files changed, 44 insertions, 0 deletions
diff --git a/packaging/pkg-config.spec b/packaging/pkg-config.spec
new file mode 100644
index 0000000..0a541a6
--- /dev/null
+++ b/packaging/pkg-config.spec
@@ -0,0 +1,44 @@
+Name: pkg-config
+Version: 0.25
+Release: 3
+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
+
+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.
+
+%prep
+%setup -q
+
+%build
+cp %{SOURCE1001} .
+%configure --disable-shared \
+ --with-pc-path=%{_libdir}/pkgconfig:%{_datadir}/pkgconfig
+make
+
+%install
+%make_install
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+mkdir -p %{buildroot}%{_datadir}/pkgconfig
+
+# we include this below, already
+rm -rf %{buildroot}%{_datadir}/doc/pkg-config
+
+%remove_docs
+
+%files
+%manifest %{name}.manifest
+%{_bindir}/*
+%{_libdir}/pkgconfig
+%{_datadir}/pkgconfig
+%{_datadir}/aclocal/*