SPECS: open-cobol.spec - libtoolize to fix soname - separated -lib...

qboosh qboosh at pld-linux.org
Tue Dec 6 21:57:26 CET 2005


Author: qboosh                       Date: Tue Dec  6 20:57:26 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- libtoolize to fix soname
- separated -libs and -static
- devel deps (in base package)

---- Files affected:
SPECS:
   open-cobol.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/open-cobol.spec
diff -u SPECS/open-cobol.spec:1.15 SPECS/open-cobol.spec:1.16
--- SPECS/open-cobol.spec:1.15	Tue Dec  6 21:43:18 2005
+++ SPECS/open-cobol.spec	Tue Dec  6 21:57:21 2005
@@ -14,8 +14,13 @@
 BuildRequires:	gcc-g77
 BuildRequires:	gettext-devel
 BuildRequires:	gmp-devel
+BuildRequires:	libltdl-devel
 BuildRequires:	libtool
 BuildRequires:	ncurses-devel
+Requires:	%{name}-libs = %{version}-%{release}
+Requires:	gmp-devel
+Requires:	libltdl-devel
+Requires:	ncurses-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -39,10 +44,38 @@
 Biblioteka uruchomieniowa jest objęta licencją GNU Lesser General
 Public License.
 
+%package libs
+Summary:	OpenCOBOL runtime library
+Summary(pl):	Biblioteka uruchomieniowa OpenCOBOLa
+License:	LGPL
+Group:		Libraries
+
+%description libs
+OpenCOBOL runtime library.
+
+%description libs -l pl
+Biblioteka uruchomieniowa OpenCOBOLa.
+
+%package static
+Summary:	Static OpenCOBOL runtime library
+Summary(pl):	Statyczna biblioteka uruchomieniowa OpenCOBOLa
+License:	LGPL
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description static
+Static OpenCOBOL runtime library, needed to build statically
+linked COBOL programs.
+
+%description static -l pl
+Statyczna biblioteka uruchomieniowa OpenCOBOLa, potrzebna do tworzenia
+statycznie linkowanych programów w COBOLu.
+
 %prep
 %setup -q
 
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
@@ -62,6 +95,9 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS TODO
@@ -69,17 +105,29 @@
 %{_datadir}/%{name}
 %{_includedir}/libcob.h
 %{_includedir}/libcob
-%attr(755,root,root) %{_libdir}/libcob.*.*.*
+%attr(755,root,root) %{_libdir}/libcob.so
 %{_libdir}/libcob.la
-%{_libdir}/libcob.a
 %{_infodir}/*.info*
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcob.so.*.*.*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcob.a
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2005/12/06 20:57:21  qboosh
+- libtoolize to fix soname
+- separated -libs and -static
+- devel deps (in base package)
+
 Revision 1.15  2005/12/06 20:43:18  qboosh
 - pl fixes
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/open-cobol.spec?r1=1.15&r2=1.16&f=u




More information about the pld-cvs-commit mailing list