diff --git a/gammu-remove-gplv3-files.patch b/gammu-remove-gplv3-files.patch new file mode 100644 index 0000000..d63026c --- /dev/null +++ b/gammu-remove-gplv3-files.patch @@ -0,0 +1,11 @@ +Index: gammu-1.32.0/contrib/CMakeLists.txt +=================================================================== +--- gammu-1.32.0.orig/contrib/CMakeLists.txt ++++ gammu-1.32.0/contrib/CMakeLists.txt +@@ -113,6 +113,5 @@ endif (INSTALL_UDEV_RULES) + + # Build some examples + # We do not install them intentionally, just check whether they still compile +-add_subdirectory(smscgi) + add_subdirectory(convert) + add_subdirectory(sqlreply) diff --git a/gammu.changes b/gammu.changes index cd41df4..b6917e0 100644 --- a/gammu.changes +++ b/gammu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 10 09:27:19 UTC 2012 - idonmez@suse.com + +- Remove GPL-3.0 licensed files ( bnc#775397 ) + ------------------------------------------------------------------- Tue Jul 31 12:25:03 UTC 2012 - asterios.dramis@gmail.com diff --git a/gammu.spec b/gammu.spec index 913e259..cc63473 100644 --- a/gammu.spec +++ b/gammu.spec @@ -26,6 +26,8 @@ Url: http://wammu.eu/gammu/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz # PATCH-FIX-OPENSUSE gammu-smsd.lsb.patch asterios.dramis@gmail.com -- Fix rpmlint warnings "unknown-lsb-keyword" and "init-script-runlevel-4" Patch0: gammu-smsd.lsb.patch +# PATCH-FIX-OPENSUSE gammu-remove-gplv3-files.patch idoenmez@suse.de -- Remove GPLv3 files bnc#775397 +Patch1: gammu-remove-gplv3-files.patch # Python location %{!?__python: %define __python python} %define g_python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") @@ -277,6 +279,8 @@ supports - many Nokias, Siemens, Alcatel, ... %prep %setup -q %patch0 +%patch1 -p1 + # Remove build time references - Fix rpmlint warning "file-contains-date-and-time" FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M') FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') @@ -286,6 +290,11 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" gammu/gammu.c gammu-detect/main.c libga chmod 644 python/examples/*.py chmod 644 contrib/init/gammu-smsd.lsb +# GPL-3.0 licensed files, bnc#775397 +rm -rf contrib/sms-gammu2android +rm -rf contrib/smscgi +rm -rf helper/win32-* + %build mkdir build cd build