- Remove GPL-3.0 licensed files ( bnc#775397 )

OBS-URL: https://build.opensuse.org/package/show/hardware/gammu?expand=0&rev=17
This commit is contained in:
Ismail Dönmez 2012-08-10 09:27:37 +00:00 committed by Git OBS Bridge
parent 1b321cbd4f
commit 334877fb2b
3 changed files with 25 additions and 0 deletions

View File

@ -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)

View File

@ -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 Tue Jul 31 12:25:03 UTC 2012 - asterios.dramis@gmail.com

View File

@ -26,6 +26,8 @@ Url: http://wammu.eu/gammu/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz 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" # 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 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 location
%{!?__python: %define __python python} %{!?__python: %define __python python}
%define g_python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") %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 %prep
%setup -q %setup -q
%patch0 %patch0
%patch1 -p1
# Remove build time references - Fix rpmlint warning "file-contains-date-and-time" # 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_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') 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 python/examples/*.py
chmod 644 contrib/init/gammu-smsd.lsb 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 %build
mkdir build mkdir build
cd build cd build