From c8f7791277086a40cd9108c1b9d4f92d6b7ff854 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 5 Nov 2012 16:34:49 -0800 Subject: [PATCH] add packaging --- packaging/pkg-config.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packaging/pkg-config.spec 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/* -- 2.7.4