[mlpack] 09/11: package for debian

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sat Apr 5 13:03:07 UTC 2014


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

bap pushed a commit to branch master
in repository mlpack.

commit 730e267a02f2cb26583fbb6d62d9663513aa092e
Author: Barak A. Pearlmutter <barak+git at cs.nuim.ie>
Date:   Fri Apr 4 22:38:56 2014 +0100

    package for debian
    
    - cp COPYRIGHT.txt debian/copyright (!) which is already in the right format!
    - add debian/copyright debian/* stanza
    - copy build dependencies from doc/guide/build.hpp (grep for apt-get)
    - build dependency on doxygen for docs
    - build dependency on subversion for the horror (now REMOVED)
    - allow parallel build
    - disable dh_auto_test (fails some cases, should really look into it)
    - follow upstream packaging efforts and put docs in mlpack-doc
    - snarf some packaging script snippets from upstream
    - put tutorials and README in the doc package
    - quilt patch to run doxygen instead of extra line in override_dh_auto_build:
    	$(MAKE) -C obj-* doc
      might want to reconsider this...
---
 debian/README.source                            |   6 -
 debian/TODO                                     |   4 -
 debian/build-from-svn.sh                        |  23 -
 debian/changelog                                |   8 +-
 debian/compat                                   |   2 +-
 debian/control                                  |  92 ++--
 debian/copyright                                |  46 +-
 debian/libmlpack-dev.dirs                       |   2 -
 debian/libmlpack-dev.install                    |  10 +-
 debian/libmlpack1.dirs                          |   1 -
 debian/libmlpack1.install                       |   3 +-
 debian/mlpack-bin.install                       |   4 +-
 debian/mlpack-bin.manpages                      |   1 -
 debian/mlpack-doc.doc-base.mlpack-manual        |  14 +
 debian/mlpack-doc.docs                          |   5 +-
 debian/mlpack-doc.install                       |   5 +
 debian/mlpack-doc.manpages                      |   7 +
 debian/patches/build-Doxygen.patch              |  18 +-
 debian/patches/debian-changes-1.0.2-1+~svn14032 | 548 ------------------------
 debian/patches/no-debug-or-profiling-info.patch |  16 -
 debian/patches/require-manpage-generation.patch |  11 -
 debian/patches/series                           |   3 -
 debian/rules                                    |  27 +-
 debian/shlibs.local                             |   2 +-
 debian/source/format                            |   1 +
 debian/source/lintian-overrides                 |   2 -
 debian/source/local-options                     |   1 +
 debian/watch                                    |   2 +-
 28 files changed, 156 insertions(+), 708 deletions(-)

diff --git a/debian/README.source b/debian/README.source
deleted file mode 100644
index bee4c7f..0000000
--- a/debian/README.source
+++ /dev/null
@@ -1,6 +0,0 @@
-mlpack for Debian
------------------
-
-Please visit the website for information about using mlpack:
-
-http://www.mlpack.org/
diff --git a/debian/TODO b/debian/TODO
deleted file mode 100644
index e07a08c..0000000
--- a/debian/TODO
+++ /dev/null
@@ -1,4 +0,0 @@
-* First, it needs to be built in the pbuilder or sbuilder environment for 12.04, this was built under 11.04
-* It needs to build against the version of arma that is in the repos, currently it builds against the latest jenkins package I wrote (2.4.2)
-* It needs to build against the version of boost in the repos, this is built against the 11.04 boost package
-* It will need to be signed for upload to launchpad, which will then sign the package(s) with its own key
diff --git a/debian/build-from-svn.sh b/debian/build-from-svn.sh
deleted file mode 100755
index d0fa800..0000000
--- a/debian/build-from-svn.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-VER=$(dpkg-parsechangelog | sed -rne 's,^Version: (.+).*,\1,p')
-SVN_VER=$(svn info | sed -rne 's,^Revision: ([^-]+).*,\+~svn\1,p')
-DEB_VER=$VER$SVN_VER
-
-echo "[ $0 ] Software Rev:    "$VER
-echo "[ $0 ] Subversion Rev:  "$SVN_VER
-echo "[ $0 ] Package Version: "$DEB_VER
-
-sed -i "s,$VER,$DEB_VER," debian/changelog
-
-rm -rf ../build-area/*
-
-./debian/rules get-orig-source
-mv *.tar.gz ../tarballs/
-svn-buildpackage --svn-builder "debuild -us -uc" --svn-non-interactive --svn-ignore-new --svn-dont-purge --svn-rm-prev-dir
-SUCCESS=$?
-
-echo "[ $0 ] Listing package contents:"
-ls ../build-area/*.deb | xargs -n 1 dpkg-deb -c
-
-exit $SUCCESS
diff --git a/debian/changelog b/debian/changelog
index ece657c..4476f45 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
-mlpack (1.0.2-1+~svn14032) UNRELEASED; urgency=low
+mlpack (1.0.0-1) unstable; urgency=medium
 
-  * Initial release (Closes: #100)
+  * Initial release (closes: #nnnn)
+  * Thanks to Sterling Lewis Peet <sterling.peet at gatech.edu> for an
+    earlier packaging from which a bit of material was poached
 
- -- Sterling Lewis Peet <sterling.peet at gatech.edu>  Tue, 21 Aug 2012 15:19:33 -0400
+ -- Barak A. Pearlmutter <bap at debian.org>  Fri, 04 Apr 2014 10:57:49 +0100
diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index c8ce28d..cabaf64 100644
--- a/debian/control
+++ b/debian/control
@@ -1,59 +1,77 @@
 Source: mlpack
-Priority: extra
-Maintainer: Sterling Peet <sterling.peet at gatech.edu>
-Build-Depends: debhelper (>= 7.0.50~), cmake, doxygen
-# Build-Depends: liblapack-dev, libarmadillo-dev (>=2.4.0), libxml2-dev, libboost-dev, libboost-math-dev, libboost-program-options-dev, libboost-random-dev, libboost-test-dev, debhelper (>= 7.0.50~), cmake, doxygen
-Standards-Version: 3.9.1
 Section: libs
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Barak A. Pearlmutter <bap at debian.org>
+DM-Upload-Allowed: yes
+Build-Depends: cmake, debhelper (>=9), dh-exec,
+		libboost-math-dev,
+		libboost-program-options-dev,
+		libboost-random-dev,
+		libboost-test-dev,
+		libxml2-dev,
+		libarmadillo-dev,
+		doxygen, doxygen-latex
+Standards-Version: 3.9.5
 Homepage: http://www.mlpack.org/
-Vcs-Svn: http://svn.cc.gatech.edu/fastlab/mlpack/conf/packages/mlpack/trunk
-Vcs-Browser: http://trac.research.cc.gatech.edu/fastlab/browser
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/mlpack.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/mlpack.git
 
 Package: libmlpack-dev
 Section: libdevel
 Architecture: any
-Depends: libarmadillo-dev (>= 2.4.0), liblapack-dev, libxml2-dev, libboost-dev, libmlpack1 (= ${binary:Version}), ${misc:Depends}
-Description: Fast and scalable C++ machine learning library header files
- This package contains the development header files for the MLPACK library.
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, libmlpack1 (= ${binary:Version}),
+	 libarmadillo-dev (>= 1:3.6.0), liblapack-dev, libxml2-dev, libboost-dev
+Suggests: mlpack-doc
+Description: intuitive, fast, scalable C++ machine learning library (development libs)
+ This package contains the MLPACK Library development files.
  .
- MLPACK (Machine Learning PACK) is an open-source, intuitive, fast, and
- scalable C++ machine learning library, meant to be a machine learning
- analog to LAPACK. It aims to implement a wide array of machine learning
- methods and function as a "swiss army knife" for machine learning researchers.
+ MLPACK (Machine Learning PACK) is an intuitive, fast, scalable C++
+ machine learning library, meant to be a machine learning analog to
+ LAPACK.  It aims to implement a wide array of machine learning
+ methods and function as a "swiss army knife" for machine learning
+ researchers.
 
 Package: libmlpack1
 Section: libs
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Fast and scalable C++ machine learning library
- This package contains the mlpack library itself.
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, libmlpack1 (>= ${binary:Version})
+Description: intuitive, fast, scalable C++ machine learning library (runtime library)
+ This package contains the MLPACK Library runtime files.
  .
- MLPACK (Machine Learning PACK) is an open-source, intuitive, fast, and 
- scalable C++ machine learning library, meant to be a machine learning 
- analog to  LAPACK. It aims to implement a wide array of machine learning 
- methods and function as a "swiss army knife" for machine learning researchers.
+ MLPACK (Machine Learning PACK) is an intuitive, fast, scalable C++
+ machine learning library, meant to be a machine learning analog to
+ LAPACK.  It aims to implement a wide array of machine learning
+ methods and function as a "swiss army knife" for machine learning
+ researchers.
 
 Package: mlpack-bin
-Section: libs
+Section: science
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: Executable cli binaries for Machine Learning methods
- This package contains example binaries using the mlpack library.
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, libmlpack1 (>= ${binary:Version})
+Description: intuitive, fast, scalable C++ machine learning library
+ This package contains example binaries using the MLPACK Library.
  .
- MLPACK (Machine Learning PACK) is an open-source, intuitive, fast, and
- scalable C++ machine learning library, meant to be a machine learning
- analog to  LAPACK. It aims to implement a wide array of machine learning
- methods and function as a "swiss army knife" for machine learning researchers.
+ MLPACK (Machine Learning PACK) is an intuitive, fast, scalable C++
+ machine learning library, meant to be a machine learning analog to
+ LAPACK.  It aims to implement a wide array of machine learning
+ methods and function as a "swiss army knife" for machine learning
+ researchers.
 
 Package: mlpack-doc
 Section: doc
 Architecture: all
-Depends: libmlpack1, ${misc:Depends}
-Description: Documentation for using MLPACK binaries and library
- This package contains the html documentation for the mlpack library
- built from the mlpack source.
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: intuitive, fast, scalable C++ machine learning library
+ This package contains documentation for the MLPACK Library.
  .
- MLPACK (Machine Learning PACK) is an open-source, intuitive, fast, and
- scalable C++ machine learning library, meant to be a machine learning
- analog to  LAPACK. It aims to implement a wide array of machine learning
- methods and function as a "swiss army knife" for machine learning researchers.
+ MLPACK is an intuitive, fast, scalable C++ machine learning library,
+ meant to be a machine learning analog to LAPACK. It aims to implement
+ a wide array of machine learning methods and function as a "swiss
+ army knife" for machine learning researchers.
diff --git a/debian/copyright b/debian/copyright
index 349a83a..f67a6d0 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,29 +2,33 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: MLPACK
 Upstream-Contact: Ryan Curtin <gth671b at mail.gatech.edu>
 Source: http://www.mlpack.org/
+ See also the development repository,
+ http://svn.cc.gatech.edu/fastlab/mlpack/conf/packages/mlpack/trunk
+ http://trac.research.cc.gatech.edu/fastlab/browser
 
 Files: *
-Copyright: 2008-2012, Ryan Curtin <gth671b at mail.gatech.edu>
-           2008-2012, Bill March <march at gatech.edu>
-           2008-2012, Dongryeol Lee <dongryel at cc.gatech.edu>
-           2008-2012, Nishant Mehta <niche at cc.gatech.edu>
-           2008-2012, Parikshit Ram <p.ram at gatech.edu>
-           2009-2012, James Cline <james.cline at gatech.edu>
-           2010-2012, Sterling Peet <sterling.peet at gatech.edu>
-           2011-2012, Matthew Amidon <mamidon at gatech.edu>
-           2011-2012, Neil Slagle <npslagle at gmail.com>
-           2011-2012, Ajinkya Kale <kaleajinkya at gmail.com>
-           2011-2011, Vlad Grantcharov <vlad321 at gatech.edu>
-           2011-2011, Noah Kauffman <notoriousnoah at gmail.com>
-           2008-2009, Chip Mappus <cmappus at gatech.edu>
-           2008-2009, Hua Ouyang <houyang at gatech.edu>
-           2008-2009, Long Quoc Tran <tqlong at gmail.com>
-           2011-2011, Guillermo Colon <gcolon7 at mail.gatech.edu>
-           2008-2009, Wei Guan <wguan at cc.gatech.edu>
-           2008-2009, Ryan Riegel <rriegel at cc.gatech.edu>
-           2008-2009, Nikolaos Vasiloglou <nvasil at ieee.org>
-           2008-2009, Garry Boyer <garryb at gmail.com>
-           2012-2012, Andreas Löf <andreas.lof at cs.waikato.ac.nz>
+Copyright: Copyright 2008-2014, Ryan Curtin <gth671b at mail.gatech.edu>
+Copyright: Copyright 2008-2013, Bill March <march at gatech.edu>
+Copyright: Copyright 2008-2012, Dongryeol Lee <dongryel at cc.gatech.edu>
+Copyright: Copyright 2008-2013, Nishant Mehta <niche at cc.gatech.edu>
+Copyright: Copyright 2008-2013, Parikshit Ram <p.ram at gatech.edu>
+Copyright: Copyright 2010-2012, James Cline <james.cline at gatech.edu>
+Copyright: Copyright 2010-2013, Sterling Peet <sterling.peet at gatech.edu>
+Copyright: Copyright 2011-2012, Matthew Amidon <mamidon at gatech.edu>
+Copyright: Copyright 2011-2012, Neil Slagle <npslagle at gmail.com>
+Copyright: Copyright 2011, Ajinkya Kale <kaleajinkya at gmail.com>
+Copyright: Copyright 2011, Vlad Grantcharov <vlad321 at gatech.edu>
+Copyright: Copyright 2011, Noah Kauffman <notoriousnoah at gmail.com>
+Copyright: Copyright 2012, Rajendran Mohan <rmohan88 at gatech.edu>
+Copyright: Copyright 2012, Trironk Kiatkungwanglai <trironk at gmail.com>
+Copyright: Copyright 2012, Patrick Mason <patrick.s.mason at gmail.com>
+Copyright: Copyright 2013-2014, Marcus Edel <marcus.edel at fu-berlin.de>
+Copyright: Copyright 2013, Mudit Raj Gupta <mudit.raaj.gupta at gmail.com>
+Copyright: Copyright 2013, Sumedh Ghaisas <sumedhghaisas at gmail.com>
 License: LGPL-3+
   The text of the license is available on Debian systems in the
   /usr/share/common-licenses/LGPL-3 file.
+
+Files: debian/*
+Copyright: Barak A. Pearlmutter <bap at debian.org>
+License: LGPL-3+
diff --git a/debian/libmlpack-dev.dirs b/debian/libmlpack-dev.dirs
deleted file mode 100644
index 4418816..0000000
--- a/debian/libmlpack-dev.dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/lib
-usr/include
diff --git a/debian/libmlpack-dev.install b/debian/libmlpack-dev.install
old mode 100644
new mode 100755
index 9fa2a3f..2625f6b
--- a/debian/libmlpack-dev.install
+++ b/debian/libmlpack-dev.install
@@ -1,6 +1,4 @@
-usr/include/*
-#usr/lib/lib*.a
-usr/lib/lib*.so
-#usr/lib/pkgconfig/*
-#usr/lib/*.la
-#usr/share/pkgconfig/*
+#! /usr/bin/dh-exec
+/usr/include
+/usr/lib/lib*.so /usr/lib/${DEB_HOST_MULTIARCH}/
+# /usr/lib/lib*.a  /usr/lib/${DEB_HOST_MULTIARCH}/
diff --git a/debian/libmlpack1.dirs b/debian/libmlpack1.dirs
deleted file mode 100644
index 6845771..0000000
--- a/debian/libmlpack1.dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib
diff --git a/debian/libmlpack1.install b/debian/libmlpack1.install
old mode 100644
new mode 100755
index d0dbfd1..48d4c35
--- a/debian/libmlpack1.install
+++ b/debian/libmlpack1.install
@@ -1 +1,2 @@
-usr/lib/lib*.so.*
+#! /usr/bin/dh-exec
+/usr/lib/lib*.so.* /usr/lib/${DEB_HOST_MULTIARCH}/
diff --git a/debian/mlpack-bin.install b/debian/mlpack-bin.install
index 4cb4bd3..29d4c1d 100644
--- a/debian/mlpack-bin.install
+++ b/debian/mlpack-bin.install
@@ -1 +1,3 @@
-/usr/bin/*
+
+/usr/bin
+/usr/share/man/man1
diff --git a/debian/mlpack-bin.manpages b/debian/mlpack-bin.manpages
deleted file mode 100644
index 5ea05fe..0000000
--- a/debian/mlpack-bin.manpages
+++ /dev/null
@@ -1 +0,0 @@
-debian/tmp/usr/share/man/man1/*
diff --git a/debian/mlpack-doc.doc-base.mlpack-manual b/debian/mlpack-doc.doc-base.mlpack-manual
new file mode 100644
index 0000000..ca6c064
--- /dev/null
+++ b/debian/mlpack-doc.doc-base.mlpack-manual
@@ -0,0 +1,14 @@
+Document: mlpack-manual
+Title: MLPACK Reference Manual
+Author: Ryan Curtin, et al
+Abstract:
+ Reference Manual for the MLPACK C++ machine learning library.
+ This documentation is generated by DOxygen.
+Section: Programming/C++
+
+Format: PDF
+Files: /usr/share/doc/mlpack-doc/refman.pdf
+
+Format: HTML
+Index: /usr/share/doc/mlpack-doc/html/index.html
+Files: /usr/share/doc/mlpack-doc/html/*
diff --git a/debian/mlpack-doc.docs b/debian/mlpack-doc.docs
index 6edf15f..01148ce 100644
--- a/debian/mlpack-doc.docs
+++ b/debian/mlpack-doc.docs
@@ -1,2 +1,5 @@
-debian/tmp/usr/share/doc/mlpack/html
+# reference manual in PDF
+obj-*/doc/latex/refman.pdf
+README.txt
+doc/guide
 doc/tutorials
