[libfann] 40/242: Adding pkg-config and RPM stuff.

Christian Kastner chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to tag Version2_0_0
in repository libfann.

commit a7df4e0a8287b43f0b1619c908f892b3c3e1c903
Author: Evan Nemerson <evan at coeus-group.com>
Date:   Sun Jan 11 11:35:10 2004 +0000

    Adding pkg-config and RPM stuff.
---
 Makefile.am  |  3 +++
 configure.in |  2 +-
 fann.pc.in   | 10 +++++++++
 fann.spec.in | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 87 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 5a53815..11a70ea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,8 @@
 SUBDIRS = src
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = fann.pc
+
 EXTRA_DIST = doc examples benchmarks
 
 dist-hook:
diff --git a/configure.in b/configure.in
index c62471b..5275749 100644
--- a/configure.in
+++ b/configure.in
@@ -8,4 +8,4 @@ AC_HEADER_STDC
 AC_C_CONST
 AC_HEADER_TIME
 AC_CHECK_FUNCS(gettimeofday)
-AC_OUTPUT(Makefile src/Makefile src/include/Makefile)
+AC_OUTPUT(Makefile src/Makefile src/include/Makefile fann.pc fann.spec)
diff --git a/fann.pc.in b/fann.pc.in
new file mode 100644
index 0000000..8087ba1
--- /dev/null
+++ b/fann.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+ 
+Name: fann
+Description: Fast Artificial Neural Network Library
+Version: @VERSION@
+Libs: -L${libdir} -lm -lfann
+Cflags: -I${includedir}
diff --git a/fann.spec.in b/fann.spec.in
new file mode 100644
index 0000000..2540282
--- /dev/null
+++ b/fann.spec.in
@@ -0,0 +1,73 @@
+Summary:    A fast artificial neural network library.
+Name:       @PACKAGE@
+Version:    @VERSION@
+Release:    1
+License:    LGPL
+Group:      Development/Libraries
+URL:        http://fann.sf.net/
+Source:     http://prdownloads.sourceforge.net/fann/%{name}-%{version}.tar.bz2
+BuildRoot:  %{_tmppath}/%{name}-%{version}-root
+
+%package devel
+Summary: Development libraries for FANN
+Requires: fann = @VERSION at -%{release}
+Group: Development/Libraries
+
+%description
+Fast Artificial Neural Network (FANN) Library is written in ANSI C. The library implements multilayer feedforward ANNs, up to 150 times faster than other libraries. FANN supports execution in fixed point, for fast execution on systems like the iPAQ.
+
+%description devel
+This package is only needed if you intend to develop and/or compile programs based on the FANN library.
+
+%prep
+%setup -q
+./configure --prefix=@prefix@
+
+%build
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%{_libdir}/libdoublefann.so
+%{_libdir}/libdoublefann.so.1
+%{_libdir}/libdoublefann.so. at VERSION@
+%{_libdir}/libfloatfann.so
+%{_libdir}/libfloatfann.so.1
+%{_libdir}/libfloatfann.so. at VERSION@
+%{_libdir}/libfixedfann.so
+%{_libdir}/libfixedfann.so.1
+%{_libdir}/libfixedfann.so. at VERSION@
+%{_libdir}/libfann.so
+%{_libdir}/libfann.so.1
+%{_libdir}/libfann.so. at VERSION@
+
+%files devel
+%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
+%{_libdir}/pkgconfig/fann.pc
+%{_libdir}/libdoublefann.a
+%{_libdir}/libdoublefann.la
+%{_libdir}/libfloatfann.a
+%{_libdir}/libfloatfann.la
+%{_libdir}/libfixedfann.a
+%{_libdir}/libfixedfann.la
+%{_libdir}/libfann.a
+%{_libdir}/libfann.la
+%{_includedir}/fann.h
+%{_includedir}/doublefann.h
+%{_includedir}/fann_internal.h
+%{_includedir}/floatfann.h
+%{_includedir}/fann_data.h
+%{_includedir}/fixedfann.h
+%{_includedir}/compat_time.h
+%{_includedir}/fann_errno.h
+
+%changelog
+* Mon Jan 10 2004 Evan Nemerson <evan at coeus-group.com>
+- RPM created

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git



More information about the debian-science-commits mailing list