Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b991a57373 | ||
|
|
f95a38151d | ||
|
|
0133e9cc25 | ||
|
|
b858948f32 |
7 changed files with 120 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
alure-1.0-src.tar.bz2
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: alure
|
||||
# $Id$
|
||||
NAME := alure
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
97
alure.spec
Normal file
97
alure.spec
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
Name: alure
|
||||
Version: 1.0
|
||||
Release: 4%{?dist}
|
||||
Summary: Audio Library Tools REloaded
|
||||
Group: System Environment/Libraries
|
||||
# ALURE code is LGPLv2+; note -devel subpackage has its own license tag
|
||||
License: LGPLv2+
|
||||
URL: http://kcat.strangesoft.net/alure.html
|
||||
Source0: http://kcat.strangesoft.net/%{name}-releases/%{name}-%{version}-src.tar.bz2
|
||||
# patch to compile with GCC 4.4
|
||||
Patch0: alure_compile_with_gcc44.patch
|
||||
# set correct pkgconfig path for multilib
|
||||
Patch1: alure_multilib_pkgconfig.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
# flac-devel not BRed as build against flac currently fails
|
||||
BuildRequires: cmake, libvorbis-devel, libsndfile-devel, openal-devel
|
||||
|
||||
|
||||
%description
|
||||
ALURE is a utility library to help manage common tasks with OpenAL
|
||||
applications. This includes device enumeration and initialization,
|
||||
file loading, and streaming.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
# Devel doc includes some files under GPLv2+ from NaturalDocs
|
||||
License: LGPLv2+ and GPLv2+
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
|
||||
%build
|
||||
# disable build against FLAC (currently fails)
|
||||
%cmake . -DFLAC:BOOL=OFF
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
# strip installed html doc
|
||||
rm -rf %{buildroot}%{_docdir}/alure/html
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/html examples
|
||||
%{_includedir}/AL/
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Oct 01 2009 Guido Grazioli <guido.grazioli@gmail.com> - 1.0-4
|
||||
- Fixed license for -devel subpackage
|
||||
- Included sample code in -devel subpackage
|
||||
- Sanitized %%files
|
||||
|
||||
* Tue Sep 29 2009 Guido Grazioli <guido.grazioli@gmail.com> - 1.0-3
|
||||
- Renamed from libalure to alure
|
||||
- Fixed license
|
||||
|
||||
* Mon Sep 28 2009 Guido Grazioli <guido.grazioli@gmail.com> - 1.0-2
|
||||
- Fix multilib pkgconfig path
|
||||
|
||||
* Sat Sep 26 2009 Guido Grazioli <guido.grazioli@gmail.com> - 1.0-1
|
||||
- Initial packaging
|
||||
10
alure_compile_with_gcc44.patch
Normal file
10
alure_compile_with_gcc44.patch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--- A/src/stream.cpp 2009-09-28 04:17:12.511762978 +0200
|
||||
+++ B/src/stream.cpp 2009-09-28 04:17:25.200016279 +0200
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
+#include <cstdio>
|
||||
|
||||
|
||||
struct nullStream : public alureStream {
|
||||
11
alure_multilib_pkgconfig.patch
Normal file
11
alure_multilib_pkgconfig.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- A/CMakeLists.txt 2009-09-28 15:55:01.864452396 +0200
|
||||
+++ B/CMakeLists.txt 2009-09-28 15:55:28.513440879 +0200
|
||||
@@ -323,7 +323,7 @@
|
||||
DESTINATION "include/${INCPATH}"
|
||||
)
|
||||
INSTALL(FILES "${ALURE_BINARY_DIR}/alure.pc"
|
||||
- DESTINATION lib/pkgconfig
|
||||
+ DESTINATION ${LIB_INSTALL_DIR}/pkgconfig
|
||||
)
|
||||
|
||||
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
48a81287f2caf2adc5870cd075e70c9c alure-1.0-src.tar.bz2
|
||||
Loading…
Add table
Add a link
Reference in a new issue