2012-10-14 05:20:22 +02:00
|
|
|
#
|
2019-01-27 21:58:02 +01:00
|
|
|
# spec file for package libmaa
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 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
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-10-14 05:20:22 +02:00
|
|
|
#
|
|
|
|
|
2019-01-27 21:58:02 +01:00
|
|
|
|
2019-01-26 18:58:36 +01:00
|
|
|
%define soname 4
|
2012-10-14 05:20:22 +02:00
|
|
|
|
|
|
|
Name: libmaa
|
2019-01-26 18:58:36 +01:00
|
|
|
Version: 1.4.2
|
2019-01-27 21:58:02 +01:00
|
|
|
Release: 0
|
2012-10-14 05:20:22 +02:00
|
|
|
Summary: Library providing many low-level data structures
|
2019-01-27 21:58:02 +01:00
|
|
|
License: GPL-2.0-or-later
|
2012-10-14 05:20:22 +02:00
|
|
|
Group: System/Libraries
|
2019-01-27 21:58:02 +01:00
|
|
|
Url: http://www.dict.org
|
2019-01-26 18:58:36 +01:00
|
|
|
Source0: https://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz
|
2018-11-07 11:01:21 +01:00
|
|
|
Patch0: 02-Spelling-typos.patch
|
|
|
|
Patch1: 03-Fix-gcc-8-ftbfs.patch
|
2012-10-14 05:20:22 +02:00
|
|
|
BuildRequires: bison
|
2019-01-27 21:58:02 +01:00
|
|
|
BuildRequires: bmake
|
2012-10-14 05:20:22 +02:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libtool
|
2019-01-27 21:58:02 +01:00
|
|
|
BuildRequires: mk-configure
|
2012-10-14 05:20:22 +02:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The libmaa library provides many low-level data structures which are
|
|
|
|
helpful for writing compilers, including hash tables, sets, lists,
|
|
|
|
debugging support, and memory management. Although libmaa was designed
|
|
|
|
and implemented as a foundation for the kheperalong, the data structures
|
|
|
|
are generally applicable to a wide range of programming problems.
|
|
|
|
|
|
|
|
The memory management routines are especially helpful for improving the
|
|
|
|
performance of memory-intensive applications.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}%{soname}
|
2019-01-27 21:58:02 +01:00
|
|
|
PreReq: glibc
|
|
|
|
Summary: Library providing many low-level data structures
|
|
|
|
Group: System/Libraries
|
2012-10-14 05:20:22 +02:00
|
|
|
|
|
|
|
%description -n %{name}%{soname}
|
|
|
|
The libmaa library provides many low-level data structures which are
|
|
|
|
helpful for writing compilers, including hash tables, sets, lists,
|
|
|
|
debugging support, and memory management. Although libmaa was designed
|
|
|
|
and implemented as a foundation for the kheperalong, the data structures
|
|
|
|
are generally applicable to a wide range of programming problems.
|
|
|
|
|
|
|
|
The memory management routines are especially helpful for improving the
|
|
|
|
performance of memory-intensive applications.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}-devel
|
|
|
|
Summary: Development files for libmaa
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libmaa%{soname} = %{version}
|
|
|
|
|
|
|
|
%description -n %{name}-devel
|
|
|
|
This RPM contains the development files for libmaa
|
|
|
|
|
|
|
|
|
2019-01-26 18:58:36 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation files for libmaa
|
|
|
|
Group: Documentation/Other
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This RPM contains the documentation files for libmaa
|
|
|
|
|
|
|
|
|
2012-10-14 05:20:22 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-11-07 11:01:21 +01:00
|
|
|
%autopatch -p 1
|
2012-10-14 05:20:22 +02:00
|
|
|
|
|
|
|
%build
|
2019-01-26 18:58:36 +01:00
|
|
|
mkcmake PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
2012-10-14 05:20:22 +02:00
|
|
|
|
|
|
|
%install
|
2019-01-26 18:58:36 +01:00
|
|
|
mkcmake install DESTDIR=%{?buildroot} \
|
|
|
|
PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
2012-10-14 05:20:22 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
2019-01-26 18:58:36 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/libmaa
|
2012-10-14 05:20:22 +02:00
|
|
|
|
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}%{soname}
|
2019-01-26 18:58:36 +01:00
|
|
|
%license doc/LICENSE
|
|
|
|
%doc README doc/NEWS
|
2012-10-14 05:20:22 +02:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files -n %{name}-devel
|
|
|
|
%{_includedir}/maa*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
2019-01-26 18:58:36 +01:00
|
|
|
%files doc
|
|
|
|
%license doc/LICENSE
|
|
|
|
%doc doc/*.ps*
|
|
|
|
|
2012-10-14 05:20:22 +02:00
|
|
|
%changelog
|