forked from pool/qalculate
Accepting request 449956 from KDE:Distro:Factory
1 OBS-URL: https://build.opensuse.org/request/show/449956 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/qalculate?expand=0&rev=13
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package qalculate
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,21 +16,16 @@
|
||||
#
|
||||
|
||||
|
||||
%define major 5
|
||||
%define major 6
|
||||
%define libname libqalculate
|
||||
|
||||
Name: qalculate
|
||||
Version: 0.9.10
|
||||
Release: 0
|
||||
Summary: Powerful Calulator application
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Scientific/Math
|
||||
|
||||
Name: qalculate
|
||||
Version: 0.9.7
|
||||
Release: 0
|
||||
Url: http://qalculate.sourceforge.net/
|
||||
Source0: %{libname}-%{version}.tar.bz2
|
||||
# PATCH-FIX-UPSTREAM gcc-6-compile.patch jslaby@suse.com -- Fix compilation with gcc 6
|
||||
Patch0: gcc-6-compile.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Url: https://qalculate.github.io/
|
||||
Source: https://github.com/Qalculate/libqalculate/releases/download/v%{version}/%{libname}-%{version}.tar.gz
|
||||
BuildRequires: cln-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: glib2-devel
|
||||
@@ -40,6 +35,7 @@ BuildRequires: libxml2-devel
|
||||
BuildRequires: perl-XML-Parser
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: readline-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Qalculate! is a modern multi-purpose desktop calculator for GNU/Linux. It is
|
||||
@@ -78,29 +74,24 @@ you will need to install %{libname}-devel.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{libname}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --disable-rpath
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install
|
||||
%make_install
|
||||
%find_lang libqalculate
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -n %{libname}%{major} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{libname}%{major} -p /sbin/ldconfig
|
||||
|
||||
%files -f libqalculate.lang
|
||||
%defattr(-,root,root)
|
||||
%doc README ChangeLog NEWS INSTALL COPYING AUTHORS TODO
|
||||
%doc README ChangeLog INSTALL COPYING AUTHORS TODO
|
||||
%{_bindir}/qalc
|
||||
%{_datadir}/%{name}
|
||||
%{_datadir}/doc/%{libname}-%{version}
|
||||
%{_datadir}/doc/%{libname}
|
||||
|
||||
%files -n %{libname}%{major}
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user