]> git.pld-linux.org Git - packages/awka.git/commitdiff
- use PIC in shared library, package shared library, static -> -static AC-branch AC-STABLE auto/ac/awka-0_7_4-4
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 27 Mar 2004 23:04:30 +0000 (23:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 4

Changed files:
    awka.spec -> 1.19

awka.spec

index 92b72d27898c6cdff4cf5e704c66b8c628a871ae..2f843ea07d20b2d41580d11a6fcb8ffda40c8153 100644 (file)
--- 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
This page took 0.092953 seconds and 4 git commands to generate.