rpms/gocr/devel gocr.spec,1.3,1.4

Tomas Smetana (tsmetana) fedora-extras-commits at redhat.com
Mon Jan 14 10:37:22 UTC 2008


Author: tsmetana

Update of /cvs/pkgs/rpms/gocr/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29404

Modified Files:
	gocr.spec 
Log Message:
* Mon Jan 14 2008 Tomas Smetana <tsmetana at redhat.com> - 0.44-4
- build devel package (with static library)



Index: gocr.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gocr/devel/gocr.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gocr.spec	21 Aug 2007 21:17:47 -0000	1.3
+++ gocr.spec	14 Jan 2008 10:36:41 -0000	1.4
@@ -1,6 +1,6 @@
 Name:           gocr
 Version:        0.44
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        GNU Optical Character Recognition program
 
 Group:          Applications/Multimedia
@@ -23,10 +23,20 @@
 to different OSes and architectures. It can open many different image
 formats, and its quality have been improving in a daily basis.
 
+%package devel
+Group:          Applications/Multimedia
+Summary:        GNU Optical Character Recognition program development files
+Requires:       %{name} = %{version}-%{release}
+Provides:		%{name}-static = %{version}-%{release}
+
+%description devel
+This package enables you to develop applications capable of image to text
+conversion using Pgm2asc library which is part of GOCR. Install this package
+if you want to develop text recognition programs using Pgm2asc.
 
 %prep
 %setup -q
-%patch -p1 -b .man
+%patch0 -p1 -b .man
 
 
 %build
@@ -38,14 +48,17 @@
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 # Don't ship static library
-rm -rf $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}
+# rm -rf $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}
 # Don't ship buggy Tcl/Tk frontend
 rm $RPM_BUILD_ROOT/%{_bindir}/gocr.tcl
-
+cd $RPM_BUILD_ROOT/%{_libdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+
+%postun
 
 %files
 %defattr(-,root,root,-)
@@ -55,8 +68,15 @@
 %{_bindir}/gocr
 %{_mandir}/man1/gocr.1*
 
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/gocr.h
+%{_libdir}/libPgm2asc.a
 
 %changelog
+* Mon Jan 14 2008 Tomas Smetana <tsmetana at redhat.com> - 0.44-4
+- build devel package (with static library)
+
 * Tue Aug 21 2007 - Orion Poplawski <orion at cora.nwra.com> - 0.44-3
 - Update license tag to GPLv2+
 - Rebuild for BuildID




More information about the fedora-extras-commits mailing list