- Remove archaic specfile contraptions.

Fix rpmlint "spurious-executable-permissions" warning.

OBS-URL: https://build.opensuse.org/package/show/network:telephony/sffview?expand=0&rev=9
This commit is contained in:
Jan Engelhardt 2016-08-12 20:51:05 +00:00 committed by Git OBS Bridge
parent 6540947a6d
commit 8c4cd5d518
2 changed files with 21 additions and 28 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Aug 12 20:47:27 UTC 2016 - jengelh@inai.de
- Remove archaic specfile contraptions.
Fix rpmlint "spurious-executable-permissions" warning.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jan 21 13:52:17 CET 2011 - sbrabec@suse.cz Fri Jan 21 13:52:17 CET 2011 - sbrabec@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package sffview # spec file for package sffview
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,31 +15,27 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: sffview Name: sffview
BuildRequires: SDL-devel boost-devel gcc-c++ libtiff-devel update-desktop-files xorg-x11 BuildRequires: SDL-devel
%if %suse_version > 1130 BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: libtiff-devel
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-devel BuildRequires: wxWidgets-devel
%else BuildRequires: xorg-x11
BuildRequires: wxGTK-devel
%endif
License: MIT License (or similar)
Group: Hardware/ISDN
AutoReqProv: on
Version: 0.4 Version: 0.4
Release: 260 Release: 0
Summary: Simple viewer for Structured Fax Files (.sff) used by ISDN applications Summary: Simple viewer for Structured Fax Files (.sff) used by ISDN applications
License: MIT
Group: Hardware/ISDN
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Url: http://sfftools.sourceforge.net/ Url: http://sfftools.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: %{name}-%{version}.diff Patch0: %{name}-%{version}.diff
Patch1: %{name}-gcc43.diff Patch1: %{name}-gcc43.diff
%if %suse_version > 1130
%define _use_internal_dependency_generator 0 %define _use_internal_dependency_generator 0
%define __find_requires %wx_requires %define __find_requires %wx_requires
%endif
%description %description
The CAPI interface for programming ISDN hardware expects and gives you The CAPI interface for programming ISDN hardware expects and gives you
@ -50,28 +46,19 @@ wxWidgets/wxGTK toolkit and is therefore available for Linux and
Windows (wxWidgets is a platform independent toolkit and wxGTK is a Windows (wxWidgets is a platform independent toolkit and wxGTK is a
unix implementation based on GTK+, see wxWidgets homepage). unix implementation based on GTK+, see wxWidgets homepage).
Authors:
--------
Peter Schäfer
%prep %prep
%setup %setup
%patch0 -p1 %patch0 -p1
%patch1 %patch1
%build %build
%{__make} %{?jobs:-j%jobs} make %{?_smp_mflags}
%install %install
install -d $RPM_BUILD_ROOT/usr/bin install -d "%buildroot/%_bindir"
install sffview $RPM_BUILD_ROOT/usr/bin install sffview "%buildroot/%_bindir/"
install -d $RPM_BUILD_ROOT/%{_defaultdocdir}/sffview install -d "%buildroot/%_defaultdocdir/sffview"
install doc/readme doc/copying testfax.sff $RPM_BUILD_ROOT/%{_defaultdocdir}/sffview install -pm0644 doc/readme doc/copying testfax.sff "%buildroot/%_defaultdocdir/sffview/"
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)