From 25f58a771d9058efaa54a843284a303713c45795 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:04:56 +0100 Subject: [PATCH] fix includedir in pkg-config file [release 0.8.8.5-2mamba;Wed Apr 30 2014] --- README.md | 2 + libmodplug-0.8.8.5-pkgconfig.patch | 12 ++++ libmodplug.spec | 93 ++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 libmodplug-0.8.8.5-pkgconfig.patch create mode 100644 libmodplug.spec diff --git a/README.md b/README.md index d265343..8760a7a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libmodplug +Libmodplug is the library behind Modplug-XMMS, a fully featured, complete input plugin for XMMS which plays mod-like music formats. + diff --git a/libmodplug-0.8.8.5-pkgconfig.patch b/libmodplug-0.8.8.5-pkgconfig.patch new file mode 100644 index 0000000..5ce1a75 --- /dev/null +++ b/libmodplug-0.8.8.5-pkgconfig.patch @@ -0,0 +1,12 @@ +diff -Nru libmodplug-0.8.8.5.orig/libmodplug.pc.in libmodplug-0.8.8.5/libmodplug.pc.in +--- libmodplug-0.8.8.5.orig/libmodplug.pc.in 2013-08-23 01:55:58.000000000 +0200 ++++ libmodplug-0.8.8.5/libmodplug.pc.in 2014-04-30 00:51:29.446650500 +0200 +@@ -1,7 +1,7 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ +-includedir=${prefix}/include ++includedir=${prefix}/include/libmodplug + + Name: libmodplug + Description: The ModPlug mod file playing library. diff --git a/libmodplug.spec b/libmodplug.spec new file mode 100644 index 0000000..bbc774f --- /dev/null +++ b/libmodplug.spec @@ -0,0 +1,93 @@ +Name: libmodplug +Version: 0.8.8.5 +Release: 2mamba +Summary: MOD music file playing library +Group: System/Libraries +Distribution: openmamba +Vendor: openmamba +Packager: Silvan Calarco +URL: http://modplug-xmms.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/modplug-xmms/libmodplug/%{version}/libmodplug-%{version}.tar.gz +Patch0: libmodplug-0.8.8.5-pkgconfig.patch +License: Public Domain +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +Libmodplug is the library behind Modplug-XMMS, a fully featured, complete input plugin for XMMS which plays mod-like music formats. + +%package devel +Summary: Header files, libraries and development documentation for %{name} +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure --enable-static +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%{_libdir}/libmodplug.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-, root, root) +%dir %{_includedir}/libmodplug +%{_includedir}/libmodplug/*.h +%{_libdir}/libmodplug.a +%{_libdir}/libmodplug.la +%{_libdir}/libmodplug.so +%{_libdir}/pkgconfig/libmodplug.pc +%doc ChangeLog README TODO + +%changelog +* Wed Apr 30 2014 Silvan Calarco 0.8.8.5-2mamba +- fix includedir in pkg-config file + +* Wed Mar 26 2014 Automatic Build System 0.8.8.5-1mamba +- automatic version update by autodist + +* Sat Dec 01 2012 Automatic Build System 0.8.8.4-1mamba +- automatic version update by autodist + +* Thu Jun 03 2010 Automatic Build System 0.8.8.1-1mamba +- update to 0.8.8.1 + +* Thu Jul 09 2009 Automatic Build System 0.8.7-1mamba +- automatic update by autodist + +* Tue Jun 24 2008 Silvan Calarco 0.8.4-1mamba +- update to 0.8.4 +- updated maintainer + +* Wed Jun 29 2005 Davide Madrisan 0.7-3qilnx +- fixed package group +- use macros for building/installing +- own %{_includedir}/libmodplug + +* Fri Jun 10 2005 Alessandro Ramazzina 0.7-2qilnx +- rebuild and moved from devel-contrib repository to devel repository + +* Fri Jun 10 2005 Matteo Bernasconi 0.7-1qilnx +- first build