3 # - do defactor-ng_sql.spec with automagical script which
4 # configure our databases to work with XdeFactor-ng or phpDeFactor-ng
5 # - add user ksiegowy (accounter) to whole distribution ?
8 %define _modules login logout about clients goods invoices means_of_transport stores archive_invoices
9 Summary: XdeFactor - New Generation of program to make invoices
10 Summary(pl): XdeFactor - Nowa Generacja programu do fakturowania
16 BuildRequires: glib2-devel
17 BuildRequires: postgresql-devel
18 BuildRequires: gtk+2-devel
19 BuildRequires: pango-devel
20 BuildRequires: pkgconfig
21 BuildRequires: freetype-devel
22 Prereq: /sbin/ldconfig
23 Source0: http://defactor-ng.gnu.pl/XdeFactor-ng_snapshots/%{name}_%{version}.tar.gz
25 Source2: %{name}-modules.conf
26 Patch0: %{name}-includes.patch
27 Patch1: %{name}-modules-includes.patch
28 Patch2: %{name}-sharedir.patch
29 URL: http://defactor-ng.gnu.pl/
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This is nice program to makeing invoices, service clients, service
34 stores, service goods, service means of transport, service archive
35 invoices. It's based on GTK+2 library.
38 Ca³kiem przyjemny program do fakturowania, obs³ugi klientów, obs³ugi
39 magazynów, zarz±dzania us³ugami/towarami, zarz±dzania ¶rodkami transportu,
40 zarz±dzania fakturami archiwalnymi. Jest on oparty o bibliotekê GTK+2.
43 %setup -q -n xdefactor-ng
50 %{__make} CC="gcc %{rpmcflags}"
54 for i in %{_modules}; do
56 %{__make} CC="gcc %{rpmcflags}"
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/defactor-ng/x/modules/,%{_bindir},%{_datadir}/%{name}/images,%{_libdir}}
64 install src/xdefactor-ng $RPM_BUILD_ROOT/%{_bindir}/
65 install conf/logo.jpg $RPM_BUILD_ROOT/%{_datadir}/%{name}/images/
66 #install conf/modules.conf.example $RPM_BUILD_ROOT/%{_datadir}/%{name}/
67 install conf/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/
68 install conf/host.name $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/
69 cat %{SOURCE1} >> $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/xdefactor-ng.conf
70 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/modules.conf
75 for i in %{_modules}; do
78 install $j $RPM_BUILD_ROOT%{_libdir}/
80 install *.conf $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/modules/
84 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %doc AUTHORS README conf/modules.conf.example
94 %attr(755,root,root) %{_bindir}/xdefactor-ng
95 %{_datadir}/%{name}/images/logo.jpg
96 %{_sysconfdir}/defactor-ng/x/*.conf
97 %{_sysconfdir}/defactor-ng/x/host.name
98 %{_sysconfdir}/defactor-ng/x/modules/*.conf
99 %{_libdir}/libxdef_*.so