76435db
Name:           malaga
407177c
Version:        7.12 
9e2dec5
Release:        12%{?dist}
76435db
Summary:        A programming language for automatic language analysis
76435db
76435db
Group:          Development/Languages
76435db
License:        GPLv2+
76435db
URL:            http://home.arcor.de/bjoern-beutel/malaga/
76435db
Source0:        http://home.arcor.de/bjoern-beutel/malaga/%{name}-%{version}.tgz
11e1a10
# Fix map_file symbol conflict with samba. Upstream can be considered
11e1a10
# inactive but as libvoikko >= 2.2 doesn't use libmalaga anymore, these kind
11e1a10
# of problems won't probably come up. The only executables in Fedora which
11e1a10
# link to libmalaga currently are the malaga tools.
e1b134c
Patch0:         malaga-rename-map_file.diff
8377f3c
# Malshow needs to be linked with -lm as Fedora's ld doesn't do implicit
8377f3c
# linking anymore
8377f3c
Patch1:         malaga-malshow-lm.patch
76435db
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
76435db
76435db
BuildRequires:  gtk2-devel readline-devel
76435db
Requires(post): /sbin/install-info
76435db
Requires(preun): /sbin/install-info
76435db
Requires: lib%{name} = %{version}-%{release}
76435db
76435db
%description
76435db
A software package for the development and application of
76435db
grammars that are used for the analysis of words and sentences of natural
76435db
languages. It is a language-independent system that offers a programming
76435db
language for the modelling of the language-dependent grammatical
76435db
information. This language is also called Malaga.
76435db
76435db
Malaga is based on the grammatical theory of the "Left Associative Grammar"
76435db
(LAG), developed by Roland Hausser, professor for Computational Linguistics at
76435db
University of Erlangen, Germany.
76435db
76435db
%package        devel
76435db
Summary:        Development files for %{name}
76435db
Group:          Development/Languages
76435db
Requires:       lib%{name} = %{version}-%{release}
76435db
76435db
%description    devel
76435db
The %{name}-devel package contains libraries and header files for
76435db
developing applications that use %{name}.
76435db
76435db
%package -n	lib%{name}
76435db
Summary:        Library files for %{name}
76435db
Group:          Development/Libraries
76435db
76435db
%description -n	lib%{name}
76435db
Library files for %{name}.
76435db
76435db
76435db
%prep
76435db
%setup -q
e1b134c
%patch0 -p1
8377f3c
%patch1 -p1
407177c
# Remove "@" marks so that the build process is more verbose
407177c
sed -i.debug -e 's|^\([ \t][ \t]*\)@|\1|' Makefile.in
76435db
# Remove "-s" so binaries won't be stripped
76435db
sed -i.strip -e 's| -s | |' Makefile.in
76435db
# Make libtool output more verbose
76435db
sed -i.silent -e 's|--silent||' Makefile.in
76435db
76435db
%build
76435db
%configure --with-readline
11e1a10
# Remove rpath,
11e1a10
# https://fedoraproject.org/wiki/Packaging/Guidelines#Removing_Rpath
11e1a10
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
11e1a10
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
76435db
make %{?_smp_mflags}
76435db
76435db
76435db
%install
76435db
rm -rf $RPM_BUILD_ROOT
76435db
make install DESTDIR=$RPM_BUILD_ROOT INSTALL_INFO=/sbin/install-info INSTALL="install -p"
76435db
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
76435db
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
76435db
# Remove static archive
76435db
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
76435db
# Change permission of libmalaga.so*
407177c
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libmalaga.so*
76435db
76435db
76435db
%clean
76435db
rm -rf $RPM_BUILD_ROOT
76435db
76435db
76435db
%post
76435db
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
76435db
76435db
%post -n lib%{name} -p /sbin/ldconfig
76435db
76435db
%preun
76435db
if [ $1 = 0 ]; then
76435db
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
76435db
fi
76435db
76435db
%postun -n lib%{name} -p /sbin/ldconfig
76435db
76435db
76435db
%files
76435db
%defattr(-,root,root,-)
76435db
%{_infodir}/%{name}*
76435db
%{_bindir}/mal*
76435db
%{_datadir}/%{name}
76435db
%{_mandir}/man1/mal*
76435db
76435db
%files -n lib%{name}
e1b134c
%defattr(-,root,root,-)
76435db
%doc CHANGES.txt GPL.txt README.txt
76435db
%{_libdir}/lib%{name}.so.*
76435db
76435db
%files devel
76435db
%defattr(-,root,root,-)
76435db
%{_libdir}/lib%{name}*.so
76435db
%{_includedir}/malaga.h
76435db
76435db
76435db
%changelog
9e2dec5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.12-12
9e2dec5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9e2dec5
39f0837
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.12-11
39f0837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
39f0837
1e18262
* Thu Nov 10 2011 Ville-Pekka Vainio <vpvainio@iki.fi> - 7.12-10
1e18262
- Rebuilt for new libpng
1e18262
065e81a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.12-9
065e81a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
065e81a
8752923
* Thu Jul 08 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.12-8
8752923
- The libmalaga subpackage had two defattrs, remove the other
8752923
8377f3c
* Wed Feb 10 2010 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 7.12-7
8377f3c
- Add patch to link malshow with -lm, hopefully fixes FTBFS caused by
8377f3c
  https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
