%define _dbsnap 2004_04_08
%define _modules login logout about clients goods invoices means_of_transport stores archive_invoices
Summary: XdeFactor - New Generation of program to make invoices
-Summary(pl): XdeFactor - nowa generacja programu do fakturowania
+Summary(pl.UTF-8): XdeFactor - nowa generacja programu do fakturowania
Name: XdeFactor-ng
Version: %{_snap}
-Release: 2
+Release: 4
Epoch: 1
License: GPL
Group: Applications
BuildRequires: autoconf >= 2.13
BuildRequires: automake
BuildRequires: glib2-devel >= 2.0.0
-BuildRequires: gtk+2-devel >= 2.0.0
+BuildRequires: gtk+2-devel >= 1:2.0.0
BuildRequires: pkgconfig
BuildRequires: postgresql-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
This is nice program to makeing invoices, service clients, service
stores, service goods, service means of transport, service archive
invoices. It's based on GTK+2 library.
-You will need access to postgresql database. Sample structures are
+
+You will need access to PostgreSQL database. Sample structures are
given in the %{name}-database package.
-%description -l pl
-Jest to ca³kiem przyjemny program do fakturowania, obs³ugi klientów,
-obs³ugi magazynów, zarz±dzania us³ugami/towarami, zarz±dzania ¶rodkami
-transportu, zarz±dzania fakturami archiwalnymi. Jest on oparty o
-bibliotekê GTK+2.
-Bêdzie potrzebny dostêp do bazy danych postgresql. Przyk³adowa
-struktura bazy znajduje siê w paczce %{name}-database.
+%description -l pl.UTF-8
+Jest to całkiem przyjemny program do fakturowania, obsługi klientów,
+obsługi magazynów, zarządzania usługami/towarami, zarządzania środkami
+transportu, zarządzania fakturami archiwalnymi. Jest on oparty o
+bibliotekę GTK+2.
+
+Potrzebny jest dostęp do bazy danych PostgreSQL. Przykładowa struktura
+bazy znajduje się w paczce %{name}-database.
%package database
Summary: Database specs for XdeFactor
-Summary(pl): Definicja bazy dla XdeFactor
+Summary(pl.UTF-8): Definicja bazy dla XdeFactora
Group: Applications
+Requires: %{name} = %{epoch}:%{version}-%{release}
-%description database
+%description database
Database definition for XdeFactor.
-%description -l pl database
-Definicja bazy dla XdeFactor.
+%description database -l pl.UTF-8
+Definicja bazy dla XdeFactora.
%prep
%setup -q -n %{name} -a 10
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/defactor-ng/x/modules,%{_bindir},%{_datadir}/%{name}/images,%{_libdir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/defactor-ng/x/modules,%{_bindir},%{_datadir}/%{name}/images,%{_libdir},%{_mandir}/man1/}
install src/xdefactor-ng $RPM_BUILD_ROOT%{_bindir}
install conf/logo.jpg $RPM_BUILD_ROOT%{_datadir}/%{name}/images
README \
Makefile;
-do
- install deFactor-ng_sql/$i $RPM_BUILD_ROOT%{_datadir}/%{name}
+do
+ install deFactor-ng_sql/$i $RPM_BUILD_ROOT%{_datadir}/%{name}
done
cd src/modules
cd ..
done
+cd ../..
+
+install doc/xdefactor-ng.1 $RPM_BUILD_ROOT%{_mandir}/man1/
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS README conf/modules.conf.example
+%doc AUTHORS README INSTALL TODO conf/modules.conf.example
%attr(755,root,root) %{_bindir}/xdefactor-ng
%attr(755,root,root) %{_libdir}/libxdef_*.so
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/images/logo.jpg
%dir %{_sysconfdir}/defactor-ng
%dir %{_sysconfdir}/defactor-ng/x
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/defactor-ng/x/*.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/defactor-ng/x/*.conf
#%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/defactor-ng/x/host.name
%dir %{_sysconfdir}/defactor-ng/x/modules
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/defactor-ng/x/modules/*.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/defactor-ng/x/modules/*.conf
+%{_mandir}/man1/*
%files database
%defattr(644,root,root,755)
-%{_datadir}/%{name}
+%{_datadir}/%{name}/*
+%exclude %{_datadir}/%{name}/images