SPECS: radare.spec - up to 1.0b

emes emes at pld-linux.org
Sat Nov 8 15:58:23 CET 2008


Author: emes                         Date: Sat Nov  8 14:58:23 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 1.0b

---- Files affected:
SPECS:
   radare.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/radare.spec
diff -u SPECS/radare.spec:1.2 SPECS/radare.spec:1.3
--- SPECS/radare.spec:1.2	Thu Jul 31 20:18:20 2008
+++ SPECS/radare.spec	Sat Nov  8 15:58:17 2008
@@ -1,16 +1,28 @@
 # $Revision$, $Date$
+#
+%bcond_without	doc		# build without documentation
+#
 Summary:		Advanced commandline hexadecimal editor
 Summary(pl.UTF-8):	Zaawansowany edytor szesnastkowy obsługiwany z linii poleceń
 Name:			radare
-Version:		0.9.9
+Version:		1.0b
 Release:		0.1
 License:		GPL
 Group:			Applications
 Source0:		http://radare.nopcode.org/get/%{name}-%{version}.tar.gz
-# Source0-md5:	d818eaa0509355b969231683bccfdf99
+# Source0-md5:	68175e48964ee07ca58a16a8137f20d9
+%if %{with doc}
+Source1:		http://radare.nopcode.org/get/%{name}.pdf
+# Source1-md5:	cb8ccb676e859680467ec6e058738a50
+%endif
 Patch0:			%{name}-paths.patch
+Patch1:			%{name}-lua51.patch
+Patch2:			%{name}-buildfails.patch
 URL:			http://radare.nopcode.org/
 BuildRequires:	readline-devel
+BuildRequires:	vala >= 0.3.4
+BuildRequires:	lua51-devel
+BuildRequires:	libewf-devel
 BuildRoot:		%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -28,13 +40,29 @@
 wszystkie rodzaje danych jak pliki. Procesy, pliki, dyski, pamięć... Ta elastyczność
 pozwala na łatwe tworzenie skryptów w językach takich jak Lua, Lisp, Perl, Vala.
 
+%if %{with doc}
+%package doc
+Summary:	Documentation for radare
+Summary(pl.UTF-8):	Dokumentacja dla radare
+Group:			Applications
+
+%description doc
+Documentation for radare.
+
+%description doc -l pl.UTF-8
+Dokuemntacja dla radare.
+%endif
+
 %prep
 #%setup -q -n %{name}-%{release_date}
 %setup -q
-%patch0 -p0
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
 # Won't link with --as-needed flag, so we run plain ./configure here
+LUA=/usr/bin/lua51 \
 ./configure --prefix=/usr --exec-prefix=/usr
 %{__make}
 
@@ -49,26 +77,34 @@
 
 mv $RPM_BUILD_ROOT%{_docdir}/%{name} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
+%if %{with doc}
+install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc %{_docdir}/%{name}-%{version}
 %attr(755,root,root) %{_bindir}/*
 %{_libdir}/libfdsniff.so
-%{_libdir}/libusbsniff.so
 %{_libdir}/%{name}
 %{_datadir}/%{name}
 %{_mandir}/man1/*
 
+%files doc
+%defattr(644,root,root,755)
+%doc %{_docdir}/%{name}-%{version}
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2008/11/08 14:58:17  emes
+- up to 1.0b
+
 Revision 1.2  2008/07/31 18:18:20  emes
 - up to 0.9.9
 - standard LDFLAGS break linking process. switching to plain ./configure
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/radare.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list