8377f3c
11e1a10
* Wed Sep 16 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> - 7.12-6
11e1a10
- Remove rpath which was set for the malaga binaries in 64 bit architechtures
11e1a10
4320149
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.12-5
4320149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4320149
e1b134c
* Sun Jun 14 2009 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.12-4
e1b134c
- Add patch to change the (un)map_file functions to malaga_(un)map_file,
e1b134c
  there was a symbol conflict with the samba libraries causing a segfault
e1b134c
  if enchant-voikko and evolution-mapi were both installed when using
e1b134c
  Evolution. Bugs rhbz #502546 and sourceforge #2802548, patch by Harri
e1b134c
  Pitkänen.
e1b134c
- Add defattr to the libmalaga subpackage
e1b134c
883c7eb
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.12-3
883c7eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
883c7eb
c0c718f
* Thu Apr 03 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.12-2
c0c718f
- Upstream changed the source tarball of the current release, use the current
c0c718f
  upstream sources
c0c718f
407177c
* Sun Mar 02 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.12-1
407177c
- New version
407177c
- Drop upstreamed linking patch
407177c
- Re-add a Makefile.in sed build verbosity trick, which was done in the
407177c
  dropped patch but not upstream
407177c
50b6042
* Sat Feb 23 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-3
50b6042
- Add Makefile.in patch to link the executables against libmalaga
50b6042
2c1c8d3
* Sat Feb 16 2008 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-2
2c1c8d3
- Rebuild for GCC 4.3
2c1c8d3
76435db
* Mon Oct 29 2007 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-1
76435db
- Increment release for the first Fedora build
76435db
76435db
* Sun Oct 28 2007 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-0.5
76435db
- -devel requires only libmalaga, not malaga
76435db
76435db
* Sun Oct 28 2007 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-0.4
76435db
- Add option --with-readline to configure
76435db
- Add BR readline-devel
76435db
76435db
* Sat Oct 27 2007 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-0.3
76435db
- Don't strip binaries
76435db
- Remove static archive
76435db
- Make build procedure more verbose
76435db
- Make libtool output more verbose
76435db
- Remove redundant requires gtk2
76435db
- Add INSTALL="install -p" to make install to preserve timestamps
76435db
- Change libmalaga.so* to have permissions 0755
76435db
76435db
* Wed Oct 24 2007 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-0.2
76435db
- Main package requires libmalaga version-release and gtk2 (malshow needs it)
76435db
- libmalaga requires in -devel removed, that's implicit
76435db
- install-info called in post of main package
76435db
- Unneeded postun line removed
76435db
- INSTALL.txt is not needed in this package
76435db
- All documents are now in libmalaga
76435db
- /usr/share/malaga/ now owned by the malaga package
76435db
- A shorter Summary so rpmlint won't complain
76435db
- Currently writes an empty debuginfo package, "install -s" is called in 
76435db
  Makefile, how do I remove it?
76435db
76435db
* Mon Oct 22 2007 Ville-Pekka Vainio <vpivaini AT cs.helsinki.fi> 7.11-0.1
76435db
- Initial package