From 76435db2fff3d4a9bdd288a90962ab139079f2e2 Mon Sep 17 00:00:00 2001 From: Ville-Pekka Vainio Date: Oct 29 2007 18:12:00 +0000 Subject: Initial import of malaga. --- diff --git a/.cvsignore b/.cvsignore index e69de29..06cc7db 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +malaga-7.11.tgz diff --git a/malaga.spec b/malaga.spec new file mode 100644 index 0000000..23b80ec --- /dev/null +++ b/malaga.spec @@ -0,0 +1,138 @@ +Name: malaga +Version: 7.11 +Release: 1%{?dist} +Summary: A programming language for automatic language analysis + +Group: Development/Languages +License: GPLv2+ +URL: http://home.arcor.de/bjoern-beutel/malaga/ +Source0: http://home.arcor.de/bjoern-beutel/malaga/%{name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gtk2-devel readline-devel +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info +Requires: lib%{name} = %{version}-%{release} + +%description +A software package for the development and application of +grammars that are used for the analysis of words and sentences of natural +languages. It is a language-independent system that offers a programming +language for the modelling of the language-dependent grammatical +information. This language is also called Malaga. + +Malaga is based on the grammatical theory of the "Left Associative Grammar" +(LAG), developed by Roland Hausser, professor for Computational Linguistics at +University of Erlangen, Germany. + +%package devel +Summary: Development files for %{name} +Group: Development/Languages +Requires: lib%{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package -n lib%{name} +Summary: Library files for %{name} +Group: Development/Libraries + +%description -n lib%{name} +Library files for %{name}. + + +%prep +%setup -q +# Remove "-s" so binaries won't be stripped +sed -i.strip -e 's| -s | |' Makefile.in +# Remove "@" marks so that the build process is more verbose +sed -i.debug -e 's|^\([ \t][ \t]*\)@|\1|' Makefile.in +# Make libtool output more verbose +sed -i.silent -e 's|--silent||' Makefile.in + +%build +%configure --with-readline +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL_INFO=/sbin/install-info INSTALL="install -p" +rm -f $RPM_BUILD_ROOT%{_infodir}/dir +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +# Remove static archive +find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';' +# Change permission of libmalaga.so* +chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libmalaga.so* + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : + +%post -n lib%{name} -p /sbin/ldconfig + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : +fi + +%postun -n lib%{name} -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%{_infodir}/%{name}* +%{_bindir}/mal* +%{_datadir}/%{name} +%{_mandir}/man1/mal* + +%files -n lib%{name} +%doc CHANGES.txt GPL.txt README.txt +%defattr(-,root,root,-) +%{_libdir}/lib%{name}.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/lib%{name}*.so +%{_includedir}/malaga.h + + +%changelog +* Mon Oct 29 2007 Ville-Pekka Vainio 7.11-1 +- Increment release for the first Fedora build + +* Sun Oct 28 2007 Ville-Pekka Vainio 7.11-0.5 +- -devel requires only libmalaga, not malaga + +* Sun Oct 28 2007 Ville-Pekka Vainio 7.11-0.4 +- Add option --with-readline to configure +- Add BR readline-devel + +* Sat Oct 27 2007 Ville-Pekka Vainio 7.11-0.3 +- Don't strip binaries +- Remove static archive +- Make build procedure more verbose +- Make libtool output more verbose +- Remove redundant requires gtk2 +- Add INSTALL="install -p" to make install to preserve timestamps +- Change libmalaga.so* to have permissions 0755 + +* Wed Oct 24 2007 Ville-Pekka Vainio 7.11-0.2 +- Main package requires libmalaga version-release and gtk2 (malshow needs it) +- libmalaga requires in -devel removed, that's implicit +- install-info called in post of main package +- Unneeded postun line removed +- INSTALL.txt is not needed in this package +- All documents are now in libmalaga +- /usr/share/malaga/ now owned by the malaga package +- A shorter Summary so rpmlint won't complain +- Currently writes an empty debuginfo package, "install -s" is called in + Makefile, how do I remove it? + +* Mon Oct 22 2007 Ville-Pekka Vainio 7.11-0.1 +- Initial package diff --git a/sources b/sources index e69de29..21f84e8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f23a154b1efb80fc50cd0db2762cf014 malaga-7.11.tgz