]> git.pld-linux.org Git - packages/colorhug-client.git/blob - colorhug-client.spec
- unconditional noarch subpackages
[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.8
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:  7c73d5088e14556f09181115346448ac
10 Patch0:         %{name}-bashcomp.patch
11 URL:            http://hughski.com/
12 BuildRequires:  colord-devel >= 1.2.9
13 BuildRequires:  colord-gtk-devel >= 0.1.24
14 BuildRequires:  docbook-utils
15 BuildRequires:  gettext-tools >= 0.17
16 BuildRequires:  glib2-devel >= 1:2.31.10
17 BuildRequires:  gobject-introspection-devel >= 0.9.8
18 BuildRequires:  gtk+3-devel >= 3.11.2
19 BuildRequires:  intltool >= 0.50.0
20 BuildRequires:  lcms2-devel
21 BuildRequires:  libcanberra-gtk3-devel >= 0.10
22 BuildRequires:  libgusb-devel >= 0.2.2
23 BuildRequires:  libsoup-devel >= 2.4
24 BuildRequires:  pkgconfig
25 BuildRequires:  sqlite3-devel
26 BuildRequires:  tar >= 1:1.22
27 BuildRequires:  xz
28 BuildRequires:  yelp-tools
29 Requires:       colord-libs >= 1.2.9
30 Requires:       glib2 >= 1:2.31.10
31 Requires:       libgusb >= 0.2.2
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 # why programs are installed to libexecdir in the first place?
35 %define         _libexecdir     %{_bindir}
36
37 %description
38 The Hughski ColorHug colorimeter is a low cost open-source hardware
39 sensor used to calibrate screens.
40
41 This package includes the client tools which allows the user to
42 upgrade the firmware on the sensor or to access the sensor from
43 command line scripts.
44
45 %description -l pl.UTF-8
46 Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym,
47 mający otwarte źródła, służący do kalibrowania ekranów.
48
49 Ten pakiet zawiera narzędzia klienckie pozwalające uaktualniać
50 firmware sensora oraz operować sensorem z linii poleceń.
51
52 %package gui
53 Summary:        GUI tools for the Hughski Colorimeter
54 Summary(pl.UTF-8):      Graficzne narzędzia do kolorymetrów Hughski
55 Group:          X11/Applications
56 Requires:       %{name} = %{version}-%{release}
57 Requires:       colord-gtk >= 0.1.24
58 Requires:       gtk+3 >= 3.11.2
59 Requires:       libcanberra-gtk3 >= 0.10
60
61 %description gui
62 The Hughski ColorHug colorimeter is a low cost open-source hardware
63 sensor used to calibrate screens.
64
65 This package includes the GUI client tools which allow the user to
66 access the sensor.
67
68 %description gui -l pl.UTF-8
69 Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym,
70 mający otwarte źródła, służący do kalibrowania ekranów.
71
72 Ten pakiet zawiera graficzne narzędzia klienckia pozwalające operować
73 sensorem.
74
75 %package -n bash-completion-colorhug
76 Summary:        Bash completion support for ColorHug console commands
77 Summary(pl.UTF-8):      Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga
78 Group:          Applications/Shells
79 Requires:       bash-completion >= 2.0
80 BuildArch:      noarch
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 %patch0 -p1
91
92 %build
93 %{__aclocal} -I m4
94 %{__autoconf}
95 %{__autoheader}
96 %{__automake}
97 %configure \
98         --enable-bash-completion=%{bash_compdir} \
99         --disable-silent-rules
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} install \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 mv $RPM_BUILD_ROOT%{_localedir}/{cs_CZ,cs}
109 # replace de with more complete version from de_DE
110 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de
111 mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
112 mv $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
113 mv $RPM_BUILD_ROOT%{_localedir}/{es_ES,es}
114 mv $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
115 mv $RPM_BUILD_ROOT%{_localedir}/{it_IT,it}
116 mv $RPM_BUILD_ROOT%{_localedir}/{ja_JP,ja}
117 mv $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl}
118 # empty version of pl which already exists
119 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL
120 # just a copy of pt (only header differs)
121 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pt_PT
122
123 %find_lang %{name}
124
125 %clean
126 rm -rf $RPM_BUILD_ROOT
127
128 %files -f %{name}.lang
129 %defattr(644,root,root,755)
130 %doc AUTHORS NEWS README
131 %attr(755,root,root) %{_bindir}/colorhug
132 %attr(755,root,root) %{_bindir}/colorhug-cmd
133 %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml
134 %{_mandir}/man1/colorhug-cmd.1*
135
136 %files gui
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/colorhug-backlight
139 %attr(755,root,root) %{_bindir}/colorhug-ccmx
140 %attr(755,root,root) %{_bindir}/colorhug-flash
141 %attr(755,root,root) %{_bindir}/colorhug-refresh
142 %{_datadir}/colorhug-client
143 %{_datadir}/appdata/com.hughski.ColorHug.Backlight.appdata.xml
144 %{_datadir}/appdata/com.hughski.ColorHug.CcmxLoader.appdata.xml
145 %{_datadir}/appdata/com.hughski.ColorHug.DisplayAnalysis.appdata.xml
146 %{_datadir}/appdata/com.hughski.ColorHug.FlashLoader.appdata.xml
147 %{_datadir}/help/C/colorhug-client
148 %{_desktopdir}/colorhug-docs.desktop
149 %{_desktopdir}/com.hughski.ColorHug.Backlight.desktop
150 %{_desktopdir}/com.hughski.ColorHug.CcmxLoader.desktop
151 %{_desktopdir}/com.hughski.ColorHug.DisplayAnalysis.desktop
152 %{_desktopdir}/com.hughski.ColorHug.FlashLoader.desktop
153 %{_iconsdir}/hicolor/*/apps/colorhug*.png
154 %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png
155 %{_iconsdir}/hicolor/scalable/apps/colorhug.svg
156 %{_iconsdir}/hicolor/*x*/mimetypes/application-x-ccmx.png*
157 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg
158 %{_mandir}/man1/colorhug-backlight.1*
159 %{_mandir}/man1/colorhug-ccmx.1*
160 %{_mandir}/man1/colorhug-flash.1*
161 %{_mandir}/man1/colorhug-refresh.1*
162
163 %files -n bash-completion-colorhug
164 %defattr(644,root,root,755)
165 %{bash_compdir}/colorhug-cmd
This page took 0.075586 seconds and 4 git commands to generate.