slang-1.2.2-2.spec [tłumaczenie]

"Piotr Dembiński"hector@kki.net.pl "Piotr Dembiński"hector w kki.net.pl
Sob, 12 Wrz 1998, 14:21:29 CEST


Ponieważ był mi potrzebny nowy slang, to przy okazji go przetłumaczyłem.
Nie wiem dlaczego, ale przy zainstalowanych dwóch bibliotekach slang (ver.
0.99.38-4 z RH 5.1 i 1.2.2-2 z PLD) instalowane programy widzą jedynie
bibliotekę pochodzącą z pierwszego pakietu.
Na przykład slrnpull budowany ze slang-devel-1.2.2-2 przy instalacji nie
widzi biblioteki libslang.so.1.

Czy to jest błąd w rpm'ie czy w pakietach? [rpm-2.5-2 z RH 5.1].

[begin slang.spec]
Summary:     shared library for C like extension language
Summary(de): Shared Library für eine C-artige Sprache 
Summary(fr): Bibliothčque partagée pour le langage d'extension C like
Summary(tr): C benzeri dil için ortak kitaplýk
Summary(pl): biblioteka obsługująca język skryptów podobny do C
Name:        slang
Version:     1.2.2
Release:     2
Copyright:   GPL
Group:       Libraries
Source:      ftp://space.mit.edu/pub/davis/slang/%{name}%{version}.tar.gz
Patch0:      slang-1.2.2-security.patch
URL:         ftp://space.mit.edu/pub/davis/slang/
Buildroot:   /tmp/%{name}-%{version}-root

%description
Slang (pronounced ``sssslang'') is a powerful stack based interpreter that
supports a C-like syntax.  It has been designed from the beginning to be
easily embedded into a program to make it extensible. Slang also provides a
way to quickly develop and debug the application embedding it in a safe and
efficient manner.  Since slang resembles C, it is easy to recode slang
procedures in C if the need arises.

%description -l de
Slang (sprich ``sssslang'') ist ein leistungsfähiger stapelbasierter Interpreter,
der eine C-ähnliche Syntax unterstützt. Er kann auf einfache Weise in ein
Programm eingebettet werden, damit dieses erweiterbar wird. Slang bietet
außerdem eine Möglichkeit zum schnellen Entwickeln und Debuggen der 
Anwendung, in die er eingebettet ist. Da Slang C ähnlich ist, können
Slang-Vorgänge einfach in C umgeschrieben werden.

%description -l fr
slang (prononcez Ť sssslang ť) est un interpréteur puissant offrant une
syntaxe ŕ la C. Il a été conçu au début pour ętre facilement intégré dans
un programme afin de le rendre extensible. slang offre aussi le moyen de
developper et débugger rapidement l'application intégrée de façon sűre et
efficace. Comme slang ressemble ŕ C, il est facile de recoder les procédures
slang en C si besoin est.

%description -l tr
Slang, C'ye benzer bir yazýmý olan, güçlü, yýđýn-tabanlý bir yorumlayýcýdýr.
C'ye benzer olduđundan Slang ile yazýlmýţ kodlarý C'ye çevirmek oldukça
kolaydýr.

%description -l pl
Slang jest opartą o terminfo biblioteką do obsługi terminali znakowych,
posiadającą wbudowany interpreter języka podobnego składniowo do C.
Zapewnia mechanizmy ułatwiające szybkie tworzenie rozbudowanych, łatwo
konfigurowalnych aplikacji.  Z racji dużego podobieństwa języka Slang do C,
łatwo jest w razie potrzeby przenieść interpretowany kod do wnętrza
programu.

%package devel
Summary:     header files for slang C like language
Summary(de): Header-Dateien für eine Slangvariante der C-Sprache 
Group:       Development/Libraries
Requires:    %{name} = %{version}

%description devel
This package contains header files required to develop slang-based
applications.  It also includes documentation to help you write slang-based
apps.

%description -l de devel
Dieses Paket enthält Header-Dateien zum Entwickeln von slang-basierten
Anwendungen. Dokumentation zum Schreiben von slang-basierten Anwendungen ist
enthalten.

%description -l pl devel
Paczka zawiera pliki nagłówkowe konieczne do tworzenia aplikacji opartych o
slang oraz dokumentację biblioteki.

%package static
Summary:     slang static library
Group:       Development/Libraries
Requires:    %{name}-devel = %{version}

%description static
This package contains the slang static libraries.

%description -l de static
Dieses Paket enthält die statischen Libraries.

%description -l pl static
Wersja biblioteki slang do statycznego łączenia z kompilowanymi programami.

%prep
%setup -q -n %{name}
%patch0 -p1
chmod +x configure

%build
CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr --includedir=/usr/include/slang
make elf
make

%install
rm -rf $RPM_BUILD_ROOT
make install install-elf install-links prefix=$RPM_BUILD_ROOT/usr \
	install_include_dir=$RPM_BUILD_ROOT/usr/include/slang

mv doc/text/* .

strip $RPM_BUILD_ROOT/usr/lib/lib*.so.*.*

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%attr(755, root, root) /usr/lib/lib*.so.*.*

%files devel
%defattr(644, root, root, 755)
%doc {cref,cslang,slang,slangfun,changes}.txt
/usr/lib/libslang.so
/usr/include/slang

%files static
%attr(644, root, root) /usr/lib/libslang.a

%changelog
* Fri Sep 11 1998 Piotr Dembiński <hector w kki.net.pl>
- added pl translation

* Fri Aug 28 1998 Tomasz Kłoczko <kloczek w rudy.mif.pg.gda.pl>
  [1.2.2-1]
- spec rewritten for using Buildroot,
- added %clean section,
- added using %%{name} in Source,
- added static subpackage,
- changeded dependences to "Requires: %%{name} = %%{version}" in devel
  subpackage,
- added striping shared libraries,
- added %attr and %defattr macros in %files (allow build package from
  non-root account).

* Fri Jun 26 1998 Alan Cox <alan w redhat.com>
- Swat another hole. Open TERMINFO files as the real uid not the euid.

* Fri Jun 26 1998 Alan Cox <alan w redhat.com>
- There's a hole in my library Dear Red Hat Dear Red Hat
- Squashed an sprintf arbitary length string into a small bufferon error
  bug.

* Tue May 05 1998 Prospector System <bugs w redhat.com>
- translations modified for de, fr, tr

* Sat Apr 18 1998 Erik Troan <ewt w redhat.com>
- rebuilt to find terminfo in /usr/share

* Tue Oct 14 1997 Donnie Barnes <djb w redhat.com>
- spec file cleanups

* Mon Sep 1 1997 Donnie Barnes <djb w redhat.com>
- upgraded to 0.99.38 (will it EVER go 1.0???)
- all patches removed (all appear to be in this version)

* Thu Jun 19 1997 Erik Troan <ewt w redhat.com>
- built against glibc
[end slang.spec]

Piotr 'pepe' Dembiński
-- 
Ludzie byli sobie kiedyś bliżsi. Broń nie niosła tak daleko. [S.J.Lec]



Więcej informacji o liście dyskusyjnej pld-devel-pl