diff --git a/debian/mlpack-doc.install b/debian/mlpack-doc.install
new file mode 100644
index 0000000..976d378
--- /dev/null
+++ b/debian/mlpack-doc.install
@@ -0,0 +1,5 @@
+# reference manual in HTML
+/usr/share/doc/mlpack/html/*.html	/usr/share/doc/mlpack-doc/html/
+/usr/share/doc/mlpack/html/*.png	/usr/share/doc/mlpack-doc/html/
+/usr/share/doc/mlpack/html/*.js		/usr/share/doc/mlpack-doc/html/
+/usr/share/doc/mlpack/html/*.css	/usr/share/doc/mlpack-doc/html/
diff --git a/debian/mlpack-doc.manpages b/debian/mlpack-doc.manpages
new file mode 100644
index 0000000..068b6c6
--- /dev/null
+++ b/debian/mlpack-doc.manpages
@@ -0,0 +1,7 @@
+# There is no make install target for these, and moreover, there are
+# inappropriate files with names starting with _ and build directory
+# paths baked in, like
+#  obj-*/doc/man/man3/_home_barak_src_git_mlpack_src_mlpack_core_optimizers_aug_lagrangian_.3
+# which are avoided by the following.
+
+obj-*/doc/man/man3/[A-Za-z]*
diff --git a/debian/patches/build-Doxygen.patch b/debian/patches/build-Doxygen.patch
index aa7f434..0b17ebf 100644
--- a/debian/patches/build-Doxygen.patch
+++ b/debian/patches/build-Doxygen.patch
@@ -1,11 +1,21 @@
+From: "Barak A. Pearlmutter" <barak+git at cs.nuim.ie>
+Date: Sat, 5 Apr 2014 13:18:23 +0100
+Subject: build Doxygen
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0bbf8f7..6347af2 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -240,7 +240,7 @@
+@@ -281,7 +281,7 @@ if (DOXYGEN_FOUND)
    )
  
    # Generate documentation.
 -  add_custom_target(doc
 +  add_custom_target(doc ALL
-       COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
-       DEPENDS ${CMAKE_BINARY_DIR}/Doxyfile
-       WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
+       COMMAND "${DOXYGEN_EXECUTABLE}" "${CMAKE_BINARY_DIR}/Doxyfile"
+       DEPENDS "${CMAKE_BINARY_DIR}/Doxyfile"
+       WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
diff --git a/debian/patches/debian-changes-1.0.2-1+~svn14032 b/debian/patches/debian-changes-1.0.2-1+~svn14032
deleted file mode 100644
index bf6c928..0000000
--- a/debian/patches/debian-changes-1.0.2-1+~svn14032
+++ /dev/null
@@ -1,548 +0,0 @@
-Description: Upstream changes introduced in version 1.0.2-1+~svn14032
- This patch has been created by dpkg-source during the package build.
- Here's the last changelog entry, hopefully it gives details on why
- those changes were made:
- .
- mlpack (1.0.2-1+~svn14032) UNRELEASED; urgency=low
- .
-   * Initial release (Closes: #100)
- .
- The person named in the Author field signed this changelog entry.
-Author: Sterling Lewis Peet <sterling.peet at gatech.edu>
-Bug-Debian: http://bugs.debian.org/100
-
----
-The information above should follow the Patch Tagging Guidelines, please
-checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
-are templates for supplementary fields that you might want to add:
-
-Origin: <vendor|upstream|other>, <url of original patch>
-Bug: <url in upstream bugtracker>
-Bug-Debian: http://bugs.debian.org/<bugnumber>
-Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
-Forwarded: <no|not-needed|url proving that it has been forwarded>
-Reviewed-By: <name and email of someone who approved the patch>
-Last-Update: <YYYY-MM-DD>
-
---- /dev/null
-+++ mlpack-1.0.2/rpm/range_search_install.patch
-@@ -0,0 +1,7 @@
-+--- mlpack-1.0.1/src/mlpack/methods/range_search/CMakeLists.txt 	2012-03-07 23:56:53.000000000 -0500
-++++ mlpack-1.0.1/src/mlpack/methods/range_search/CMakeLists.txt.new	2012-03-07 23:56:31.000000000 -0500
-+@@ -22,3 +22,4 @@
-+ target_link_libraries(range_search
-+   mlpack
-+ )
-++install(TARGETS range_search RUNTIME DESTINATION bin)
---- /dev/null
-+++ mlpack-1.0.2/rpm/mlpack.spec
-@@ -0,0 +1,198 @@
-+Name:           mlpack
-+Version:        1.0.1
-+Release:        3%{?dist}
-+Summary:        Scalable, fast C++ machine learning library
-+
-+Group:          System Environment/Libraries
-+License:        LGPLv3+
-+URL:            http://www.mlpack.org
-+Source0:        http://www.mlpack.org/files/%{name}-%{version}.tar.gz
-+
-+# CMake by default doesn't provide support for specifying libdir on install
-+# (argh!) and this has to be done by hand in the CMake configuration.  This'll
-+# be fixed by mlpack 1.0.2.
-+Patch0:         cmake_libdir.patch
-+
-+# Oversight means that the rule which says "install range_search to bin/" didn't
-+# get there.
-+Patch1:         range_search_install.patch
-+
-+# The GetKernelMatrix patch fixes a bug where a function was called before
-+# it was ever declared.  This isn't a problem in certain GCC settings, but
-+# in the Fedora setting it throws an error (which is easily fixed by that
-+# patch).  Fixed upstream in trunk (not 1.0.1).
-+Patch2:         getkernelmatrix_definition.patch
-+
-+# More recent Armadillo versions require specific calls to arma::as_scalar().
-+# Fixed upstream in trunk (not 1.0.1).
-+Patch3:         fully_qualified_as_scalar.patch
-+
-+# The hacked-in sparse support for Armadillo in mlpack 1.0.1 does not work with
-+# recent Armadillo versions.  That support becomes irrelevant with the
-+# impending 3.6 release so the issue is not fixed in trunk due to its pending
-+# obsolescence.
-+Patch4:         no_sparse_tests.patch
-+
-+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-+
-+BuildRequires:  cmake >= 2.8.0
-+BuildRequires:  armadillo-devel >= 2.4.0
-+BuildRequires:  libxml2-devel
-+BuildRequires:  boost-devel, boost-program-options, boost-math
-+BuildRequires:  lapack-devel
-+# For generating man pages (CMake configuration takes care of this assuming
-+# txt2man is installed).  It is possible that we could just add all the man
-+# pages, generated offline, as a patch to this SRPM, but txt2man seems to exist
-+# in repos.
-+BuildRequires:  txt2man
-+
-+# 2.4.0 precipitated an internal Armadillo switch from 'u32' to 'uword' and the
-+# Armadillo extensions in mlpack depend on the use of 'uword' which is
-+# undefined <= 2.4.0.
-+Requires:       armadillo >= 2.4.0
-+Requires:       libxml2
-+Requires:       boost, boost-program-options, boost-math
-+Requires:       lapack
-+
-+%description
-+mlpack is a C++ machine learning library with emphasis on scalability, speed,
-+and ease-of-use. Its aim is to make machine learning possible for novice users
-+by means of a simple, consistent API, while simultaneously exploiting C++
-+language features to provide maximum performance and maximum flexibility for
-+expert users. mlpack outperforms competing machine learning libraries by large
-+margins.
-+
-+# Executables.
-+%package bin
-+Summary:        Command-line executables for mlpack (machine learning library)
-+Group:          Applications/Engineering
-+Requires:       %{name}%{_isa} = %{version}-%{release}
-+
-+%description bin
-+mlpack is a C++ machine learning library with emphasis on scalability, speed,
-+and ease-of-use. Its aim is to make machine learning possible for novice users
-+by means of a simple, consistent API, while simultaneously exploiting C++
-+language features to provide maximum performance and maximum flexibility for
-+expert users. mlpack outperforms competing machine learning libraries by large
-+margins.  This package provides the command-line executables which run mlpack
-+methods and related documentation.
-+
-+# Development headers.
-+%package devel
-+Summary:        Development headers for mlpack (C++ machine learning library)
-+Group:          System Environment/Libraries
-+Requires:       %{name} = %{version}-%{release}
-+Requires:       armadillo-devel >= 2.4.0
-+Requires:       boost-devel, boost-program-options, boost-math
-+Requires:       libxml2-devel
-+Requires:       lapack-devel
-+
-+%description devel
-+mlpack is a C++ machine learning library with emphasis on scalability, speed,
-+and ease-of-use. Its aim is to make machine learning possible for novice users
-+by means of a simple, consistent API, while simultaneously exploiting C++
-+language features to provide maximum performance and maximum flexibility for
-+expert users. mlpack outperforms competing machine learning libraries by large
-+margins.  This package provides the headers to compile applications against
-+mlpack.
-+
-+
-+%prep
-+%setup -q
-+%patch0 -p1
-+%patch1 -p1
-+%patch2 -p1
-+%patch3 -p1
-+%patch4 -p1
-+
-+
-+%build
-+%{cmake} -D LIBDIR=%{_libdir} -D DEBUG=OFF -D PROFILE=OFF .
-+make %{?_smp_mflags}
-+
-+
-+%install
-+rm -rf $RPM_BUILD_ROOT
-+make install DESTDIR=$RPM_BUILD_ROOT
-+
-+# Rename executables to mlpack_* to avoid possible naming collisions.  Upstream
-+# bug report http://trac.research.cc.gatech.edu/fastlab/ticket/236.
-+for i in `ls $RPM_BUILD_ROOT/%{_bindir}`
-+do
-+  %{__mv} $RPM_BUILD_ROOT/%{_bindir}/$i $RPM_BUILD_ROOT/%{_bindir}/mlpack_$i;
-+done
-+for i in `ls $RPM_BUILD_ROOT/%{_mandir}/man1`
-+do
-+  %{__mv} $RPM_BUILD_ROOT/%{_mandir}/man1/$i $RPM_BUILD_ROOT/%{_mandir}/man1/mlpack_$i;
-+done
-+
-+%clean
-+rm -rf $RPM_BUILD_ROOT
-+
-+%post -p /sbin/ldconfig
-+
-+%postun -p /sbin/ldconfig
-+
-+
-+%files
-+%defattr(-,root,root,-)
-+%{_libdir}/libmlpack.so.1
-+%{_libdir}/libmlpack.so.1.0.1
-+
-+%files bin
-+%defattr(-,root,root,-)
-+%{_bindir}/mlpack_allknn
-+%{_bindir}/mlpack_allkfn
-+%{_bindir}/mlpack_emst
-+%{_bindir}/mlpack_gmm
-+%{_bindir}/mlpack_hmm_generate
-+%{_bindir}/mlpack_hmm_loglik
-+%{_bindir}/mlpack_hmm_train
-+%{_bindir}/mlpack_hmm_viterbi
-+%{_bindir}/mlpack_kernel_pca
-+%{_bindir}/mlpack_kmeans
-+%{_bindir}/mlpack_lars
-+%{_bindir}/mlpack_linear_regression
-+%{_bindir}/mlpack_local_coordinate_coding
-+%{_bindir}/mlpack_nbc
-+%{_bindir}/mlpack_nca
-+%{_bindir}/mlpack_pca
-+%{_bindir}/mlpack_radical
-+%{_bindir}/mlpack_range_search
-+%{_bindir}/mlpack_sparse_coding
-+%{_mandir}/man1/mlpack_allknn.1*
-+%{_mandir}/man1/mlpack_allkfn.1*
-+%{_mandir}/man1/mlpack_emst.1*
-+%{_mandir}/man1/mlpack_gmm.1*
-+%{_mandir}/man1/mlpack_hmm_generate.1*
-+%{_mandir}/man1/mlpack_hmm_loglik.1*
-+%{_mandir}/man1/mlpack_hmm_train.1*
-+%{_mandir}/man1/mlpack_hmm_viterbi.1*
-+%{_mandir}/man1/mlpack_kernel_pca.1*
-+%{_mandir}/man1/mlpack_kmeans.1*
-+%{_mandir}/man1/mlpack_lars.1*
-+%{_mandir}/man1/mlpack_linear_regression.1*
-+%{_mandir}/man1/mlpack_local_coordinate_coding.1*
-+%{_mandir}/man1/mlpack_nbc.1*
-+%{_mandir}/man1/mlpack_nca.1*
-+%{_mandir}/man1/mlpack_pca.1*
-+%{_mandir}/man1/mlpack_radical.1*
-+%{_mandir}/man1/mlpack_range_search.1*
-+%{_mandir}/man1/mlpack_sparse_coding.1*
-+
-+%files devel
-+%defattr(-,root,root,-)
-+%{_libdir}/libmlpack.so
-+%{_includedir}/mlpack/
-+
-+%changelog
-+* Sun Jul 29 2012 Ryan Curtin <gth671b at mail.gatech.edu> - 1.0.1-3
-+- Fix group names for packages.
-+- Comment patches more verbosely.
-+- Rename exectuables to mlpack_* to avoid possible naming conflicts.
-+
-+* Thu Jul 21 2012 Sterling Lewis Peet <sterling.peet at gatech.edu> - 1.0.1-2
-+- Include GetKernelMatrix patch so that mlpack builds using fedora flags.
-+
-+* Thu Mar 08 2012 Ryan Curtin <gth671b at mail.gatech.edu> - 1.0.1-1
-+- Initial packaging of mlpack.
---- /dev/null
-+++ mlpack-1.0.2/rpm/getkernelmatrix_definition.patch
-@@ -0,0 +1,36 @@
-+Index: mlpack-1.0.1/src/mlpack/methods/kernel_pca/kernel_pca.hpp
-+===================================================================
-+--- mlpack-1.0.1/src/mlpack/methods/kernel_pca/kernel_pca.hpp	(revision 13174)
-++++ mlpack-1.0.1/src/mlpack/methods/kernel_pca/kernel_pca.hpp.new	(working copy)
-+@@ -88,6 +88,9 @@
-+ 
-+ }; // class KernelPCA
-+ 
-++template <typename KernelType>
-++arma::mat GetKernelMatrix(KernelType kernel, arma::mat transData);
-++
-+ }; // namespace kpca
-+ }; // namespace mlpack
-+ 
-+Index: mlpack-1.0.1/src/mlpack/methods/kernel_pca/kernel_pca_impl.hpp
-+===================================================================
-+--- mlpack-1.0.1/src/mlpack/methods/kernel_pca/kernel_pca_impl.hpp	(revision 13174)
-++++ mlpack-1.0.1/src/mlpack/methods/kernel_pca/kernel_pca_impl.hpp.new	(working copy)
-+@@ -109,9 +109,6 @@
-+     data.shed_rows(newDimension, data.n_rows - 1);
-+ }
-+ 
-+-}; // namespace mlpack
-+-}; // namespace kpca
-+-
-+ template <typename KernelType>
-+ arma::mat GetKernelMatrix(KernelType kernel, arma::mat transData)
-+ {
-+@@ -130,4 +127,7 @@
-+   return kernelMat;
-+ }
-+ 
-++}; // namespace mlpack
-++}; // namespace kpca
-++
-+ #endif
---- /dev/null
-+++ mlpack-1.0.2/rpm/cmake_libdir.patch
-@@ -0,0 +1,28 @@
-+--- mlpack-1.0.1/CMakeLists.txt 	2012-03-07 23:35:40.000000000 -0500
-++++ mlpack-1.0.1/CMakeLists.txt.new	2012-03-07 23:37:32.000000000 -0500
-+@@ -75,6 +75,12 @@
-+ option(PROFILE "Compile with profiling information" ON)
-+ option(ARMA_EXTRA_DEBUG "Compile with extra Armadillo debugging symbols." OFF)
-+
-++if(LIBDIR)
-++  message(STATUS "Setting library install directory to ${LIBDIR}.")
-++else(LIBDIR)
-++  set(LIBDIR "lib") # Default.
-++endif()
-++
-+ # This is as of yet unused.
-+ #option(PGO "Use profile-guided optimization if not a debug build" ON)
-+
-+--- mlpack-1.0.1/src/mlpack/CMakeLists.txt	2012-03-07 23:35:47.000000000 -0500
-++++ mlpack-1.0.1/src/mlpack/CMakeLists.txt.new	2012-03-07 23:36:03.000000000 -0500
-+@@ -55,8 +55,8 @@
-+ # be entered...
-+ install(TARGETS mlpack
-+   RUNTIME DESTINATION bin
-+-  LIBRARY DESTINATION lib
-+-  ARCHIVE DESTINATION lib)
-++  LIBRARY DESTINATION ${LIBDIR}
-++  ARCHIVE DESTINATION ${LIBDIR})
-+
-+ # For 'make test'.
-+ add_custom_target(test
---- /dev/null
-+++ mlpack-1.0.2/rpm/armadillo.spec
-@@ -0,0 +1,238 @@
-+Name:           armadillo
-+Version:        3.0.4
-+Release:        1%{?dist}
-+Summary:        Fast C++ matrix library with interfaces to LAPACK and ATLAS
-+
-+Group:          Development/Libraries
-+License:        LGPLv3+
-+URL:            http://arma.sourceforge.net/
-+Source:         http://sourceforge.net/projects/arma/files/%{name}-%{version}.tar.gz
-+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-+BuildRequires:  cmake, boost-devel, blas-devel, lapack-devel, atlas-devel
-+
-+%description
-+Armadillo is a C++ linear algebra library (matrix maths)
-+aiming towards a good balance between speed and ease of use.
-+Integer, floating point and complex numbers are supported,
-+as well as a subset of trigonometric and statistics functions.
-+Various matrix decompositions are provided through optional
-+integration with LAPACK and ATLAS libraries.
-+A delayed evaluation approach is employed (during compile time)
-+to combine several operations into one and reduce (or eliminate) 
-+the need for temporaries. This is accomplished through recursive
-+templates and template meta-programming.
-+This library is useful if C++ has been decided as the language
-+of choice (due to speed and/or integration capabilities), rather
-+than another language like Matlab or Octave.
-+
-+
-+%package devel
-+Summary:        Development headers and documentation for the Armadillo C++ library
-+Group:          Development/Libraries
-+Requires:       %{name} = %{version}-%{release}
-+Requires:       boost-devel, blas-devel, lapack-devel, atlas-devel, libstdc++-devel
-+
-+# The header files of Armadillo include some Boost and ATLAS header files,
-+# delivered within the boost-devel and atlas-devel sub-packages, respectively.
-+# However, since there is no explicit dependency on Boost or ATLAS libraries
-+# (most of Boost is delivered as header files only), the RPM building process 
-+# does not detect these dependencies.  These dependencies must therefore be 
-+# added manually.
-+
-+%description devel
-+This package contains files necessary for development using the
-+Armadillo C++ library. It contains header files, example programs,
-+and user documentation (reference guide).
-+
-+
-+%prep
-+%setup -q
-+
-+# convert DOS end-of-line to UNIX end-of-line
-+
-+for file in README.txt; do
-+  sed 's/\r//' $file >$file.new && \
-+  touch -r $file $file.new && \
-+  mv $file.new $file
-+done
-+
-+%build
-+%{cmake}
-+%{__make} VERBOSE=1 %{?_smp_mflags}
-+
-+
-+%install
-+rm -rf $RPM_BUILD_ROOT
-+%{__make} install DESTDIR=$RPM_BUILD_ROOT
-+rm -rf   $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
-+mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
-+rm -f examples/Makefile.cmake
-+rm -rf examples/example1_win32
-+rm -rf examples/example2_win32
-+rm -rf examples/lib_win32
-+cp -r LICENSE.txt licenses README.txt index.html examples docs $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
-+
-+%clean
-+rm -rf $RPM_BUILD_ROOT
-+
-+
-+%post -p /sbin/ldconfig
-+
-+%postun -p /sbin/ldconfig
-+
-+
-+%files
-+%defattr(-,root,root,-)
-+%{_libdir}/*.so.*
-+%dir %{_docdir}/%{name}-%{version}/
-+%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
-+%doc %{_docdir}/%{name}-%{version}/licenses/
-+
-+%files devel
-+%defattr(-,root,root,-)
-+%{_libdir}/*.so
-+%{_includedir}/armadillo
-+%{_includedir}/armadillo_bits/
-+%doc %{_docdir}/%{name}-%{version}/README.txt
-+%doc %{_docdir}/%{name}-%{version}/index.html
-+%doc %{_docdir}/%{name}-%{version}/examples/
-+%doc %{_docdir}/%{name}-%{version}/docs/
-+%{_datadir}/Armadillo/
-+
-+%changelog
-+* Wed Jul 18 2012 Ryan Curtin <ryan at igglybob.com> - 3.0.4-1
-+- spec updated for Armadillo 3.0.4
-+
-+* Fri Jul 06 2012 Sterling Peet - 2.4.0-1
-+- spec updated for Armadillo 2.4.0
-+
-+* Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.3-2
-+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
-+
-+* Thu Sep 15 2011 Conrad Sanderson - 2.2.3-1
-+- spec updated for Armadillo 2.2.3
-+
-+* Mon Apr 18 2011 Conrad Sanderson - 1.2.0-1
-+- spec updated for Armadillo 1.2.0
-+
-+* Mon Nov 15 2010 Conrad Sanderson - 1.0.0-1
-+- spec updated for Armadillo 1.0.0
-+
-+* Thu Oct 14 2010 Conrad Sanderson - 0.9.90-1
-+- spec updated for Armadillo 0.9.90
-+
-+* Tue Sep 21 2010 Conrad Sanderson - 0.9.80-1
-+- spec updated for Armadillo 0.9.80
-+
-+* Wed Sep 01 2010 Conrad Sanderson - 0.9.70-1
-+- spec updated for Armadillo 0.9.70
-+
-+* Wed Aug 04 2010 Conrad Sanderson - 0.9.60-1
-+- spec updated for Armadillo 0.9.60
-+
-+* Wed Jul 14 2010 Conrad Sanderson - 0.9.52-1
-+- spec updated for Armadillo 0.9.52
-+
-+* Wed Jul 07 2010 Conrad Sanderson - 0.9.50-1
-+- spec updated for Armadillo 0.9.50
-+
-+* Wed Jun 02 2010 Conrad Sanderson - 0.9.10-1
-+- spec updated for Armadillo 0.9.10
-+
-+* Fri May 14 2010 Conrad Sanderson - 0.9.8-1
-+- spec updated for Armadillo 0.9.8
-+
-+* Tue Apr 28 2010 Conrad Sanderson - 0.9.6-1
-+- spec updated for Armadillo 0.9.6
-+
-+* Tue Mar 16 2010 Conrad Sanderson - 0.9.4-1
-+- spec updated for Armadillo 0.9.4
-+
-+* Tue Mar 02 2010 Conrad Sanderson - 0.9.2-2
-+- added explicit dependencies to the devel package
-+
-+* Tue Mar 02 2010 Conrad Sanderson - 0.9.2-1
-+- spec updated for Armadillo 0.9.2
-+
-+* Fri Feb 05 2010 Conrad Sanderson - 0.9.0-1
-+- spec updated for Armadillo 0.9.0
-+
-+* Mon Jan 27 2010 Conrad Sanderson - 0.8.2-1
-+- spec updated for Armadillo 0.8.2
-+
-+* Mon Dec 14 2009 Conrad Sanderson - 0.8.0-1
-+- spec updated for Armadillo 0.8.0
-+
-+* Fri Oct 23 2009 Conrad Sanderson - 0.7.2-1
-+- spec updated for Armadillo 0.7.2
-+
-+* Mon Oct 05 2009 Conrad Sanderson - 0.7.0-1
-+- spec updated for Armadillo 0.7.0
-+
-+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.6.12-3
-+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
-+
-+* Wed Jul 06 2009  Conrad Sanderson - 0.6.12-2
-+- added conversion of DOS end-of-line to UNIX end-of-line for README.txt
-+
-+* Wed Jun 22 2009  Conrad Sanderson - 0.6.12-1
-+- spec updated for Armadillo 0.6.12
-+
-+* Wed Jun 15 2009  Conrad Sanderson - 0.6.11-8
-+- cleanup of dependencies
-+- explanation as to why boost-devel and atlas-devel are required by armadillo-devel
-+
-+* Wed Jun 09 2009  Conrad Sanderson - 0.6.11-7
-+- explicit declaration of doc directory in the main package
-+- explicitly marked doc files in both packages
-+
-+* Wed Jun 09 2009  Conrad Sanderson - 0.6.11-6
-+- removed symlinks
-+- placed all documentation and license files into one directory that is shared by both packages
-+
-+* Wed Jun 09 2009  Conrad Sanderson - 0.6.11-5
-+- added symlinks to LICENSE.txt and licenses in the devel package
-+
-+* Wed Jun 08 2009  Conrad Sanderson - 0.6.11-4
-+- added LICENSE.txt to the main package
-+
-+* Wed May 22 2009  Conrad Sanderson - 0.6.11-3
-+- using cmake macro instead of directly calling cmake
-+
-+* Wed May 21 2009  Conrad Sanderson - 0.6.11-2
-+- moved all text files to devel package to retain consistency with the layout in the original .tar.gz
-+
-+* Wed May 08 2009  Conrad Sanderson - 0.6.10-2
-+- Removed several explicit build dependencies that are provided by default in Fedora
-+- Simplified handling of doc files
-+
-+* Wed May 02 2009  Conrad Sanderson - 0.6.10-1
-+- Updated spec file for Armadillo 0.6.10
-+
-+* Wed Apr 02 2009  Conrad Sanderson
-+- Updated list of files in 0.6.7 release
-+
-+* Wed Apr 02 2009  Conrad Sanderson
-+- Updated description
-+
-+* Wed Mar 24 2009  Conrad Sanderson
-+- Added explicit dependence on libstdc++-devel
-+
-+* Wed Mar 17 2009  Conrad Sanderson
-+- Simplified specification of directories
-+- Removed library packages specified by "Requires", as library dependencies are detected automatically
-+
-+* Wed Mar 12 2009  Conrad Sanderson
-+- Modified to generate separate devel package (subsumes previous doc package)
-+- Removed redundant packages specified by "BuildRequires"
-+- Added CMake installation prefixes to allow for x86_64
-+
-+* Wed Feb  4 2009  Conrad Sanderson
-+- Modified to generate separate doc package
-+
-+* Thu Jan 28 2009  Conrad Sanderson
-+- Added argument to cmake: -DCMAKE_INSTALL_PREFIX=/usr 
-+
-+* Thu Jan 22 2009  Conrad Sanderson
-+- Initial spec file prepared
-+
diff --git a/debian/patches/no-debug-or-profiling-info.patch b/debian/patches/no-debug-or-profiling-info.patch
deleted file mode 100644
index e3819d5..0000000
--- a/debian/patches/no-debug-or-profiling-info.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -2,9 +2,10 @@
- project(mlpack C CXX)
- 
- # First, define all the compilation options.
--# We default to debugging mode for developers.
--option(DEBUG "Compile with debugging information" ON)
--option(PROFILE "Compile with profiling information" ON)
-+# Default to clean for packaging and release; developers can call for debugging
-+# and profiling if they need to.
-+option(DEBUG "Compile with debugging information" OFF)
-+option(PROFILE "Compile with profiling information" OFF)
- option(ARMA_EXTRA_DEBUG "Compile with extra Armadillo debugging symbols." OFF)
- option(MATLAB_BINDINGS "Compile MATLAB bindings if MATLAB is found." OFF)
- 
diff --git a/debian/patches/require-manpage-generation.patch b/debian/patches/require-manpage-generation.patch
deleted file mode 100644
index b30ccd1..0000000
--- a/debian/patches/require-manpage-generation.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -262,7 +262,7 @@
- 
-   # It's not a requirement that we make man pages.
-   if (NOT TXT2MAN)
--    message(WARNING "txt2man not found; man pages will not be generated.")
-+    message(STATUS "txt2man not found; man pages will not be generated.")
-   else (NOT TXT2MAN)
-     # We have the tools.  We can make them.
-     add_custom_target(man ALL
diff --git a/debian/patches/series b/debian/patches/series
index 3487789..4b2b1fa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1 @@
 build-Doxygen.patch
-no-debug-or-profiling-info.patch
-require-manpage-generation.patch
-debian-changes-1.0.2-1+~svn14032
diff --git a/debian/rules b/debian/rules
index 58bd10f..4554782 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,17 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE
+%:
+	dh $@ --parallel
 
-REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*[+~]svn([0-9]+).*,\1,p')
-VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
-get-orig-source:
-	rm -rf mlpack-$(VER).orig
-	svn -q export -r $(REV) http://svn.cc.gatech.edu/fastlab/mlpack/trunk \
-			mlpack-$(VER).orig
-	GZIP=--best tar -cz --owner root --group root --mode a+rX \
-			-f mlpack_$(VER).orig.tar.gz \
-			mlpack-$(VER).orig
-	rm -r mlpack-$(VER).orig
+override_dh_auto_build:
+	dh_auto_build
+	@echo building PDF reference manual
+	cd obj-*/doc/latex && \
+	 sed --in-place 's:usepackage\[utf8\]{inputenc}:usepackage[utf8x]{inputenc}:' refman.tex && \
+	 $(MAKE) pdf
 
-%:
-	dh $@
+override_dh_auto_test:
+	@echo do not ask do not tell do not test
+
+override_dh_compress:
+	dh_compress -Xrefman.pdf -Xdoc/html/
diff --git a/debian/shlibs.local b/debian/shlibs.local
index f3b3867..36efa23 100644
--- a/debian/shlibs.local
+++ b/debian/shlibs.local
@@ -1 +1 @@
-libmlpack 0.99.0 mlpack (>> 0.99.0-0), mlpack (<< 0.99.0-99)
+libmlpack 1 libmlpack1
diff --git a/debian/source/format b/debian/source/format
index 163aaf8..c3d9f24 100644
--- a/debian/source/format
+++ b/debian/source/format
@@ -1 +1,2 @@
 3.0 (quilt)
+
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
deleted file mode 100644
index 5af2730..0000000
--- a/debian/source/lintian-overrides
+++ /dev/null
@@ -1,2 +0,0 @@
-mlpack source: changelog-should-mention-nmu
-mlpack source: source-nmu-has-incorrect-version-number
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..7423a2d
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+single-debian-patch
diff --git a/debian/watch b/debian/watch
index 082db22..0ba4a4b 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
 version=3
-http://www.mlpack.org/files/mlpack-(.*)\.tar\.gz
+http://www.mlpack.org/files/mlpack-(.*).tar.gz

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



More information about the debian-science-commits mailing list