commit 2df7febd584e09bc67d5d8db52157d2a0e276ca8
Author: Jakub Bogusz <[email protected]>
Date:   Sat May 18 21:22:18 2013 +0200

    - updated to 1.0.0
    - added completions patch (allow build without bash-completion installed)

 colord-completions.patch | 16 ++++++++++++++++
 colord.spec              | 13 +++++++++----
 2 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/colord.spec b/colord.spec
index c82bdc2..838ac50 100644
--- a/colord.spec
+++ b/colord.spec
@@ -8,12 +8,13 @@
 Summary:       Color daemon - system daemon for managing color devices
 Summary(pl.UTF-8):     Demon colord - usługa systemowa do zarządzania 
urządzeniami obsługującymi kolory
 Name:          colord
-Version:       0.1.33
+Version:       1.0.0
 Release:       1
 License:       GPL v2+ and LGPL v2+
 Group:         Daemons
 Source0:       
http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
-# Source0-md5: 384f1be4e23ac0dbf1977224aac306c1
+# Source0-md5: 5b0c442a2a87c3688b17e1547452ffcb
+Patch0:                %{name}-completions.patch
 URL:           http://www.freedesktop.org/software/colord/
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.9
@@ -128,7 +129,7 @@ API colord dla języka Vala.
 Summary:       bash-completion for colormgr console commands
 Summary(pl.UTF-8):     Bashowe uzupełnianie poleceń terminalowych colormgr
 Group:         Applications/Shells
-Requires:      bash-completion
+Requires:      bash-completion >= 2.0
 
 %description -n bash-completion-colord
 bash-completion for colormgr console commands.
@@ -138,6 +139,7 @@ Bashowe uzupełnianie poleceń terminalowych colormgr.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__intltoolize}
@@ -148,6 +150,7 @@ Bashowe uzupełnianie poleceń terminalowych colormgr.
 %{__automake}
 %configure \
        --disable-silent-rules \
+       --enable-bash-completion=%{_datadir}/bash-completion/completions \
        %{__enable_disable apidocs gtk-doc} \
        %{__enable sane} \
        %{__enable_disable static_libs static} \
@@ -228,6 +231,8 @@ fi
 %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
 %{_mandir}/man1/cd-create-profile.1*
 %{_mandir}/man1/cd-fix-profile.1*
+# man5?
+%{_mandir}/man1/colord.conf.1*
 %{_mandir}/man1/colormgr.1*
 %{systemdunitdir}/colord.service
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf
@@ -280,4 +285,4 @@ fi
 
 %files -n bash-completion-colord
 %defattr(644,root,root,755)
-%{_sysconfdir}/bash_completion.d/colormgr-completion.bash
+%{_datadir}/bash-completion/completions/colormgr
diff --git a/colord-completions.patch b/colord-completions.patch
new file mode 100644
index 0000000..2af4f56
--- /dev/null
+++ b/colord-completions.patch
@@ -0,0 +1,16 @@
+--- colord-1.0.0/configure.ac.orig     2013-05-13 10:38:29.000000000 +0200
++++ colord-1.0.0/configure.ac  2013-05-18 08:35:04.747928192 +0200
+@@ -177,8 +177,13 @@
+ AC_ARG_ENABLE(bash_completion, 
AS_HELP_STRING([--enable-bash-completion],[Enable bash completion]),
+             enable_bash_completion=$enableval, enable_bash_completion=yes)
+ if test x$enable_bash_completion != xno; then
++      if test x$enable_bash_completion != xyes; then
++              BASH_COMPLETIONS_DIR="$enable_bash_completion"
++              enable_bash_completion=yes
++      else
+       PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0])
+       BASH_COMPLETIONS_DIR="`pkg-config --variable=completionsdir 
bash-completion`"
++      fi
+       AC_SUBST([BASH_COMPLETIONS_DIR])
+ fi
+ AM_CONDITIONAL([HAVE_BASH_COMPLETION],[test "x$enable_bash_completion" = 
"xyes"])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/colord.git/commitdiff/2df7febd584e09bc67d5d8db52157d2a0e276ca8

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to