From 83188d6e2dce34443b92f316a4ffe2bf5de6b1b2 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Mon, 11 Sep 2017 12:05:07 +0900 Subject: [PATCH] Do not install unnecessary example files [Version] 1.2-2 [Issue Type] Revise Change-Id: Ief5bd014fb2fda3cca97e7aaa7170bc574d35f49 --- 0000-Add-packaging.patch | 112 ----------------------------------------------- CMakeLists.txt | 2 +- packaging/alure.spec | 4 +- 3 files changed, 3 insertions(+), 115 deletions(-) delete mode 100644 0000-Add-packaging.patch diff --git a/0000-Add-packaging.patch b/0000-Add-packaging.patch deleted file mode 100644 index 5d447fd..0000000 --- a/0000-Add-packaging.patch +++ /dev/null @@ -1,112 +0,0 @@ -From f8db9233b44e8068de9997b480d413c64eb1d523 Mon Sep 17 00:00:00 2001 -From: Seungbae Shin -Date: Mon, 1 Aug 2016 15:45:38 +0900 -Subject: [PATCH] Add packaging - -Change-Id: I982f35baa825d300366f2b8ceb787463d7254941 ---- - packaging/alure.changes | 4 ++++ - packaging/alure.manifest | 5 ++++ - packaging/alure.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++ - packaging/baselibs.conf | 1 + - 4 files changed, 68 insertions(+) - create mode 100644 packaging/alure.changes - create mode 100644 packaging/alure.manifest - create mode 100644 packaging/alure.spec - create mode 100644 packaging/baselibs.conf - -diff --git a/packaging/alure.changes b/packaging/alure.changes -new file mode 100644 -index 0000000..98bd418 ---- /dev/null -+++ b/packaging/alure.changes -@@ -0,0 +1,4 @@ -+* Fri Jun 10 16:24:31 2016 +0300 o.danchenko -+ -+- Initial commit based on ALURE v 1.2 -+ -diff --git a/packaging/alure.manifest b/packaging/alure.manifest -new file mode 100644 -index 0000000..017d22d ---- /dev/null -+++ b/packaging/alure.manifest -@@ -0,0 +1,5 @@ -+ -+ -+ -+ -+ -diff --git a/packaging/alure.spec b/packaging/alure.spec -new file mode 100644 -index 0000000..f327283 ---- /dev/null -+++ b/packaging/alure.spec -@@ -0,0 +1,58 @@ -+Name: alure -+Version: 1.2 -+Release: 0 -+License: LGPL-2.0+ -+Summary: File-loading and utility functions for OpenAL -+Group: System Environment/Libraries -+URL: http://kcat.strangesoft.net/alure.html -+Group: System/Libraries -+Source: %{name}-%{version}.tar.bz2 -+Source1001: alure.manifest -+BuildRequires: cmake, libsndfile-devel, openal-soft-devel -+ -+%description -+ALURE is a utility library to help manage common tasks with OpenAL applications -+ -+%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} -+Requires: pkgconfig -+ -+%description devel -+ALURE is a utility library to help manage common tasks with OpenAL applications -+ -+%prep -+%setup -q -+cp %{SOURCE1001} . -+ -+%build -+ -+%cmake . -+make %{?_smp_mflags} -+ -+%install -+%make_install -+ -+%post -p /sbin/ldconfig -+ -+%postun -p /sbin/ldconfig -+ -+ -+%files -+%defattr(-,root,root,-) -+%manifest %{name}.manifest -+%license COPYING -+%{_libdir}/libalure.so.* -+%{_bindir}/alure* -+ -+%files devel -+%defattr(-,root,root,-) -+%manifest %{name}.manifest -+/usr/share/doc/alure/html/* -+%doc docs/html/* examples/* -+%{_includedir}/AL/alure.h -+%{_libdir}/*.so -+%{_libdir}/pkgconfig/*.pc -diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf -new file mode 100644 -index 0000000..9f2f25b ---- /dev/null -+++ b/packaging/baselibs.conf -@@ -0,0 +1 @@ -+alure --- -1.7.9.5 - diff --git a/CMakeLists.txt b/CMakeLists.txt index 90d5c26..7a94d41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -455,7 +455,7 @@ ENDIF(BUILD_STATIC) OPTION(BUILD_EXAMPLES "Build example programs" ON) -OPTION(INSTALL_EXAMPLES "Install example programs" ON) +OPTION(INSTALL_EXAMPLES "Install example programs" OFF) IF(BUILD_EXAMPLES) IF(HAVE_DDK_NTDDCDRM_H) diff --git a/packaging/alure.spec b/packaging/alure.spec index 99c1b9a..8ac932e 100644 --- a/packaging/alure.spec +++ b/packaging/alure.spec @@ -1,6 +1,6 @@ Name: alure Version: 1.2 -Release: 1 +Release: 2 License: MIT Summary: File-loading and utility functions for OpenAL Group: System Environment/Libraries @@ -44,7 +44,7 @@ make %{?_smp_mflags} %manifest %{name}.manifest %license COPYING %{_libdir}/libalure.so.* -%{_bindir}/alure* +%exclude %{_bindir}/alure* %files devel %defattr(-,root,root,-) -- 2.7.4