summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/boost.pc11
-rw-r--r--packaging/boost.spec7
2 files changed, 18 insertions, 0 deletions
diff --git a/packaging/boost.pc b/packaging/boost.pc
new file mode 100644
index 0000000..d71a282
--- /dev/null
+++ b/packaging/boost.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=/usr
+libdir=/usr/lib
+includedir=/usr/include/boost
+
+Name: Boost
+Description: Boost C++ libraries (@TEST_LIBRARY@)
+Version: @BOOST_VERSION@
+Libs: -L${libdir} -lboost_chrono -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_prg_exec_monitor -lboost_program_options -lboost_random -lboost_regex -lboost_serialization -lboost_system -lboost_thread -lboost_unit_test_framework -lboost_wserialization
+Cflags: -I/usr/include/boost
+
diff --git a/packaging/boost.spec b/packaging/boost.spec
index e0aad2c..84d6441 100644
--- a/packaging/boost.spec
+++ b/packaging/boost.spec
@@ -69,6 +69,7 @@ Source0: %{name}_%{file_version}.tar.bz2
Source1: boost-rpmlintrc
Source4: existing_extra_docs
Source1001: boost.manifest
+Source1002: boost.pc
%define _docdir %{_datadir}/doc/packages/boost-%{version}
@@ -353,6 +354,7 @@ This package contains the Boost::Timer runtime library.
%prep
%setup -q -n %{name}_%{file_version}
cp %{SOURCE1001} .
+cp %{SOURCE1002} .
#everything in the tarball has the executable flag set ...
find -type f ! \( -name \*.sh -o -name \*.py -o -name \*.pl \) -exec chmod -x {} +
@@ -470,6 +472,10 @@ for lib in ${blibs}; do
done
popd
+# install pkgconfig file
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
+install -D -m 644 %{SOURCE1002} $RPM_BUILD_ROOT%{_libdir}/pkgconfig
+
# install the man pages
# rm -rf doc/man/man3/boost::units::operator
# mv doc/man/man3/path.3 doc/man/man3/boost::property_tree::path.3
@@ -713,6 +719,7 @@ rm -f %{buildroot}%{_libdir}/*.a
%defattr(-, root, root, -)
%{_includedir}/boost
%{_libdir}/*.so
+%{_libdir}/pkgconfig/boost.pc
#%%{_datadir}/aclocal/*.m4
%files doc-html