From 9b5f0686b91d8550f76f0443892e4dbf6edae162 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 27 Mar 2004 23:04:30 +0000 Subject: [PATCH] - use PIC in shared library, package shared library, static -> -static - release 4 Changed files: awka.spec -> 1.19 --- awka.spec | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/awka.spec b/awka.spec index 92b72d2..2f843ea 100644 --- a/awka.spec +++ b/awka.spec @@ -2,13 +2,14 @@ Summary: Translator of the AWK programming language to ANSI-C Summary(pl): Konwerter programów w jêzyku AWK na programy w jêzyku C Name: awka Version: 0.7.4 -Release: 3 +Release: 4 License: GPL Group: Applications/Text Source0: http://awka.sourceforge.net/%{name}-%{version}.tar.gz # Source0-md5: 80da40555d79d78cf96d8e3a03e1b94f Patch0: %{name}-DESTDIR.patch URL: http://awka.sourceforge.net/ +BuildRequires: perl-base BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -20,9 +21,23 @@ Awka sk jêzyku C i biblioteki z któr± przet³umaczone programy mog± byæ skonsolidowane. +%package static +Summary: Static awka library +Summary(pl): Statyczna bibliotka awka +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description static +Static awka library. + +%description static -l pl +Statyczna bibliotka awka. + %prep %setup -q -%patch -p1 +%patch0 -p1 + +%{__perl} -pi -e 's/^(CFLAGS.*)/$1 -fPIC/' lib/Makefile.in %build %configure2_13 @@ -37,9 +52,16 @@ 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) %attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_libdir}/lib*.so %{_includedir}/* -%{_libdir}/lib*.a %{_mandir}/man[15]/* + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a -- 2.44.0