[jmatio] Initial import (#1146663).

gil gil at fedoraproject.org
Fri Nov 7 13:23:50 UTC 2014


commit 45a77d8138b9a95e6d371ab6e4e9de5b6c988809
Author: gil <puntogil at libero.it>
Date:   Fri Nov 7 14:23:20 2014 +0100

    Initial import (#1146663).

 .gitignore  |    1 +
 jmatio.spec |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..211153e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/9329195b310dd861e97b9655173b4aa564de05dc.zip
diff --git a/jmatio.spec b/jmatio.spec
new file mode 100644
index 0000000..2bc2924
--- /dev/null
+++ b/jmatio.spec
@@ -0,0 +1,56 @@
+%global githash 9329195b310dd861e97b9655173b4aa564de05dc
+
+Name:          jmatio
+Version:       1.1
+Release:       1%{?dist}
+Summary:       Java Matlab IO library
+License:       BSD
+URL:           https://sourceforge.net/projects/jmatio/
+Source0:       https://github.com/gradusnikov/jmatio/archive/%{githash}.zip
+BuildRequires: mvn(junit:junit)
+BuildRequires: maven-local
+BuildArch:     noarch
+
+%description
+Matlab's MAT-file I/O API in Java.
+Supports Matlab 5 MAT-file format
+reading and writing.
+
+%package javadoc
+Summary:       Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{name}-%{githash}
+
+# fix non ASCII chars
+for s in src/main/java/com/jmatio/types/MLSparse.java;do
+  native2ascii -encoding UTF8 ${s} ${s}
+done
+
+# fix eol
+%{__perl} -pi -e 's/\r$//g' LICENSE.txt README_old.txt
+
+%build
+
+%mvn_file :%{name} %{name}
+%mvn_alias com.imaginglaboratory:%{name} net.sourceforge.%{name}:%{name}
+%mvn_build
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%doc LICENSE.txt README.md README_old.txt
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE.txt
+
+%changelog
+* Tue Oct 28 2014 gil cattaneo <puntogil at libero.it> 1.1-1
+- update to 1.1
+
+* Thu Sep 25 2014 gil cattaneo <puntogil at libero.it> 1.0-1
+- initial rpm
diff --git a/sources b/sources
index e69de29..423a976 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fd831cabbd37e817e23706b02c464804  9329195b310dd861e97b9655173b4aa564de05dc.zip


More information about the scm-commits mailing list