From f2a88a9a810a6bd3c63e2137b28e4cf52dbca92a Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 21 Aug 2003 11:35:41 +0000 Subject: [PATCH] - link fix, separated -devel and -static Changed files: PDCurses.spec -> 1.5 --- PDCurses.spec | 53 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/PDCurses.spec b/PDCurses.spec index 0de3786..9034058 100644 --- a/PDCurses.spec +++ b/PDCurses.spec @@ -4,9 +4,9 @@ Name: PDCurses Version: 2.6 Release: 1 Vendor: Mark Hessling -Group: Development/Languages +Group: Libraries License: Public Domain and LGPL -Source0: http://dl.sourceforge.net/sourceforge/pdcurses/%{name}-%{version}.tar.gz +Source0: http://dl.sourceforge.net/pdcurses/%{name}-%{version}.tar.gz # Source0-md5: a376c91c7fdfa0215f4c22024ca325f1 Patch0: %{name}-DESTDIR.patch URL: http://pdcurses.sourceforge.net/ @@ -29,6 +29,30 @@ modyfikacjach. PDCurses dla X11 jest znana tak informacji na temat PDCurses mo¿na znale¼æ na stronie http://pdcurses.sourceforge.net/ . +%package devel +Summary: Header files for PDCurses library +Summary(pl): Pliki nag³ówkowe biblioteki PDCurses +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +Header files for PDCurses library. + +%description devel -l pl +Pliki nag³ówkowe biblioteki PDCurses. + +%package static +Summary: Static version of PDCurses library +Summary(pl): Statyczna wersja biblioteki PDCurses +Group: Development/Libraries +Requires: %{name}-devel = %{version} + +%description static +Static version of PDCurses library. + +%description static -l pl +Statyczna wersja biblioteki PDCurses. + %prep %setup -q %patch0 @@ -36,7 +60,8 @@ http://pdcurses.sourceforge.net/ . %build %{__autoconf} %configure -%{__make} +%{__make} \ + LD_RXLIB2="-Wl,-soname=libXCurses.so -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11" %install rm -rf $RPM_BUILD_ROOT @@ -47,10 +72,22 @@ rm -rf $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%doc README TODO doc -%attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/*.so -%{_libdir}/*.a -%{_includedir}/%{name}/*.h +%doc README TODO +%attr(755,root,root) %{_libdir}/libXCurses.so + +%files devel +%defattr(644,root,root,755) +%doc doc/* +%attr(755,root,root) %{_bindir}/xcurses-config +# this one is static-only +%{_libdir}/libXpanel.a +%{_includedir}/%{name} + +%files static +%defattr(644,root,root,755) +%{_libdir}/libXCurses.a -- 2.43.0