add packaging
authorAnas Nashif <anas.nashif@intel.com>
Tue, 6 Nov 2012 00:34:49 +0000 (16:34 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Mon, 11 Feb 2013 14:02:12 +0000 (06:02 -0800)
packaging/pkg-config.spec [new file with mode: 0644]

diff --git a/packaging/pkg-config.spec b/packaging/pkg-config.spec
new file mode 100644 (file)
index 0000000..0a541a6
--- /dev/null
@@ -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/*