]> git.pld-linux.org Git - packages/foomatic-db-engine.git/blob - foomatic-db-engine.spec
- release 4
[packages/foomatic-db-engine.git] / foomatic-db-engine.spec
1 %include        /usr/lib/rpm/macros.perl
2 %define         snap    20080317
3 Summary:        System for using free software printer drivers
4 Summary(pl.UTF-8):      System umożliwiający używanie darmowych sterowników drukarek
5 Name:           foomatic-db-engine
6 Version:        3.0.%{snap}
7 Release:        4
8 License:        GPL
9 Group:          Applications/System
10 Source0:        http://www.linuxprinting.org/download/foomatic/%{name}-3.0-%{snap}.tar.gz
11 # Source0-md5:  d6ac64aeaa1f6ecdf386df6b6ad380a7
12 Patch0:         %{name}-destdir.patch
13 Patch1:         %{name}-cups.patch
14 URL:            http://www.linuxprinting.org/foomatic.html
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  foomatic-filters >= 3.0.20080317
18 BuildRequires:  libxml2-devel
19 BuildRequires:  perl-devel
20 BuildRequires:  rpm-perlprov
21 Provides:       perl(Foomatic::GrovePath)
22 Obsoletes:      foomatic
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define _ulibdir        %{_prefix}/lib
26
27 %description
28 Foomatic is a system for using free software printer drivers with
29 common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux LPD,
30 LPRng, PPR, and direct spooler-less printing and any free software
31 driver for which execution data has been entered in the database.
32
33 %description -l pl.UTF-8
34 Foomatic to system pozwalający na używanie wolnodostępnych sterowników
35 drukarek z popularnymi uniksowymi serwerami wydruków. Obsługuje LPD,
36 PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpośrednie drukowanie bez
37 kolejkowania oraz dowolny wolnodostępny sterownik, dla którego
38 parametry zostały wprowadzone do bazy danych.
39
40 %prep
41 %setup -q -n %{name}-3.0-%{snap}
42 %patch0 -p1
43 %patch1 -p1
44
45 %build
46 %{__aclocal} -I .
47 %{__autoconf}
48 %configure
49 %{__make} \
50         PERL_INSTALLDIRS=vendor
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 chmod +x mkinstalldirs
56
57 %{__sed} -i 's,PREFIX =.*,PREFIX = %{_prefix},g' lib/Makefile
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 install -d $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/{driver,opt,printer}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc ChangeLog TODO README USAGE
69 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic
70 %attr(755,root,root) %{_bindir}/foomatic-*
71 %attr(755,root,root) %{_sbindir}/foomatic-*
72 %attr(755,root,root) %{_ulibdir}/cups/driver/foomatic
73 %{perl_vendorlib}/Foomatic
74 %{_datadir}/foomatic
75 %{_mandir}/man1/*
76 %{_mandir}/man8/*
This page took 0.036422 seconds and 3 git commands to generate.