File qfaktury.spec of Package qfaktury

# spec file for package qfaktury (0.6.2_1)
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# norootforbuild
Packager:	Mariusz Fik <fisiu82@gmail.com>

Summary:	Free software for creating, managing, and printing invoices
Name:		qfaktury
Version:	0.6.2_1
Release:	1
License:	GPL v3
Group:		Productivity/Office/Finance
Source0:	http://dl.sourceforge.net/qfaktury/%{name}-%{version}.tar.gz
Source1:	qfaktury.desktop
Patch0:		remove_local_prefix.patch
URL:		http://qfaktury.sourceforge.net/
BuildRequires:	libqt4-devel fdupes update-desktop-files
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%description
QFaktury is a software for creating, managing, and printing invoices.
It also maintains a database for contractor information, and a
database for product information. QFaktury was created for a Polish
financial system, but it can be useful in other countries with or
without small modifications.

%description -l pl
QFaktury to całkowicie darmowy i wszechstronny system fakturujący
pracujący pod kontrolą systemu Linux. Umożliwia on drukowanie faktur,
faktur pro forma i korekt, a także łatwe zarządzanie fakturami,
towarami i baza kontrahentów. Za pomocą programu QFaktury możliwe jest
również przygotowanie faktury w formacie PDF czy XML. System integruje
się z programem e-Przelewy.

%prep
%setup -q -n %{name}-%{version}
%patch0

%build
rm -rf build
qmake
make

%install
make INSTALL_ROOT=$RPM_BUILD_ROOT install
#mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
#mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/templates
#%{__install} -Dp -m 0644 icons/* $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
#%{__install} -Dp -m 0644 templates/* $RPM_BUILD_ROOT%{_datadir}/%{name}/templates
%{__install} -D -m 644 icons/qfaktury_128.png "$RPM_BUILD_ROOT%{_datadir}/pixmaps/qfaktury.png"
%{__install} -D -m 644 %{SOURCE1} "$RPM_BUILD_ROOT%{_datadir}/applications/qfaktury.desktop"
%{__rm} "$RPM_BUILD_ROOT%{_datadir}/applications/QFaktury.desktop"
%suse_update_desktop_file $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
%fdupes $RPM_BUILD_ROOT

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog.txt Copyright.txt plans.txt ReadMe.txt
%{_bindir}/qfaktury
%dir %{_datadir}/qfaktury
%dir %{_datadir}/%{name}/icons
%{_datadir}/%{name}/icons/*.png
%dir %{_datadir}/%{name}/templates
%{_datadir}/%{name}/templates/style.css
#%dir %{_datadir}/applications
%{_datadir}/applications/qfaktury.desktop
#%dir %{_datadir}/pixmaps
%{_datadir}/pixmaps/qfaktury.png

%changelog
* Thu Jul 16 2009 Mariusz Fik <fisiu82@gmail.com> - 0.6.2_1
  - upstream update
* Tue Feb 10 2009 Mariusz Fik <fisiu82@gmail.com> - 0.5.0
 - initial package, upstream version
openSUSE Build Service is sponsored by