Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-04-23 18:03:20 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-04-23 18:03:20 (GMT)
commit13cc49b1d40177452f77598c3092f734b5b146ba (patch)
treec1e46e005a6cb581b9b433618e0c528b10dd7398
parentce0ba7392a389c42d3b06fdca19ff93dd1f68cdd (diff)
parentce23e10bd48a00dce5501551a5c8ef63749bb63f (diff)
Merge branch 'master' of gitorious@git.sugarlabs.org:opensuse/mainline
-rw-r--r--deps/olpcsound/SPECS/olpcsound.changes5
-rw-r--r--deps/olpcsound/SPECS/olpcsound.spec133
2 files changed, 138 insertions, 0 deletions
diff --git a/deps/olpcsound/SPECS/olpcsound.changes b/deps/olpcsound/SPECS/olpcsound.changes
new file mode 100644
index 0000000..20f7be1
--- /dev/null
+++ b/deps/olpcsound/SPECS/olpcsound.changes
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Thu Apr 23 19:03:28 CEST 2009 - dvanassche@gmail.com
+
+-Initial package for opensuse
+
diff --git a/deps/olpcsound/SPECS/olpcsound.spec b/deps/olpcsound/SPECS/olpcsound.spec
new file mode 100644
index 0000000..4fac8f9
--- /dev/null
+++ b/deps/olpcsound/SPECS/olpcsound.spec
@@ -0,0 +1,133 @@
+# NOTE: Do not edit, file was generated by jhconvert
+
+%define libname %mklibname %{name}
+%define pyname python-%{name}
+
+Name: olpcsound
+Version: 5.10.1
+%if 0%{?suse_version}
+Release: 1
+%else
+Release: %mkrel 2
+%endif
+
+Summary: Csound - sound synthesis language and library, OLPC subset
+License: LGPLv2+
+Group: Sound
+Url: http://csound.sourceforge.net/
+
+Source: http://downloads.sourceforge.net/csound/Csound5.10.1.tar.gz
+
+Patch: olpcsound-5.10.1-gentoo-proaudio-csound-SConsruct.patch
+Patch1: olpcsound-5.10.1-sugar-csound-64bit.patch
+Patch2: olpcsound-5.10.1-sugar-csound-bad-symbols.patch
+
+
+BuildRequires: alsa-devel
+BuildRequires: gettext-runtime
+BuildRequires: liblo-devel
+BuildRequires: libogg-devel
+BuildRequires: libpng-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libvorbis-devel
+BuildRequires: python-devel
+BuildRequires: scons
+BuildRequires: swig
+BuildPreReq: gcc-c++
+
+%description
+Olpcsound is a subset of the Csound sound and music synthesis system,
+tailored specifically for XO platform.
+
+%package -n %{libname}
+Summary: Libraries for %{name}
+Group: System/Libraries
+
+%description -n %{libname}
+Olpcsound is a subset of the Csound sound and music synthesis system,
+tailored specifically for XO platform.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/C
+Requires: %{libname} = %{version}-%{release}
+
+%description devel
+Olpcsound is a subset of the Csound sound and music synthesis system,
+tailored specifically for XO platform.
+
+%package -n %{pyname}
+Summary: Python bindings for %{name}
+Group: Development/Python
+Requires: %{libname} = %{version}-%{release}
+Requires: python
+
+%description -n %{pyname}
+Olpcsound is a subset of the Csound sound and music synthesis system,
+tailored specifically for XO platform.
+
+%prep
+%setup -q -n Csound5.10.1
+%patch -p1
+%patch1 -p1
+%patch2 -p1
+
+%ifarch x86_64
+%global x86_64_flags Word64=1 Lib64=1
+%else
+%global x86_64_flags Word64=0 Lib64=0
+%endif
+
+%build
+%define Werror_cflags %nil
+scons \
+ customCCFLAGS="$CFLAGS -D_GNU_SOURCE" \
+ customCXXCFLAGS="$CFLAGS -D_GNU_SOURCE" \
+ buildOLPC=1 \
+ useJack=0 \
+ gcc3opt=0 \
+ gcc4opt=0 \
+ customCCFLAGS="%{optflags}" \
+ customCXXFLAGS="%{optflags}" \
+ %{x86_64_flags}
+
+%install
+rm -rf %{buildroot}
+python \
+ install-olpc.py \
+ --install-python \
+ --install-headers \
+ --instdir=%{buildroot} \
+ --libdir=%{_libdir}
+%ifarch x86_64
+mkdir -p %{buildroot}/%{python_sitelib}
+mv %{buildroot}/%{_libdir}/python*/site-packages/*
+%{buildroot}/%{python_sitelib}/
+%endif
+%find_lang csound5
+
+%clean
+rm -rf %{buildroot}
+
+%files -f csound5.lang
+%defattr(-,root,root,-)
+%{_bindir}/*
+%{_datadir}/doc/csound/*
+
+%files -n %{libname}
+%defattr(-,root,root,-)
+%{_libdir}/*.so.*
+%{_libdir}/csound/plugins/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/csound/*
+%{_libdir}/libcsound.so
+%{_libdir}/libcsnd.so
+
+%files -n %{pyname}
+%defattr(-,root,root,-)
+%{python_sitelib}/*
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig