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
40 transportu, zarz±dzania fakturami archiwalnymi. Jest on oparty o
44 %setup -q -n xdefactor-ng
51 %{__make} CC="gcc %{rpmcflags}"
55 for i in %{_modules}; do
57 %{__make} CC="gcc %{rpmcflags}"
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/defactor-ng/x/modules/,%{_bindir},%{_datadir}/%{name}/images,%{_libdir}}
65 install src/xdefactor-ng $RPM_BUILD_ROOT/%{_bindir}/
66 install conf/logo.jpg $RPM_BUILD_ROOT/%{_datadir}/%{name}/images/
67 #install conf/modules.conf.example $RPM_BUILD_ROOT/%{_datadir}/%{name}/
68 install conf/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/
69 install conf/host.name $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/
70 cat %{SOURCE1} >> $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/xdefactor-ng.conf
71 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/modules.conf
76 for i in %{_modules}; do
79 install $j $RPM_BUILD_ROOT%{_libdir}/
81 install *.conf $RPM_BUILD_ROOT%{_sysconfdir}/defactor-ng/x/modules/
85 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc AUTHORS README conf/modules.conf.example
95 %attr(755,root,root) %{_bindir}/xdefactor-ng
96 %{_datadir}/%{name}/images/logo.jpg
97 %{_sysconfdir}/defactor-ng/x/*.conf
98 %{_sysconfdir}/defactor-ng/x/host.name
99 %{_sysconfdir}/defactor-ng/x/modules/*.conf
100 %{_libdir}/libxdef_*.so