[paps] Use %{_cups_serverbin} instead of the hardcoded path. (#772240)
Akira TAGOH
tagoh at fedoraproject.org
Wed Jan 11 02:28:16 UTC 2012
commit 78a3b8eafcb3e27321f680a90669d07b24ee9ee3
Author: Akira TAGOH <tagoh at redhat.com>
Date: Wed Jan 11 11:28:09 2012 +0900
Use %{_cups_serverbin} instead of the hardcoded path. (#772240)
paps.spec | 11 +++++++----
1 files 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 <tagoh at redhat.com> - 0.6.8-18
+- Use %%{_cups_serverbin} instead of the hardcoded path. (#772240)
+
* Mon Dec 5 2011 Akira TAGOH <tagoh at redhat.com> - 0.6.8-17
- Add ldconfig in %%post/%%postun for paps-libs (#759880)
More information about the scm-commits
mailing list