OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libast?expand=0&rev=5
99 lines
2.4 KiB
RPMSpec
99 lines
2.4 KiB
RPMSpec
Summary: Library of Assorted Spiffy Things
|
|
Name: libast
|
|
Version: 0.7
|
|
Release: 0
|
|
Group: System Environment/Libraries
|
|
License: BSD
|
|
URL: http://www.eterm.org/
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Patch1: libast-m4.diff
|
|
BuildRequires: autoconf, automake, libtool
|
|
BuildRequires: pcre-devel xorg-x11-devel imlib2-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
LibAST is the Library of Assorted Spiffy Things. It contains various
|
|
handy routines and drop-in substitutes for some good-but-non-portable
|
|
functions. It currently has a built-in memory tracking subsystem as
|
|
well as some debugging aids and other similar tools.
|
|
|
|
%package -n libast2
|
|
Group: Development/Libraries
|
|
Summary: Library of Assorted Spiffy Things
|
|
Provides: libast = %{version}
|
|
Obsoletes: libast <= %{version}
|
|
|
|
%description -n libast2
|
|
|
|
LibAST is the Library of Assorted Spiffy Things. It contains various
|
|
handy routines and drop-in substitutes for some good-but-non-portable
|
|
functions. It currently has a built-in memory tracking subsystem as
|
|
well as some debugging aids and other similar tools.
|
|
|
|
This package only contains the shared library
|
|
|
|
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Requires: libast2 = %{version} pcre-devel imlib2-devel
|
|
Summary: Development headers and files for libast
|
|
Provides: libast:/usr/bin/libast-config
|
|
|
|
%description devel
|
|
|
|
LibAST is the Library of Assorted Spiffy Things. It contains various
|
|
handy routines and drop-in substitutes for some good-but-non-portable
|
|
functions. It currently has a built-in memory tracking subsystem as
|
|
well as some debugging aids and other similar tools.
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
%patch -P 1 -p1
|
|
|
|
%build
|
|
autoreconf -fi
|
|
CFLAGS="%{optflags}"
|
|
CXXFLAGS="%{optflags}"
|
|
%if 0%{?suse_version} > 1000
|
|
CFLAGS="$CFLAGS -fstack-protector"
|
|
CXXFLAGS="$CXXFLAGS -fstack-protector"
|
|
%endif
|
|
|
|
export CFLAGS
|
|
export CXXFLAGS
|
|
export LDFLAGS="-Wl,--as-needed"
|
|
|
|
%configure --with-pic --disable-static --with-mmx --with-regexp=pcre --with-x
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
%{__make} install DESTDIR=%{buildroot}
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -n libast2 -p /sbin/ldconfig
|
|
|
|
%postun -n libast2 -p /sbin/ldconfig
|
|
|
|
%check
|
|
export MALLOC_CHECK_=2
|
|
%{__make} test || echo "some tests failed"
|
|
unset MALLOC_CHECK_
|
|
|
|
%files -n libast2
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libast.so.2*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog DESIGN README
|
|
%{_bindir}/*
|
|
%{_libdir}/*.so
|
|
%{_includedir}/*
|
|
%{_datadir}/*
|
|
|
|
%changelog
|