OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pxlib?expand=0&rev=6
68 lines
1.4 KiB
RPMSpec
68 lines
1.4 KiB
RPMSpec
Name: pxlib
|
|
Version: 0.6.3
|
|
Release: 1
|
|
License: GPL
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Group: Development/Libraries
|
|
Summary: Library to read and write Paradox files
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRequires: autoconf automake libtool pkgconfig intltool gtk2-devel
|
|
Patch: pxlib-0.6.3-visibility.patch
|
|
%description
|
|
Library to read and write Paradox files
|
|
|
|
|
|
%package -n libpx0
|
|
Group: Development/Libraries
|
|
Summary: Library to read and write Paradox files
|
|
|
|
%description -n libpx0
|
|
|
|
Library to read and write Paradox files
|
|
|
|
|
|
%package -n libpx-devel
|
|
Group: Development/Libraries
|
|
Summary: Library to read and write Paradox files
|
|
Requires: libpx0 = %{version} glibc-devel
|
|
|
|
%description -n libpx-devel
|
|
|
|
Library to read and write Paradox files
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch
|
|
%build
|
|
touch config.rpath
|
|
autoreconf -fiv
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
|
%configure --enable-hidden-symbols --disable-static --with-pic
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
%find_lang %{name}
|
|
|
|
%check
|
|
|
|
export MALLOC_CHECK_=2
|
|
make check
|
|
unset MALLOC_CHECK_
|
|
|
|
%post -n libpx0 -p /sbin/ldconfig
|
|
%postun -n libpx0 -p /sbin/ldconfig
|
|
|
|
%files -n libpx0 -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libpx.so.0*
|
|
|
|
%files -n libpx-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*.h
|
|
%{_libdir}/libpx.so
|
|
%{_libdir}/pkgconfig/pxlib.pc
|
|
%exclude %{_libdir}/*.la
|
|
|
|
%changelog
|