[packages/colm] - updated to 0.14.7; now with shared libs - noarch -doc and vim plugin

qboosh qboosh at pld-linux.org
Fri May 21 17:26:38 CEST 2021


commit 563a8588f5b4f41d471971ecd8e41d14259221d1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 21 17:28:47 2021 +0200

    - updated to 0.14.7; now with shared libs
    - noarch -doc and vim plugin

 colm.spec | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 91 insertions(+), 10 deletions(-)
---
diff --git a/colm.spec b/colm.spec
index 4a6042c..fc21074 100644
--- a/colm.spec
+++ b/colm.spec
@@ -1,15 +1,15 @@
-# TODO: install vim file
 Summary:	The Colm Programming Language - COmputer Language Manipulation
 Summary(pl.UTF-8):	Język programowania Colm do operacji na językach komputerowych
 Name:		colm
-Version:	0.12.0
+Version:	0.14.7
 Release:	1
-License:	GPL v2+
+License:	MIT
 Group:		Development/Tools
-Source0:	http://www.complang.org/colm/%{name}-%{version}.tar.gz
-# Source0-md5:	079a1ed44f71d48a349d954096c8e411
-URL:		http://www.complang.org/colm/
+Source0:	http://www.colm.net/files/colm/%{name}-%{version}.tar.gz
+# Source0-md5:	073b11234fe64a281874b4466c0c25ee
+URL:		http://www.colm.net/
 BuildRequires:	libstdc++-devel
+BuildRequires:	rpm-build >= 4.6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,11 +25,61 @@ przekształceń języków komputerowych. Colm jest zainspirowany głównie
 przez TXL (<http://www.txl.ca/>). Jest to rodzina języków
 transformacji programów.
 
+%package devel
+Summary:	Header files for COLM libraries
+Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek COLM
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libstdc++-devel
+
+%description devel
+Header files for COLM libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek COLM.
+
+%package static
+Summary:	Static COLM libraries
+Summary(pl.UTF-8):	Statyczne biblioteki COLM
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static COLM libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki COLM.
+
+%package doc
+Summary:	Documentation for COLM
+Summary(pl.UTF-8):	Dokumentacja do pakietu COLM
+Group:		Documentation
+BuildArch:	noarch
+
+%description doc
+Documentation for COLM.
+
+%description doc -l pl.UTF-8
+Dokumentacja do pakietu COLM.
+
+%package -n vim-syntax-colm
+Summary:	Vim syntax file for COLM
+Summary(pl.UTF-8):	Plik składni Vima dla pakietu COLM
+Group:		Documentation
+BuildArch:	noarch
+
+%description -n vim-syntax-colm
+Vim syntax file for COLM.
+
+%description -n vim-syntax-colm -l pl.UTF-8
+Plik składni Vima dla pakietu COLM.
+
 %prep
 %setup -q
 
 %build
-%configure
+%configure \
+	--datadir=%{_datadir}/colm
 %{__make}
 
 %install
@@ -38,13 +88,44 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# no external dependensies (beside libstdc++)
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
+install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/colm/colm.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README
+%doc COPYING README
 %attr(755,root,root) %{_bindir}/colm
+%attr(755,root,root) %{_bindir}/colm-wrap
+%attr(755,root,root) %{_libdir}/libcolm-%{version}.so
+%attr(755,root,root) %{_libdir}/libfsm-%{version}.so
+%{_datadir}/colm
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcolm.so
+%attr(755,root,root) %{_libdir}/libfsm.so
+%{_includedir}/aapl
 %{_includedir}/colm
-%{_libdir}/libcolmd.a
-%{_libdir}/libcolmp.a
+%{_includedir}/libfsm
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcolm.a
+%{_libdir}/libfsm.a
+
+%files doc
+%defattr(644,root,root,755)
+%{_docdir}/colm
+
+%files -n vim-syntax-colm
+%defattr(644,root,root,755)
+%{_datadir}/vim/vimfiles/syntax/colm.vim
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/colm.git/commitdiff/563a8588f5b4f41d471971ecd8e41d14259221d1



More information about the pld-cvs-commit mailing list