]> git.pld-linux.org Git - packages/colorhug-client.git/blob - colorhug-client.spec
noarch bash completions
[packages/colorhug-client.git] / colorhug-client.spec
1 Summary:        Tools for the Hughski Colorimeter
2 Summary(pl.UTF-8):      Narzędzia do kolorymetrów Hughski
3 Name:           colorhug-client
4 Version:        0.2.1
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
9 # Source0-md5:  2f54a15b354cd39d8b58572e9899fd88
10 URL:            http://hughski.com/
11 BuildRequires:  colord-devel >= 0.1.31
12 BuildRequires:  colord-gtk-devel >= 0.1.24
13 BuildRequires:  docbook-utils
14 BuildRequires:  gettext-devel >= 0.17
15 BuildRequires:  glib2-devel >= 1:2.31.10
16 BuildRequires:  gobject-introspection-devel >= 0.9.8
17 BuildRequires:  gtk+3-devel >= 3.0.0
18 BuildRequires:  intltool >= 0.50.0
19 BuildRequires:  lcms2-devel
20 BuildRequires:  libcanberra-gtk3-devel >= 0.10
21 BuildRequires:  libgusb-devel >= 0.1.4
22 BuildRequires:  libsoup-devel >= 2.4
23 BuildRequires:  pkgconfig
24 BuildRequires:  sqlite3-devel
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  xz
27 Requires:       colord-libs >= 0.1.31
28 Requires:       glib2 >= 1:2.31.10
29 Requires:       libgusb >= 0.1.4
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 # why programs are installed to libexecdir in the first place?
33 %define         _libexecdir     %{_bindir}
34
35 %description
36 The Hughski ColorHug colorimeter is a low cost open-source hardware
37 sensor used to calibrate screens.
38
39 This package includes the client tools which allows the user to
40 upgrade the firmware on the sensor or to access the sensor from
41 command line scripts.
42
43 %description -l pl.UTF-8
44 Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym,
45 mający otwarte źródła, służący do kalibrowania ekranów.
46
47 Ten pakiet zawiera narzędzia klienckie pozwalające uaktualniać
48 firmware sensora oraz operować sensorem z linii poleceń.
49
50 %package gui
51 Summary:        GUI tools for the Hughski Colorimeter
52 Summary(pl.UTF-8):      Graficzne narzędzia do kolorymetrów Hughski
53 Group:          X11/Applications
54 Requires:       %{name} = %{version}-%{release}
55 Requires:       colord-gtk >= 0.1.24
56 Requires:       gtk+3 >= 3.0.0
57 Requires:       libcanberra-gtk3 >= 0.10
58
59 %description gui
60 The Hughski ColorHug colorimeter is a low cost open-source hardware
61 sensor used to calibrate screens.
62
63 This package includes the GUI client tools which allow the user to
64 access the sensor.
65
66 %description gui -l pl.UTF-8
67 Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym,
68 mający otwarte źródła, służący do kalibrowania ekranów.
69
70 Ten pakiet zawiera graficzne narzędzia klienckia pozwalające operować
71 sensorem.
72
73 %package -n bash-completion-colorhug
74 Summary:        Bash completion support for ColorHug console commands
75 Summary(pl.UTF-8):      Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga
76 Group:          Applications/Shells
77 Requires:       bash-completion
78 %if "%{_rpmversion}" >= "5"
79 BuildArch:      noarch
80 %endif
81
82 %description -n bash-completion-colorhug
83 Bash completion support for ColorHug console commands.
84
85 %description -n bash-completion-colorhug -l pl.UTF-8
86 Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga.
87
88 %prep
89 %setup -q
90
91 %build
92 %configure \
93         --disable-silent-rules
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 # remove empty de locale
103 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de
104 mv $RPM_BUILD_ROOT%{_localedir}/{cs_CZ,cs}
105 mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
106 mv $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
107 mv $RPM_BUILD_ROOT%{_localedir}/{es_ES,es}
108 mv $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
109 mv $RPM_BUILD_ROOT%{_localedir}/{it_IT,it}
110 mv $RPM_BUILD_ROOT%{_localedir}/{ja_JP,ja}
111 mv $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl}
112 mv $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
113 # empty version of pl which already exists
114 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL
115 # program not packaged (unfinished as of 0.1.13)
116 %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/colorhug-spectro-util.desktop
117
118 %find_lang %{name}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS NEWS README
126 %attr(755,root,root) %{_bindir}/colorhug
127 %attr(755,root,root) %{_bindir}/colorhug-cmd
128 %attr(755,root,root) %{_bindir}/colorhug-inhx32-to-bin
129 %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml
130 %{_mandir}/man1/colorhug-cmd.1*
131
132 %files gui
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/colorhug-ccmx
135 %attr(755,root,root) %{_bindir}/colorhug-flash
136 %{_datadir}/colorhug-client
137 %{_datadir}/appdata/colorhug-ccmx.appdata.xml
138 %{_datadir}/appdata/colorhug-flash.appdata.xml
139 %{_datadir}/help/C/colorhug-client
140 %{_desktopdir}/colorhug-ccmx.desktop
141 %{_desktopdir}/colorhug-docs.desktop
142 %{_desktopdir}/colorhug-flash.desktop
143 %{_iconsdir}/hicolor/*/apps/colorhug*.png
144 %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png
145 %{_iconsdir}/hicolor/scalable/apps/colorhug.svg
146 %{_iconsdir}/hicolor/*x*/mimetypes/application-x-ccmx.png*
147 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg
148 %{_mandir}/man1/colorhug-flash.1*
149 %{_mandir}/man1/colorhug-ccmx.1*
150
151 %files -n bash-completion-colorhug
152 %defattr(644,root,root,755)
153 /etc/bash_completion.d/colorhug-cmd-completion.bash
This page took 0.138923 seconds and 4 git commands to generate.