-Name: tla
-Summary: tla arch is a revision control system
-Version: 1.1pre5
-Release: 1
-License: GPL
-Group: Development/Tools
-Provides: %{name}
-Source0: http://regexps.srparish.net/src/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 16512739150bdb81764a9d2fffb6a423
-BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
-URL: http://regexps.srparish.net/www/
+Summary: tla arch - revision control system
+Summary(pl): tla arch - system kontroli wersji
+Name: tla
+Version: 1.3
+%define pre pre2
+Release: 0.%{pre}.1
+Epoch: 1
+License: GPL v2
+Group: Development/Version Control
+Source0: http://www.seyza.com/releases/%{name}-%{version}%{pre}.tar.gz
+# Source0-md5: 1ea98d553f376b36da43f782cd08fd51
+# http://people.debian.org/~asuffield/daily/tla/lord/
+Patch0: %{name}-neon.patch
+URL: http://www.gnu.org/software/gnu-arch/
+Requires: diffutils
+Requires: patch
+Requires: tar
+BuildRequires: neon-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-tla arch is a revision control system: a program that let's programmers
+tla arch is a revision control system: a program that lets programmers
archive a history of changes made to the software they maintain and
-that, more importantly, helps programmers to coordinate, syncronize,
+that, more importantly, helps programmers to coordinate, synchronize,
and combine multiple lines of development for a single project.
arch version tla is a C version of the reference arch concepts.
+%description -l pl
+tla arch jest systemem kontroli wersji - programem, który pozwala
+programistom archiwizowaæ historiê zmian wykonanych w rozwijanym przez
+nich oprogramowaniu oraz, co wa¿niejsze, pomaga programistom
+koordynowaæ, synchronizowaæ i ³±czyæ wiele linii kodu podczas rozwoju
+projektu.
-%prep
-%setup
+arch w wersji tla to wersja w C wzorcowych idei arch.
-## using: rpmbuild -ba --target=i686-redhat-linux tls-1.0.6.spec
+%prep
+%setup -q -n %{name}-%{version}%{pre}
+%patch0 -p1
%build
-cd %{_builddir}/%{name}-%{version}/src
+rm -rf src/tla/libneon
+ln -s /usr/include/neon src/tla/libneon
+cd src
mkdir =build
cd =build
-## imitate what an rpm macro would export
-export CFLAGS="${RPM_OPT_FLAGS}" CXXFLAGS="${RPM_OPT_FLAGS}" FFLAGS="${RPM_OPT_FLAGS}";
-../configure --prefix=%{_prefix} --destdir=%{buildroot}
-make
-# ok, I tested already
-make test
-
-
-%install
-rm -rf %{buildroot}
-cd %{_builddir}/%{name}-%{version}/src/=build
-make install
-## move some docs to a place the rpm doc macro likes
-cd %{_builddir}/%{name}-%{version}
-cp src/tla/=THANKS =THANKS
-cp --recursive src/docs-tla/html html
-cp --recursive src/docs-tla/ps ps
-cp --recursive src/docs-tla/texi texi
-
-# CLEANUP UNKNOWN USAGE DIRS
-rm -rf %{buildroot}%{_libdir}
-rm -rf %{buildroot}%{_prefix}/src
+CFLAGS="%{rpmcflags}"
+CXXFLAGS="%{rpmcflags}"
+FFLAGS="%{rpmcflags}"
+export CFLAGS CXXFLAGS FFLAGS
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-, root, root)
-%doc COPYING =INSTALL =RELEASE-ID html ps texi
-%{_bindir}
-#{_includedir}
-#{_libdir}
-#{_libexecdir}
+# custom configure script
+../configure \
+ --prefix=%{_prefix} \
+ --destdir=$RPM_BUILD_ROOT \
+ --with-ssh-is-openssh=1 \
+ --with-cc="%{__cc}"
+%{__make} -j1
-%changelog
-* Thu Jul 10 2003 Angles <angles@aminvestments.com>
-- bump to version tls 1.0.6
+# ok, I tested already
+%{__make} -j1 test
-* Mon Jun 30 2003 Angles <angles@aminvestments.com>
-- this is c version of larch called tls
-- bump to version tls 1.0.4
+%install
+rm -rf $RPM_BUILD_ROOT
-* Sun May 21 2002 Angles <angles@aminvestments.com>
-- bump to version 1.0pre16
+%{__make} -j1 -C src/=build install
-* Sun May 05 2002 Angles <angles@aminvestments.com>
-- bump to version 1.0pre15
+cp --recursive src/docs-tla/html html
-* Thu Apr 11 2002 Angles <angles@aminvestments.com>
-- bump to version 1.0pre14
-- automate patch2 to match build hosts actual vars
+rm -rf html/.arch-ids
+rm -rf $RPM_BUILD_ROOT%{_libdir}
+rm -rf $RPM_BUILD_ROOT%{_prefix}/src
-* Mon Mar 27 2002 Angles <angles@phpgroupware.org>
-- bump to version 1.0pre13
-- redo patches so no version-name strings are in the patch paths
+%clean
+rm -rf $RPM_BUILD_ROOT
-* Mon Mar 11 2002 Angles <angles@phpgroupware.org>
-- initial package release, version 1.0pre11
-- make symlinks in linexec tree relative to remove hard coded rpm buildroot path
-- find useful docs and assemble for the rpm doc macro
+%files
+%defattr(644,root,root,755)
+%doc html
+%attr(755,root,root) %{_bindir}/*