Пакет foomatic-filters: Specfile

%define snapshot 20081203

Packager: Stanislav Ievlev <inger@altlinux.org>

Name: foomatic-filters
Version: 3.0.2.%snapshot
Release: alt6.M41.1

Summary: Foomatic filters needed to run print queues with Foomatic PPDs
License: GPL
Group: Publishing
Url: http://www.linuxprinting.org

BuildArch:noarch

Source: %url/download/foomatic/%name-%version.tar

Patch: foomatic-filters-3.0.1-20031219-alt-enc-hack.patch

# Automatically added by buildreq on Fri Dec 26 2003 (-bi)
BuildRequires: cups enscript mpage

%description
This package contains the filters needed to run print queues based on
Foomatic PPD files.

%prep
%setup -q -n %name-%version
%patch -p1

%build
./make_configure
%configure
%make

%install
%make PREFIX=%_prefix DESTDIR=$RPM_BUILD_ROOT install
%__subst s,.*textfilter:.*a2ps,textfilter:\ mpage, $RPM_BUILD_ROOT%_sysconfdir/foomatic/filter.conf

# Remove superfluous file
rm -f %buildroot/etc/foomatic/filter.conf.sample

# backward compatibility symlink
ln -s /usr/bin/foomatic-rip $RPM_BUILD_ROOT%_prefix/lib/cups/filter/cupsomatic

chmod -x README USAGE ChangeLog

%files
%doc README USAGE ChangeLog
%_bindir/*
%_prefix/lib/cups/filter/*
%_prefix/lib/cups/backend/*
%_man1dir/*
%dir %_sysconfdir/foomatic
%dir %_sysconfdir/foomatic/direct
%config(noreplace) %_sysconfdir/foomatic/filter.conf

%changelog
* Sun Dec 07 2008 Igor Vlasenko <viy@altlinux.ru> 3.0.2.20081203-alt6.M41.1
- backport

* Sun Dec 07 2008 Igor Vlasenko <viy@altlinux.ru> 3.0.2.20081203-alt6.M40.1
- backport

* Wed Dec 03 2008 Igor Vlasenko <viy@altlinux.ru> 3.0.2.20081203-alt7
- 20081203

* Thu Jun 05 2008 Igor Vlasenko <viy@altlinux.ru> 3.0.2-alt6
- 20080605

* Thu Sep 06 2007 Stanislav Ievlev <inger@altlinux.org> 3.0.2-alt5
- 20070820

* Fri May 26 2006 Stanislav Ievlev <inger@altlinux.org> 3.0.2-alt4
- latest snapshot, noarch again

* Thu Apr 06 2006 Stanislav Ievlev <inger@altlinux.org> 3.0.2-alt3.20060109
- arch now

* Mon Apr 03 2006 Stanislav Ievlev <inger@altlinux.org> 3.0.2-alt2.20060109
- new snapshot

* Thu May 26 2005 Dmitry V. Levin <ldv@altlinux.org> 3.0.2-alt2.20050128
- Enhanced multilib support patch (mouse, closes #6734).

* Thu Apr 14 2005 Stanislav Ievlev <inger@altlinux.org> 3.0.2-alt1.20050128
- 3.0.2

* Tue Sep 21 2004 Stanislav Ievlev <inger@altlinux.org> 3.0.1-alt1.20040828
- latest snapshot

* Fri Sep 03 2004 Dmitry V. Levin <ldv@altlinux.org> 3.0.1-alt0.20040428.1
- Applied patch from upstream, to fix CAN-2004-0801.

* Wed May 05 2004 Stanislav Ievlev <inger@altlinux.org> 3.0.1-alt0.20040428
- latest snapshot

* Wed Feb 11 2004 Stanislav Ievlev <inger@altlinux.org> 3.0.1-alt0.20040128
- new snapshot

* Thu Dec 25 2003 Stanislav Ievlev <inger@altlinux.org> 3.0.1-alt0.20031219
- 3.0.1

* Tue Apr 29 2003 Stanislav Ievlev <inger@altlinux.ru> 3.0-alt3.20030310
- added symlink from usr/lib/cups/filter/cupsomatic to /usr/bin/foomatic-rip
  to backward compatibility

* Mon Mar 31 2003 Stanislav Ievlev <inger@altlinux.ru> 3.0-alt2.20030310
- latest snapshot

* Wed Feb 26 2003 Stanislav Ievlev <inger@altlinux.ru> 3.0-alt1.20030213
- Initial release