[octave-struct] import from review

sailer sailer at fedoraproject.org
Wed Jun 15 13:58:47 UTC 2011


commit 32fb98a10e44365a572d6395d221da7890b99780
Author: Thomas Sailer <t.sailer at alumni.ethz.ch>
Date:   Wed Jun 15 15:58:14 2011 +0200

    import from review

 .gitignore                  |    1 +
 octave-struct-nostrip.patch |   10 ++++++
 octave-struct.spec          |   68 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 4 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a0a86f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/struct-1.0.9.tar.gz
diff --git a/octave-struct-nostrip.patch b/octave-struct-nostrip.patch
new file mode 100644
index 0000000..978ee34
--- /dev/null
+++ b/octave-struct-nostrip.patch
@@ -0,0 +1,10 @@
+--- src/Makefile.strip	2011-06-05 18:50:58.000000000 +0200
++++ src/Makefile	2011-06-05 18:51:07.000000000 +0200
+@@ -8,6 +8,6 @@
+ all: $(OCTS)
+ 
+ %.oct: %.cc
+-	$(MKOCTFILE) -s $<
++	$(MKOCTFILE) $<
+ 
+ clean: ; rm *.o *.oct
diff --git a/octave-struct.spec b/octave-struct.spec
new file mode 100644
index 0000000..52fa64b
--- /dev/null
+++ b/octave-struct.spec
@@ -0,0 +1,68 @@
+%global octpkg struct
+
+Name:           octave-%{octpkg}
+Version:        1.0.9
+Release:        3%{?dist}
+Summary:        Structure handling for Octave
+Group:          Applications/Engineering
+License:        GPLv2+
+URL:            http://octave.sourceforge.net/struct/
+Source0:        http://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz
+# avoid stripping binaries to get useful debuginfo packages
+# fedora specific - not upstreamed
+Patch0:         %{name}-nostrip.patch
+
+BuildRequires:  octave-devel 
+
+Requires:       octave
+Requires(post): octave
+Requires(postun): octave
+
+
+Obsoletes:      octave-forge <= 20090607
+
+
+%description
+Additional Structure manipulations functions. Octave includes support for organizing
+data in structures. This package contains additional data structure manipulation
+functions not in the octave core.
+
+%prep
+%setup -q -n %{octpkg}-%{version}
+%patch0 -p0 -b .nostrip
+
+%build
+%octave_pkg_build
+
+%install
+rm -rf %{buildroot}
+%octave_pkg_install
+
+%post
+%octave_cmd pkg rebuild
+
+%preun
+%octave_pkg_preun
+
+%postun
+%octave_cmd pkg rebuild
+
+%files
+%defattr(-,root,root,-)
+
+%dir %{octpkgdir}
+%doc %{octpkgdir}/doc-cache
+%{octpkgdir}/*.m
+%{octpkgdir}/packinfo
+%doc %{octpkgdir}/packinfo/COPYING
+%{octpkglibdir}
+
+%changelog
+* Mon Jun 13 2011 Thomas Sailer <t.sailer at alumni.ethz.ch> 1.0.9-3
+- Add comment regarding patch purpose
+
+* Mon Jun 13 2011 Thomas Sailer <t.sailer at alumni.ethz.ch> 1.0.9-2
+- Review input
+
+* Fri Jun 03 2011 Thomas Sailer <t.sailer at alumni.ethz.ch> 1.0.9-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..dfe764a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b067676d6360dbed7995658fa4266076  struct-1.0.9.tar.gz


More information about the scm-commits mailing list