]> git.pld-linux.org Git - packages/colorhug-client.git/blob - colorhug-client.spec
- updated to 0.2.0
[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.0
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:  0d9715ab2ea6b0e74f0490625f78d7c7
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.35.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:       %{name}-libs = %{version}-%{release}
28 Requires:       colord-libs >= 0.1.31
29 Requires:       glib2 >= 1:2.31.10
30 Requires:       libgusb >= 0.1.4
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 # why programs are installed to libexecdir in the first place?
34 %define         _libexecdir     %{_bindir}
35
36 %description
37 The Hughski ColorHug colorimeter is a low cost open-source hardware
38 sensor used to calibrate screens.
39
40 This package includes the client tools which allows the user to
41 upgrade the firmware on the sensor or to access the sensor from
42 command line scripts.
43
44 %description -l pl.UTF-8
45 Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym,
46 mający otwarte źródła, służący do kalibrowania ekranów.
47
48 Ten pakiet zawiera narzędzia klienckie pozwalające uaktualniać
49 firmware sensora oraz operować sensorem z linii poleceń.
50
51 %package gui
52 Summary:        GUI tools for the Hughski Colorimeter
53 Summary(pl.UTF-8):      Graficzne narzędzia do kolorymetrów Hughski
54 Group:          X11/Applications
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       colord-gtk >= 0.1.24
57 Requires:       gtk+3 >= 3.0.0
58 Requires:       libcanberra-gtk3 >= 0.10
59
60 %description gui
61 The Hughski ColorHug colorimeter is a low cost open-source hardware
62 sensor used to calibrate screens.
63
64 This package includes the GUI client tools which allow the user to
65 access the sensor.
66
67 %description gui -l pl.UTF-8
68 Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym,
69 mający otwarte źródła, służący do kalibrowania ekranów.
70
71 Ten pakiet zawiera graficzne narzędzia klienckia pozwalające operować
72 sensorem.
73
74 %package libs
75 Summary:        Library for Hughski Colorimeter
76 Summary(pl.UTF-8):      Biblioteka do kolorymetrów Hughski
77 Group:          Libraries
78
79 %description libs
80 Library for Hughski Colorimeter.
81
82 %description libs -l pl.UTF-8
83 Biblioteka do kolorymetrów Hughski.
84
85 %package devel
86 Summary:        Header files for ColorHug library
87 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ColorHug
88 Group:          Development/Libraries
89 Requires:       %{name}-libs = %{version}-%{release}
90
91 %description devel
92 Header files for ColorHug library.
93
94 %description devel -l pl.UTF-8
95 Pliki nagłówkowe biblioteki ColorHug.
96
97 %package static
98 Summary:        Static ColorHug library
99 Summary(pl.UTF-8):      Statyczna biblioteka ColorHug
100 Group:          Development/Libraries
101 Requires:       %{name}-devel = %{version}-%{release}
102
103 %description static
104 Static ColorHug library.
105
106 %description static -l pl.UTF-8
107 Statyczna biblioteka ColorHug.
108
109 %package -n bash-completion-colorhug
110 Summary:        Bash completion support for ColorHug console commands
111 Summary(pl.UTF-8):      Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga
112 Group:          Applications/Shells
113 Requires:       bash-completion
114
115 %description -n bash-completion-colorhug
116 Bash completion support for ColorHug console commands.
117
118 %description -n bash-completion-colorhug -l pl.UTF-8
119 Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga.
120
121 %prep
122 %setup -q
123
124 %build
125 %configure \
126         --disable-silent-rules
127 %{__make}
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131
132 %{__make} install \
133         DESTDIR=$RPM_BUILD_ROOT
134
135 # remove empty de locale
136 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de
137 mv $RPM_BUILD_ROOT%{_localedir}/{cs_CZ,cs}
138 mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
139 mv $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
140 mv $RPM_BUILD_ROOT%{_localedir}/{es_ES,es}
141 mv $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
142 mv $RPM_BUILD_ROOT%{_localedir}/{it_IT,it}
143 mv $RPM_BUILD_ROOT%{_localedir}/{ja_JP,ja}
144 mv $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl}
145 mv $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
146 # empty version of pl which already exists
147 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL
148 # program not packaged (unfinished as of 0.1.13)
149 %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/colorhug-spectro-util.desktop
150
151 %find_lang %{name}
152
153 %clean
154 rm -rf $RPM_BUILD_ROOT
155
156 %files -f %{name}.lang
157 %defattr(644,root,root,755)
158 %doc AUTHORS NEWS README
159 %attr(755,root,root) %{_bindir}/colorhug
160 %attr(755,root,root) %{_bindir}/colorhug-cmd
161 %attr(755,root,root) %{_bindir}/colorhug-inhx32-to-bin
162 %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml
163 %{_mandir}/man1/colorhug-cmd.1*
164
165 %files gui
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_bindir}/colorhug-ccmx
168 %attr(755,root,root) %{_bindir}/colorhug-flash
169 %{_datadir}/colorhug-client
170 %{_datadir}/help/C/colorhug-client
171 %{_desktopdir}/colorhug-ccmx.desktop
172 %{_desktopdir}/colorhug-docs.desktop
173 %{_desktopdir}/colorhug-flash.desktop
174 %{_iconsdir}/hicolor/*/apps/colorhug*.png
175 %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png
176 %{_iconsdir}/hicolor/scalable/apps/colorhug.svg
177 %{_iconsdir}/hicolor/*/mimetypes/application-x-ccmx.png
178 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg
179 %{_mandir}/man1/colorhug-flash.1*
180 %{_mandir}/man1/colorhug-ccmx.1*
181
182 %files -n bash-completion-colorhug
183 %defattr(644,root,root,755)
184 /etc/bash_completion.d/colorhug-cmd-completion.bash
This page took 0.089335 seconds and 4 git commands to generate.