%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
-%{_includedir}/ginac/*.h
+%{_libdir}/pkgconfig/ginac.pc
+%{_includedir}/ginac
%{_infodir}/*.info*
%{_mandir}/man1/ginac-config.1*
%{_bindir}/ginac-config
-%{_datadir}/aclocal/*
+%{_datadir}/aclocal/ginac.m4
%files utils
%defattr(-,root,root)
%{_mandir}/man1/viewgar.1*
%changelog
+* Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de>
+- added pkg-config metadata file to devel package
+
* Thu Nov 1 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>
- moved ginsh and viewgar to "utils" package
# GiNaC runtime configuration script
bin_SCRIPTS = ginac-config
+BUILT_SOURCES = ginac-config
+ginac-config: ginac-config.in
# Man pages
man_MANS = ginac-config.1
m4datadir = $(datadir)/aclocal
m4data_DATA = ginac.m4
+# pkg-config metadata
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = ginac.pc
+$(pkgconfig_DATA): config.status
+
# All the rest of the distributed files
-EXTRA_DIST = ginac.m4 GiNaC.spec depcomp
+EXTRA_DIST = ginac.m4 ginac.pc GiNaC.spec depcomp
# Rule to build tar-bzipped distribution package
$(PACKAGE)-$(VERSION).tar.gz: dist
GiNaC.spec
ginac-config
ginac-config.1
+ginac.pc
ginac/Makefile
ginac/version.h
check/Makefile
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: GiNaC
+Description: C++ library for symbolic calculations
+Version: @VERSION@
+# uncomment this when a pkg-config'd cln exists
+# CAUTION: this will merge in the cln libs and cflags which are already in
+# GINACLIB_LIBS and GINACLIB_CPPFLAGS
+#Requires: cln >= 1.1.0
+Libs: -L${libdir} -lginac @GINACLIB_LIBS@
+Cflags: -I${includedir} @GINACLIB_CPPFLAGS@