]> git.pld-linux.org Git - packages/colorhug-client.git/blob - colorhug-client.spec
- updated to 0.1.12
[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.1.12
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:  2ffffe18cbe2deead67e0613b24b7c9a
10 URL:            http://hughski.com/
11 BuildRequires:  colord-devel >= 0.1.20
12 BuildRequires:  colord-gtk-devel >= 0.1.20
13 BuildRequires:  gettext-devel >= 0.17
14 BuildRequires:  glib2-devel >= 1:2.28.0
15 BuildRequires:  gobject-introspection-devel >= 0.9.8
16 BuildRequires:  gtk+3-devel >= 3.0.0
17 BuildRequires:  intltool >= 0.35.0
18 BuildRequires:  lcms2-devel
19 BuildRequires:  libcanberra-gtk3-devel >= 0.10
20 BuildRequires:  libgusb-devel >= 0.1.2
21 BuildRequires:  libsoup-devel >= 2.4
22 BuildRequires:  pkgconfig
23 BuildRequires:  sqlite3-devel
24 BuildRequires:  tar >= 1:1.22
25 BuildRequires:  xz
26 Requires:       %{name}-libs = %{version}-%{release}
27 Requires:       colord-libs >= 0.1.20
28 Requires:       glib2 >= 1:2.28.0
29 Requires:       libgusb >= 0.1.2
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.20
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 libs
74 Summary:        Library for Hughski Colorimeter
75 Summary(pl.UTF-8):      Biblioteka do kolorymetrów Hughski
76 Group:          Libraries
77
78 %description libs
79 Library for Hughski Colorimeter.
80
81 %description libs -l pl.UTF-8
82 Biblioteka do kolorymetrów Hughski.
83
84 %package devel
85 Summary:        Header files for ColorHug library
86 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ColorHug
87 Group:          Development/Libraries
88 Requires:       %{name}-libs = %{version}-%{release}
89
90 %description devel
91 Header files for ColorHug library.
92
93 %description devel -l pl.UTF-8
94 Pliki nagłówkowe biblioteki ColorHug.
95
96 %package static
97 Summary:        Static ColorHug library
98 Summary(pl.UTF-8):      Statyczna biblioteka ColorHug
99 Group:          Development/Libraries
100 Requires:       %{name}-devel = %{version}-%{release}
101
102 %description static
103 Static ColorHug library.
104
105 %description static -l pl.UTF-8
106 Statyczna biblioteka ColorHug.
107
108 %package -n bash-completion-colorhug
109 Summary:        Bash completion support for ColorHug console commands
110 Summary(pl.UTF-8):      Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga
111 Group:          Applications/Shells
112 Requires:       bash-completion
113
114 %description -n bash-completion-colorhug
115 Bash completion support for ColorHug console commands.
116
117 %description -n bash-completion-colorhug -l pl.UTF-8
118 Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga.
119
120 %prep
121 %setup -q
122
123 %build
124 %configure \
125         --disable-silent-rules
126 %{__make}
127
128 %install
129 rm -rf $RPM_BUILD_ROOT
130
131 %{__make} install \
132         DESTDIR=$RPM_BUILD_ROOT
133
134 # remove empty de locale
135 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de
136 mv $RPM_BUILD_ROOT%{_localedir}/{cs_CZ,cs}
137 mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
138 mv $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
139 mv $RPM_BUILD_ROOT%{_localedir}/{es_ES,es}
140 mv $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
141 mv $RPM_BUILD_ROOT%{_localedir}/{it_IT,it}
142 mv $RPM_BUILD_ROOT%{_localedir}/{ja_JP,ja}
143 mv $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl}
144 mv $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
145 # empty version of pl which already exists
146 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL
147 # obsoleted by pkg-config
148 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcolorhug.la
149
150 %find_lang %{name}
151
152 %clean
153 rm -rf $RPM_BUILD_ROOT
154
155 %post   libs -p /sbin/ldconfig
156 %postun libs -p /sbin/ldconfig
157
158 %files -f %{name}.lang
159 %defattr(644,root,root,755)
160 %doc AUTHORS NEWS README
161 %attr(755,root,root) %{_bindir}/colorhug
162 %attr(755,root,root) %{_bindir}/colorhug-cmd
163 %attr(755,root,root) %{_bindir}/colorhug-inhx32-to-bin
164 %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml
165 %{_mandir}/man1/colorhug-cmd.1*
166
167 %files gui
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_bindir}/colorhug-ccmx
170 %attr(755,root,root) %{_bindir}/colorhug-flash
171 %{_datadir}/colorhug-client
172 %{_desktopdir}/colorhug-ccmx.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 libs
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libcolorhug.so.*.*.*
185 %attr(755,root,root) %ghost %{_libdir}/libcolorhug.so.1
186 %{_libdir}/girepository-1.0/ColorHug-1.0.typelib
187
188 %files devel
189 %defattr(644,root,root,755)
190 %attr(755,root,root) %{_libdir}/libcolorhug.so
191 %{_includedir}/libcolorhug
192 %{_datadir}/gir-1.0/ColorHug-1.0.gir
193 %{_pkgconfigdir}/colorhug.pc
194
195 %files static
196 %defattr(644,root,root,755)
197 %{_libdir}/libcolorhug.a
198
199 %files -n bash-completion-colorhug
200 %defattr(644,root,root,755)
201 /etc/bash_completion.d/colorhug-cmd-completion.bash
This page took 0.151604 seconds and 4 git commands to generate.