]> git.pld-linux.org Git - packages/colorhug-client.git/blob - colorhug-client.spec
- updated to 0.2.8
[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 %if "%{_rpmversion}" >= "5"
81 BuildArch:      noarch
82 %endif
83
84 %description -n bash-completion-colorhug
85 Bash completion support for ColorHug console commands.
86
87 %description -n bash-completion-colorhug -l pl.UTF-8
88 Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga.
89
90 %prep
91 %setup -q
92 %patch0 -p1
93
94 %build
95 %{__aclocal} -I m4
96 %{__autoconf}
97 %{__autoheader}
98 %{__automake}
99 %configure \
100         --enable-bash-completion=%{bash_compdir} \
101         --disable-silent-rules
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 mv $RPM_BUILD_ROOT%{_localedir}/{cs_CZ,cs}
111 # replace de with more complete version from de_DE
112 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de
113 mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
114 mv $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
115 mv $RPM_BUILD_ROOT%{_localedir}/{es_ES,es}
116 mv $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
117 mv $RPM_BUILD_ROOT%{_localedir}/{it_IT,it}
118 mv $RPM_BUILD_ROOT%{_localedir}/{ja_JP,ja}
119 mv $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl}
120 # empty version of pl which already exists
121 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL
122 # just a copy of pt (only header differs)
123 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pt_PT
124
125 %find_lang %{name}
126
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %files -f %{name}.lang
131 %defattr(644,root,root,755)
132 %doc AUTHORS NEWS README
133 %attr(755,root,root) %{_bindir}/colorhug
134 %attr(755,root,root) %{_bindir}/colorhug-cmd
135 %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml
136 %{_mandir}/man1/colorhug-cmd.1*
137
138 %files gui
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_bindir}/colorhug-backlight
141 %attr(755,root,root) %{_bindir}/colorhug-ccmx
142 %attr(755,root,root) %{_bindir}/colorhug-flash
143 %attr(755,root,root) %{_bindir}/colorhug-refresh
144 %{_datadir}/colorhug-client
145 %{_datadir}/appdata/com.hughski.ColorHug.Backlight.appdata.xml
146 %{_datadir}/appdata/com.hughski.ColorHug.CcmxLoader.appdata.xml
147 %{_datadir}/appdata/com.hughski.ColorHug.DisplayAnalysis.appdata.xml
148 %{_datadir}/appdata/com.hughski.ColorHug.FlashLoader.appdata.xml
149 %{_datadir}/help/C/colorhug-client
150 %{_desktopdir}/colorhug-docs.desktop
151 %{_desktopdir}/com.hughski.ColorHug.Backlight.desktop
152 %{_desktopdir}/com.hughski.ColorHug.CcmxLoader.desktop
153 %{_desktopdir}/com.hughski.ColorHug.DisplayAnalysis.desktop
154 %{_desktopdir}/com.hughski.ColorHug.FlashLoader.desktop
155 %{_iconsdir}/hicolor/*/apps/colorhug*.png
156 %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png
157 %{_iconsdir}/hicolor/scalable/apps/colorhug.svg
158 %{_iconsdir}/hicolor/*x*/mimetypes/application-x-ccmx.png*
159 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg
160 %{_mandir}/man1/colorhug-backlight.1*
161 %{_mandir}/man1/colorhug-ccmx.1*
162 %{_mandir}/man1/colorhug-flash.1*
163 %{_mandir}/man1/colorhug-refresh.1*
164
165 %files -n bash-completion-colorhug
166 %defattr(644,root,root,755)
167 %{bash_compdir}/colorhug-cmd
This page took 0.089113 seconds and 3 git commands to generate.