From 78a3b8eafcb3e27321f680a90669d07b24ee9ee3 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 11 Jan 2012 11:28:09 +0900 Subject: [PATCH] Use %{_cups_serverbin} instead of the hardcoded path. (#772240) --- paps.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/paps.spec b/paps.spec index 463cb92..cdda4eb 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.6.8 -Release: 17%{?dist} +Release: 18%{?dist} License: LGPLv2+ URL: http://paps.sourceforge.net/ @@ -79,8 +79,8 @@ make install DESTDIR=$RPM_BUILD_ROOT rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la # make a symlink for CUPS filter -%{__mkdir_p} $RPM_BUILD_ROOT/usr/lib/cups/filter # Not libdir -ln -s %{_bindir}/paps $RPM_BUILD_ROOT/usr/lib/cups/filter/texttopaps +%{__mkdir_p} $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir +ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups @@ -95,7 +95,7 @@ rm -rf $RPM_BUILD_ROOT %doc AUTHORS COPYING.LIB README TODO %{_bindir}/paps %{_mandir}/man1/paps.1* -/usr/lib/cups/filter/texttopaps +%{_cups_serverbin}/filter/texttopaps %dir %attr (0755, root, lp) %{_sysconfdir}/cups %{_sysconfdir}/cups/paps.convs @@ -111,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libpaps.so %changelog +* Wed Jan 11 2012 Akira TAGOH - 0.6.8-18 +- Use %%{_cups_serverbin} instead of the hardcoded path. (#772240) + * Mon Dec 5 2011 Akira TAGOH - 0.6.8-17 - Add ldconfig in %%post/%%postun for paps-libs (#759880)