diff --git a/README.md b/README.md index a065bf5..bddbe62 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libsmf +LibSMF is a BSD-licensed C library for handling SMF ("*.mid") files. It transparently handles conversions between time and pulses, tempo map handling etc. + diff --git a/libsmf.spec b/libsmf.spec new file mode 100644 index 0000000..6b3e473 --- /dev/null +++ b/libsmf.spec @@ -0,0 +1,71 @@ +Name: libsmf +Version: 1.3 +Release: 1mamba +Summary: Standard MIDI File format library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://sourceforge.net/projects/libsmf +Source: http://downloads.sourceforge.net/project/libsmf/libsmf/%{version}/libsmf-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libglib-devel +BuildRequires: libncurses-devel +BuildRequires: libreadline-devel +BuildRequires: pkg-config +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +LibSMF is a BSD-licensed C library for handling SMF ("*.mid") files. It transparently handles conversions between time and pulses, tempo map handling etc. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/smfsh +%{_libdir}/libsmf.so.* +%{_mandir}/man1/smfsh.1.gz +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/smf.h +%{_libdir}/libsmf.a +%{_libdir}/libsmf.la +%{_libdir}/libsmf.so +%{_libdir}/pkgconfig/smf.pc +%doc NEWS TODO + +%changelog +* Sat Oct 20 2012 Silvan Calarco 1.3-1mamba +- package created by autospec