]> git.pld-linux.org Git - packages/tla.git/blobdiff - tla.spec
- 1.3 pre2
[packages/tla.git] / tla.spec
index 4726a16dc1fe0fed95d8712b3646c017bfcf0224..0938c9972354c77862437667ab3ea71cf34bc619 100644 (file)
--- a/tla.spec
+++ b/tla.spec
@@ -1,14 +1,21 @@
 Summary:       tla arch - revision control system
 Summary(pl):   tla arch - system kontroli wersji
 Name:          tla
-Version:       1.1
-Release:       1
+Version:       1.3
+%define        pre     pre2
+Release:       0.%{pre}.1
 Epoch:         1
 License:       GPL v2
 Group:         Development/Version Control
-Source0:       http://regexps.srparish.net/src/tla/%{name}-%{version}.tar.gz
-# Source0-md5: 58527f281f425be1a015dcb015245a33
+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
@@ -29,32 +36,40 @@ projektu.
 arch w wersji tla to wersja w C wzorcowych idei arch.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}%{pre}
+%patch0 -p1
 
 %build
+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="%{rpmcflags}" CXXFLAGS="%{rpmcflags}" FFLAGS="%{rpmcflags}"
-../configure --prefix=%{_prefix} --destdir=%{buildroot}
-%{__make}
+
+CFLAGS="%{rpmcflags}"
+CXXFLAGS="%{rpmcflags}"
+FFLAGS="%{rpmcflags}"
+export CFLAGS CXXFLAGS FFLAGS
+
+# custom configure script
+../configure \
+       --prefix=%{_prefix} \
+       --destdir=$RPM_BUILD_ROOT \
+       --with-ssh-is-openssh=1 \
+       --with-cc="%{__cc}"
+%{__make} -j1
 
 # ok, I tested already
-%{__make} test
+%{__make} -j1 test
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} -C src/=build install
+%{__make} -j1 -C src/=build install
 
-## move some docs to a place the rpm doc macro likes
-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 html/.arch-ids
 rm -rf $RPM_BUILD_ROOT%{_libdir}
 rm -rf $RPM_BUILD_ROOT%{_prefix}/src
 
@@ -63,8 +78,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc html ps texi
+%doc html
 %attr(755,root,root) %{_bindir}/*
-#{_includedir}
-#{_libdir}
-#{_libexecdir}
This page took 0.05907 seconds and 4 git commands to generate.