]> git.pld-linux.org Git - packages/PDCurses.git/blobdiff - PDCurses.spec
- link fix, separated -devel and -static
[packages/PDCurses.git] / PDCurses.spec
index 683611d82fa846035846df8b33147d5936214c45..9034058b5753e7a6ad0b40681f9c58afeb5992e9 100644 (file)
@@ -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/
@@ -24,10 +24,34 @@ PDCurses, visit http://pdcurses.sourceforge.net/ .
 %description -l pl
 PDCurses jest implementacj± biblioteki curses dla X11. Umo¿liwia ona
 przebudowanie istniej±cych programów tekstowych korzystaj±cych z
-curses jako natywne aplikacjie X11 po jedynie niewielkich
-podywikacjach. PDCurses dla X11 jest znana tak¿e jako XCurses. Wiêcej
+curses jako natywne aplikacje X11 po jedynie niewielkich
+modyfikacjach. PDCurses dla X11 jest znana tak¿e jako XCurses. Wiêcej
 informacji na temat PDCurses mo¿na znale¼æ na stronie
-//pdcurses.sourceforge.net/ .
+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
@@ -36,19 +60,34 @@ informacji na temat PDCurses mo
 %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
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/*.so
-%{_libdir}/*.a
-%{_includedir}/%{name}/*.h
-%doc README TODO doc/
+%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
This page took 0.083454 seconds and 4 git commands to generate.