2007-12-23 19:18:04 +00:00
|
|
|
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
|
2012-01-29 12:54:36 +00:00
|
|
|
BuildRequires: autoconf automake libtool pkgconfig intltool gtk2-devel
|
2009-10-06 03:13:42 +00:00
|
|
|
Patch: pxlib-0.6.3-visibility.patch
|
2007-12-23 19:18:04 +00:00
|
|
|
%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
|
2009-10-06 03:13:42 +00:00
|
|
|
%patch
|
2007-12-23 19:18:04 +00:00
|
|
|
%build
|
2009-10-06 03:13:42 +00:00
|
|
|
touch config.rpath
|
|
|
|
autoreconf -fiv
|
2009-10-12 21:47:25 +00:00
|
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
2009-10-06 03:13:42 +00:00
|
|
|
%configure --enable-hidden-symbols --disable-static --with-pic
|
2012-01-29 12:54:36 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-12-23 19:18:04 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
%find_lang %{name}
|
2009-10-06 03:22:33 +00:00
|
|
|
|
2009-10-06 03:13:42 +00:00
|
|
|
%check
|
|
|
|
|
|
|
|
export MALLOC_CHECK_=2
|
|
|
|
make check
|
|
|
|
unset MALLOC_CHECK_
|
2007-12-23 19:18:04 +00:00
|
|
|
|
|
|
|
%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
|