rpms/qfaxreader/EL-4 qfaxreader-parallel_build.patch, NONE, 1.1 qfaxreader.spec, NONE, 1.1 sources, 1.1, 1.2

Manuel Wolfshant (wolfy) fedora-extras-commits at redhat.com
Wed Jul 25 02:35:18 UTC 2007


Author: wolfy

Update of /cvs/pkgs/rpms/qfaxreader/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9096

Modified Files:
	sources 
Added Files:
	qfaxreader-parallel_build.patch qfaxreader.spec 
Log Message:
Initial import


qfaxreader-parallel_build.patch:

--- NEW FILE qfaxreader-parallel_build.patch ---
diff -r -u qfaxreader-0.3.1-orig/src/Makefile.am qfaxreader-0.3.1/src/Makefile.am
--- qfaxreader-0.3.1-orig/src/Makefile.am	2005-07-05 01:15:29.000000000 +0300
+++ qfaxreader-0.3.1/src/Makefile.am	2007-07-23 22:37:30.000000000 +0300
@@ -78,14 +78,11 @@
   cprinter.moc.cpp \
   qfrspinbox.o
 
-%.cpp: %.ui %.ui.h Makefile
+%.h: %.ui Makefile
 	$(UIC) $< -o $*.h
-	$(UIC) -impl $*.h $< -o $*.cpp
-	$(MOC) $*.h >> $*.cpp
 
-%.cpp: %.ui Makefile
-	$(UIC) $< -o $*.h
-	$(UIC) -impl $*.h $< -o $*.cpp
+%.cpp: %.ui %.h Makefile
+	$(UIC) -impl $*.h $< -o $*.cpp && \
 	$(MOC) $*.h >> $*.cpp
 
 %.moc.cpp: %.h Makefile
diff -r -u qfaxreader-0.3.1-orig/src/Makefile.in qfaxreader-0.3.1/src/Makefile.in
--- qfaxreader-0.3.1-orig/src/Makefile.in	2006-09-20 19:10:44.000000000 +0300
+++ qfaxreader-0.3.1/src/Makefile.in	2007-07-23 22:37:44.000000000 +0300
@@ -643,14 +643,11 @@
 	uninstall-binPROGRAMS uninstall-info-am
 
 
-%.cpp: %.ui %.ui.h Makefile
+%.h: %.ui Makefile
 	$(UIC) $< -o $*.h
-	$(UIC) -impl $*.h $< -o $*.cpp
-	$(MOC) $*.h >> $*.cpp
 
-%.cpp: %.ui Makefile
-	$(UIC) $< -o $*.h
-	$(UIC) -impl $*.h $< -o $*.cpp
+%.cpp: %.ui %.h Makefile
+	$(UIC) -impl $*.h $< -o $*.cpp && \
 	$(MOC) $*.h >> $*.cpp
 
 %.moc.cpp: %.h Makefile


--- NEW FILE qfaxreader.spec ---
Name:         qfaxreader
License:      GPL
Group:        Applications/Communications
Version:      0.3.1
Release:      7%{dist}
Summary:      A multipage monochrome/color TIFF/FAX viewer
Source:       http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
Patch0:       qfaxreader-parallel_build.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
URL:          http://qfaxreader.sourceforge.net/
BuildRequires:  qt-devel , libtiff-devel, gdbm-devel
BuildRequires:  desktop-file-utils
Requires:     hicolor-icon-theme

%description
QFaxReader is a monochrome/color multipage .TIFF files
visualisation utility designed for viewing faxes.
   
Features:
* multi-page monochrome/color tiff/fax file support
* fullscreen mode
* correctly display fax images in any resolution
* an aliases database for replacing fax IDs with real names
* image transformation (left or right rotation, vertical flipping)
* image export into any format supported by the Qt installation
* auto-refresh and notification of new facsimiles
* a sidebar for easy directory navigation
* printing monocrome and color tiffs
* arbitrary scaling (normal/smooth)
* internationalization support
* CID support

%prep
%setup -q 
%patch0 -p1 -b .parallel_make

%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
       --with-docdir=%{_defaultdocdir}/%{name}-%{version} --datadir=%{_datadir}   \
       --mandir=%{_mandir} --libdir=%{_libdir}
make %{?_smp_mflags}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

#mkdir -p %{buildroot}/%{_datadir}/applications
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps
#install -p -m 644 kde/qfaxreader.desktop %{buildroot}/%{_datadir}/applications
install -p -m 644 kde/icon-16.png %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/qfaxreader.png
install -p -m 644 kde/icon-22.png %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/qfaxreader.png
install -p -m 644 kde/icon-32.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/qfaxreader.png

desktop-file-install                                    \
        --vendor "fedora"                               \
        --remove-category Application                   \
        --dir %{buildroot}/%{_datadir}/applications     \
        kde/qfaxreader.desktop

%clean
rm -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_datadir}/man/man1/*
%{_bindir}/*
%{_datadir}/icons/*/*/apps/*
%{_datadir}/applications/*


%changelog

* Tue Jul 24 2007 manuel wolfshant <wolfy[AT]fedoraproject.org> - 0.3.1-7
- Parallel build, take two (yet another patch)

* Mon Jul 23 2007 manuel wolfshant <wolfy[AT]fedoraproject.org> - 0.3.1-6
- Adding automake as BR

* Mon Jul 23 2007 manuel wolfshant <wolfy[AT]fedoraproject.org> - 0.3.1-5
- More cleanup
- Reenable SMP

* Mon Jul 23 2007 manuel wolfshant <wolfy[AT]fedoraproject.org> - 0.3.1-4
- Spec file cleanup
- Disabled parallel build, it does not seem to work.

* Mon Jun 13 2007 manuel wolfshant <wolfy[AT]fedoraproject.org> - 0.3.1-3
- Removes the no longer valid application category at desktop-file-install time
rather than patch the file

* Mon Jun 11 2007 manuel wolfshant <wolfy[AT]fedoraproject.org> - 0.3.1-2
- Requires: hicolor-icon-theme
- Replaced some paths with macros
- Use gtk-update-icon-cache to show up installed icons in GNOME menus

* Mon May 28 2007 manuel wolfshant <wolfy[AT]fedoraproject.org> - 0.3.1-1
- Initial Fedora build based on the spec available on the application's website



Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/qfaxreader/EL-4/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Jul 2007 02:30:27 -0000	1.1
+++ sources	25 Jul 2007 02:34:46 -0000	1.2
@@ -0,0 +1 @@
+165774433c44f721e82552c866e7be87  qfaxreader-0.3.1.tar.bz2




More information about the scm-commits mailing list