File tla.spec of Package tla
#
# spec file for package tla (Version 1.3.3)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: tla
BuildRequires: libexpat-devel libxml2 openssl-devel zlib-devel
License: GNU General Public License (GPL)
Group: Development/Tools/Version Control
Autoreqprov: on
Version: 1.3.3
Release: 53
Summary: Arch Revision Control System
URL: http://www.gnuarch.org/
Source: %{name}-%{version}.tar.bz2
%define docs_tla docs-tla-1.3.1
Source1: %{docs_tla}.tar.bz2
Patch0: tla-1.2pre0-posix.patch
Patch2: tla-1.2-texi.patch
Patch3: tla-1.3.1-gcc4.patch
Patch4: tla-1.3.3-rel_add_records.patch
Patch5: tla-1.3.3-uninit.patch
Patch6: tla-1.3.3-depfiles.patch
Patch7: malloc-alignment-bug.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Also known as gnu-arch. It is an implementation of arch in C, by Tom
Lord.
A modern replacement for CVS, specifically designed for the distributed
development needs of open source projects. It has uniquely good support
for development on branches (especially good merging tools),
distributed repositories (every developer can have branches in their
own repository), changeset-oriented project management (arch commits
changes to multiple files at once), and, of course, file and directory
renaming.
You might also want to install a GUI for tla - archway or web based
browser - archzoom.
Authors:
--------
Thomas Lord <lord@emf.net>
%prep
%setup -q -n %{name}-%{version}/src -a1
%patch0
%patch3
%patch4 -p1
%patch5
%patch6
%ifarch ppc
%patch7
%endif
cd %{docs_tla}
%patch2 -p3
# remove files we don't want to package
rm -rf html/.arch-ids
%build
mkdir =build
cd =build
../configure \
--prefix=%{_prefix} \
--with-install-hackerlab=yes \
--with-install-link-tools=yes
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" all test
cd ../%{docs_tla}/texi
makeinfo arch.texi
%install
cd =build
make install destdir=$RPM_BUILD_ROOT
cd ..
install -m 755 tla/=gpg-check.awk $RPM_BUILD_ROOT%{_bindir}/tla-gpg-check
sed -i -e '1s,.*,#!/usr/bin/awk -f,' $RPM_BUILD_ROOT%{_bindir}/tla-gpg-check
install -d $RPM_BUILD_ROOT%{_infodir}
install -m 644 %{docs_tla}/texi/arch.info $RPM_BUILD_ROOT%{_infodir}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} --entry="* arch: (arch). The arch Revision Control System." %{_infodir}/arch.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/arch.info.gz
%files
%defattr(-,root,root)
%doc COPYING %{docs_tla}/html %{docs_tla}/HOWTO.crypto
%{_bindir}/*
%{_infodir}/*
%changelog
* Thu May 03 2007 - prusnak@suse.cz
- changed expat to libexpat-devel in BuildRequires
* Mon Apr 02 2007 - rguenther@suse.de
- Add zlib-devel BuildRequires.
* Sat Mar 25 2006 - schwab@suse.de
- Install =gpg-check.awk as tla-gpg-check.
- Add info dir entry.
- Work around malloc alignment bug on ppc.
- Fix dependency generation.
- Fix uninitialized variables.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 - jmatejek@suse.cz
- switched back to in-tree libneon
* Tue Jul 26 2005 - tcrhak@suse.cz
- fixed calls to rel_add_records()
* Mon Jul 25 2005 - tcrhak@suse.de
- update to 1.3.3
* Mon Apr 11 2005 - mcihar@suse.cz
- update to 1.3.1-fix-1
- fix compilation with gcc 4
* Tue Dec 28 2004 - mcihar@suse.cz
- update to 1.3
* Tue Aug 24 2004 - mcihar@suse.cz
- okay, this one is offical GNU Arch 1.2.1
* Fri Aug 20 2004 - mcihar@suse.cz
- removed .arch-ids from documentation
* Mon Aug 16 2004 - mcihar@suse.cz
- update to 1.2.1
* Wed Aug 04 2004 - mcihar@suse.cz
- update to 1.2.1rc1
* Wed Jun 30 2004 - mcihar@suse.cz
- use system neon, thanks goes to Andrew Suffield
* Mon Apr 19 2004 - mcihar@suse.cz
- updated to 1.2.1pre1 (fixes format string vulnerability in neon)
* Fri Apr 02 2004 - mcihar@suse.cz
- include info page (bug #35834)
* Fri Apr 02 2004 - mcihar@suse.cz
- include documentation about signing archives
* Mon Mar 01 2004 - mcihar@suse.cz
- update to 1.2
* Mon Feb 23 2004 - mcihar@suse.cz
- update to 1.2pre2
* Fri Jan 23 2004 - mcihar@suse.cz
- update to 1.2pre1
* Thu Jan 08 2004 - schwab@suse.de
- Fix more uses of varargs.
- Define _GNU_SOURCE to get the required declarations.
* Mon Jan 05 2004 - schwab@suse.de
- Fix use of varargs.
* Mon Jan 05 2004 - mcihar@suse.cz
- update to 1.2pre0
* Fri Nov 28 2003 - schwab@suse.de
- Fix use of varargs.
* Thu Nov 27 2003 - mcihar@suse.cz
- updated to 1.1pre9
* Fri Nov 21 2003 - mcihar@suse.cz
- initial packaging