rpms/o3read/F-8 o3read-makefile.patch, NONE, 1.1 o3read.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Deji Akingunola (deji) fedora-extras-commits at redhat.com
Mon Jan 21 18:04:16 UTC 2008


Author: deji

Update of /cvs/pkgs/rpms/o3read/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17531/F-8

Modified Files:
	.cvsignore sources 
Added Files:
	o3read-makefile.patch o3read.spec 
Log Message:
Initial import

o3read-makefile.patch:

--- NEW FILE o3read-makefile.patch ---
--- Makefile	2005-01-07 03:28:47.000000000 -0500
+++ Makefile.new	2008-01-20 16:53:19.000000000 -0500
@@ -3,10 +3,8 @@
 VERSION = 0.0.4
 
 CC = gcc
-CFLAGS = -Wall -ansi -pedantic -O -g
-PREFIX = /usr/local
 BINDIR = $(PREFIX)/bin
-MANDIR = $(PREFIX)/man/man1
+MANDIR = $(MANNDIR)/man1
 DOCS = COPYING INSTALL README TODO ChangeLog filformat.sxw
 BINS = o3read o3totxt o3tohtml utf8tolatin1
 SRCS = o3read.h main.c o3read.c o3totxt.c o3tohtml.c utf8tolatin1.c
@@ -42,9 +40,9 @@
 	strip $(BINS)
 
 install: $(BINS)
-	mkdir -p $(BINDIR) $(MANDIR)
-	cp $(BINS) $(BINDIR)
-	cp $(MANS) $(MANDIR)
+	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
+	install -p $(BINS) $(DESTDIR)$(BINDIR)
+	install -p -m 0644 $(MANS) $(DESTDIR)$(MANDIR)
 
 uninstall:
 	cd $(BINDIR) && rm -f $(BINS)


--- NEW FILE o3read.spec ---
Summary:	Standalone converter for OpenOffice.org documents
Name:		o3read
Version:	0.0.4
Release:	1%{?dist}
Group:		Development/Tools
License:	GPLv2+
URL:		http://siag.nu/o3read/
Source0:	http://siag.nu/pub/o3read/%{name}-%{version}.tar.gz
Patch0:		o3read-makefile.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Conflicts:	tracker < 0.6.4-4

%description
o3read is a standalone converter for the OpenOffice.org writer and calc
documents to text, html, and a dump of the parse tree.
It doesn't depend on Open Office or any other external tools or libraries.

%prep
%setup -q
%patch0 -p0 -b .mak

%build
make %{?_smp_mflags} CFLAGS="%{optflags}" 

%install
rm -rf %buildroot
make install DESTDIR=%buildroot PREFIX=%{_prefix} MANNDIR=%{_mandir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README TODO
%{_bindir}/o3*
%{_bindir}/utf*
%{_mandir}/man1/*.*

%Changelog
* Sun Jan 20 2008 Deji Akingunola <dakingun at gmail.com> - 0.0.4-1
- Initial build for Fedora


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/o3read/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	21 Jan 2008 17:27:29 -0000	1.1
+++ .cvsignore	21 Jan 2008 18:03:43 -0000	1.2
@@ -0,0 +1 @@
+o3read-0.0.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/o3read/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Jan 2008 17:27:29 -0000	1.1
+++ sources	21 Jan 2008 18:03:43 -0000	1.2
@@ -0,0 +1 @@
+583361b559ccf5a764edb586795d1b06  o3read-0.0.4.tar.gz




More information about the fedora-extras-commits mailing list