SPECS: qfaktury.spec - upgraded to 0.5.0, still piece of crap
gotar
gotar at pld-linux.org
Mon Jan 19 18:02:17 CET 2009
Author: gotar Date: Mon Jan 19 17:02:17 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- upgraded to 0.5.0, still piece of crap
---- Files affected:
SPECS:
qfaktury.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/qfaktury.spec
diff -u SPECS/qfaktury.spec:1.17 SPECS/qfaktury.spec:1.18
--- SPECS/qfaktury.spec:1.17 Sun Jan 4 01:32:45 2009
+++ SPECS/qfaktury.spec Mon Jan 19 18:02:11 2009
@@ -1,20 +1,18 @@
# $Revision$, $Date$
-
-%define _pre rc1
-%define qversion 0_1a
Summary: Free software for creating, managing, and printing invoices
Summary(pl.UTF-8): Darmowy i wszechstronny system fakturujący
Name: qfaktury
-Version: 0.1a
-Release: 1.%{_pre}.4
+Version: 0.5.0
+Release: 1
License: GPL
Group: X11/Applications
-Source0: http://www.e-linux.pl/download/task,doc_download/gid,15/%{name}
-# Source0-md5: 13fed849ec20c66cab5e22aa6f9e783e
+Source0: http://dl.sourceforge.net/qfaktury/%{name}-%{version}-Source.tar.gz
+# Source0-md5: 1ae6a9826c51fd6597500e6f39cdc7fd
Patch0: %{name}-desktop.patch
-URL: http://www.e-linux.pl/
-BuildRequires: qmake
-BuildRequires: qt-devel >= 6:3.3
+URL: http://qfaktury.sourceforge.net/
+BuildRequires: cmake
+BuildRequires: Qt3Support-devel
+BuildRequires: QtXml-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -33,42 +31,38 @@
się z programem e-Przelewy.
%prep
-%setup -q -n %{name}
-%patch0 -p1
-
-# remove CVS control files
-find -name cvs -print0 | xargs -0 rm -rf
-# remove prebuilt i386 binaries
-rm -fr .obj/
+%setup -q -n %{name}-%{version}-Source
+#%patch0 -p1
%build
-export QTDIR=/usr
-./configure
-qmake
-%{__make} QTDIR=/usr
+rm -rf build
+mkdir build
+cd build
+export CXXFLAGS="%{rpmcxxflags}"
+%cmake .. \
+ -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
+ %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pixmapsdir}
+install -d $RPM_BUILD_ROOT%{_desktopdir}
-rm -f install install.sh
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
-%{__make} install \
- INSTALL_ROOT=$RPM_BUILD_ROOT \
- QTDIR=/usr
-
-install share/qfaktury/icons/qfaktury_48.png $RPM_BUILD_ROOT%{_pixmapsdir}/qfaktury.png
+# it's not used anyway...
+cp -r share/qfaktury $RPM_BUILD_ROOT%{_datadir}
+install share/qfaktury/icons/qfaktury.desktop $RPM_BUILD_ROOT%{_desktopdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc readme todo faq
+%doc ReadMe.txt
%attr(755,root,root) %{_bindir}/qfaktury
%{_datadir}/qfaktury
%{_desktopdir}/qfaktury.desktop
-%{_pixmapsdir}/qfaktury*.png
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -76,6 +70,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2009/01/19 17:02:11 gotar
+- upgraded to 0.5.0, still piece of crap
+
Revision 1.17 2009/01/04 00:32:45 undefine
- remove prebuild i386 binaries - fix build on x86_64
- release 4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/qfaktury.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list