]> git.pld-linux.org Git - packages/PDCurses.git/blobdiff - PDCurses.spec
- tabs in preamble
[packages/PDCurses.git] / PDCurses.spec
index 0de378635b58b9fb84bfcb162d87b9ad100cc924..1cf1d5d80e8ca12e3fbbf2ffb2dbdcddc4a43be0 100644 (file)
@@ -1,42 +1,73 @@
 Summary:       Public Domain Curses
-Summary(pl):   Ogólnie dostêpna biblioteka Curses
+Summary(pl.UTF-8):     Ogólnie dostępna biblioteka Curses
 Name:          PDCurses
 Version:       2.6
-Release:       1
+Release:       4
 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
+Patch1:                %{name}-Makefile.patch
+Patch2:                %{name}-ggdb.patch
 URL:           http://pdcurses.sourceforge.net/
 BuildRequires: XFree86-devel
 BuildRequires: autoconf
-BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: automake
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 PDCurses is an implementation of the curses library for X11. It
 provides the ability for existing text-mode curses programs to be
 re-built as native X11 applications with very little modification.
 PDCurses for X11 is also known as XCurses. For more information on
-PDCurses, visit http://pdcurses.sourceforge.net/ .
+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
+%description -l pl.UTF-8
+PDCurses jest implementacją biblioteki curses dla X11. Umożliwia ona
+przebudowanie istniejących programów tekstowych korzystających z
 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
-http://pdcurses.sourceforge.net/ .
+modyfikacjach. PDCurses dla X11 jest znana także jako XCurses. Więcej
+informacji na temat PDCurses można znaleźć na stronie
+<http://pdcurses.sourceforge.net/>.
+
+%package devel
+Summary:       Header files for PDCurses library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki PDCurses
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for PDCurses library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki PDCurses.
+
+%package static
+Summary:       Static version of PDCurses library
+Summary(pl.UTF-8):     Statyczna wersja biblioteki PDCurses
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static version of PDCurses library.
+
+%description static -l pl.UTF-8
+Statyczna wersja biblioteki PDCurses.
 
 %prep
 %setup -q
 %patch0
+%patch1 -p1
+%patch2 -p1
 
 %build
+cp -f /usr/share/automake/config.sub .
 %{__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 +78,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
This page took 0.147708 seconds and 4 git commands to generate.