commit 0f56bd7a76d5ebccee20eec5dab9a5162acaca58
Author: Jakub Bogusz <[email protected]>
Date:   Sat Jun 22 22:23:08 2013 +0200

    - new; patch to build as shared library

 portsmf-shared.patch | 35 +++++++++++++++++++
 portsmf.spec         | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+)
---
diff --git a/portsmf.spec b/portsmf.spec
new file mode 100644
index 0000000..b4d555c
--- /dev/null
+++ b/portsmf.spec
@@ -0,0 +1,95 @@
+Summary:       Port Standard MIDI File - portable library for reading/writing 
Standard MIDI Files
+Summary(pl.UTF-8):     Port Standard MIDI File - przenośna biblioteka do 
odczytu/zapisu plików SMF
+Name:          portsmf
+Version:       0.1
+%define        snap    20101010
+Release:       0.%{snap}.1
+License:       MIT-like
+Group:         Libraries
+# svn co https://portmedia.svn.sourceforge.net/svnroot/portmedia/portsmf/trunk 
portsmf
+Source0:       %{name}.tar.xz
+# Source0-md5: 654893b608c70230e0838725c563b86f
+Patch0:                %{name}-shared.patch
+URL:           http://sourceforge.net/p/portmedia/wiki/portsmf/
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PortSMF is "Port Standard MIDI File", a cross-platform, C++ library
+for reading and writing Standard MIDI Files.
+
+%description -l pl.UTF-8
+PortSMF (Port Standard MIDI File) to wieloplatformowa biblioteka C++
+do odczytu i zapisu plików SMF (Standard MIDI File).
+
+%package devel
+Summary:       Header files for portSMF library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki portSMF
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libstdc++-devel
+
+%description devel
+Header files for portSMF library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki portSMF.
+
+%package static
+Summary:       Static portSMF library
+Summary(pl.UTF-8):     Statyczna biblioteka portSMF
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static portSMF library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka portSMF.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+
+%{__rm} configure
+
+%build
+%{__libtoolize}
+%{__aclocal} -I autotools/m4
+%{__autoconf}
+%{__automake}
+%configure \
+       --includedir=%{_includedir}/portSMF
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt changelog.txt license.txt
+%attr(755,root,root) %{_libdir}/libportSMF.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libportSMF.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libportSMF.so
+%{_libdir}/libportSMF.la
+%{_includedir}/portSMF
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libportSMF.a
diff --git a/portsmf-shared.patch b/portsmf-shared.patch
new file mode 100644
index 0000000..90815a4
--- /dev/null
+++ b/portsmf-shared.patch
@@ -0,0 +1,35 @@
+--- portsmf/configure.ac.orig  2013-06-22 20:54:59.000000000 +0200
++++ portsmf/configure.ac       2013-06-22 21:52:25.212040115 +0200
+@@ -23,7 +23,7 @@
+ dnl keep autools files in a subdirectory
+ AC_CONFIG_AUX_DIR(autotools)
+ # which also contains a subdir containing macros
+-AC_CONFIG_MACRO_DIR([autotools/m4])
++dnl AC_CONFIG_MACRO_DIR([autotools/m4])
+ dnl set up automake
+ AM_INIT_AUTOMAKE([-Wall foreign])
+ dnl Audacity policy: don't enable automatic rebuild of configure et al if 
+@@ -49,7 +49,7 @@
+ dnl we will need an "install" program to be available
+ AC_PROG_INSTALL
+ dnl and ranlib for static libraries
+-AC_PROG_RANLIB
++AC_PROG_LIBTOOL
+ 
+ dnl Make the install prefix available to the program so that the pkg-config 
file
+ dnl can be created correctly
+--- portsmf/Makefile.am.orig   2013-06-22 20:55:00.000000000 +0200
++++ portsmf/Makefile.am        2013-06-22 21:52:52.898705781 +0200
+@@ -6,10 +6,10 @@
+ ACLOCAL_AMFLAGS = -I autotools/m4
+ 
+ # define the output library (link with -lportSMF)
+-lib_LIBRARIES = libportSMF.a
++lib_LTLIBRARIES = libportSMF.la
+ 
+ # define the source files to use
+-libportSMF_a_SOURCES = allegro.cpp \
++libportSMF_la_SOURCES = allegro.cpp \
+       allegrosmfwr.cpp \
+       allegrord.cpp \
+       allegrowr.cpp \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/portsmf.git/commitdiff/0f56bd7a76d5ebccee20eec5dab9a5162acaca58

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to