]>
Commit | Line | Data |
---|---|---|
2ee09604 JB |
1 | Summary: Tools for the Hughski Colorimeter |
2 | Summary(pl.UTF-8): Narzędzia do kolorymetrów Hughski | |
3 | Name: colorhug-client | |
1deaac0b | 4 | Version: 0.1.7 |
292111b5 | 5 | Release: 1 |
2ee09604 JB |
6 | License: GPL v2 |
7 | Group: Applications/System | |
8 | Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz | |
1deaac0b | 9 | # Source0-md5: d93690beaa433ab34b3d36517085f2cd |
2ee09604 JB |
10 | URL: http://hughski.com/ |
11 | BuildRequires: colord-devel >= 0.1.15 | |
12 | BuildRequires: glib2-devel >= 1:2.28.0 | |
13 | BuildRequires: gettext-devel >= 0.17 | |
1deaac0b | 14 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
2ee09604 JB |
15 | BuildRequires: gtk+3-devel >= 3.0.0 |
16 | BuildRequires: intltool >= 0.35.0 | |
17 | BuildRequires: lcms2-devel | |
18 | BuildRequires: libgusb-devel >= 0.1.2 | |
b896b4a1 | 19 | BuildRequires: libsoup-devel >= 2.4 |
2ee09604 | 20 | BuildRequires: pkgconfig |
2dc5f527 | 21 | BuildRequires: sqlite3-devel |
2ee09604 JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
1deaac0b | 24 | Requires: %{name}-libs = %{version}-%{release} |
2ee09604 JB |
25 | Requires: glib2 >= 1:2.28.0 |
26 | Requires: libgusb >= 0.1.2 | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | # why programs are installed to libexecdir in the first place? | |
30 | %define _libexecdir %{_bindir} | |
31 | ||
32 | %description | |
33 | The Hughski ColorHug colorimeter is a low cost open-source hardware | |
34 | sensor used to calibrate screens. | |
35 | ||
36 | This package includes the client tools which allows the user to | |
37 | upgrade the firmware on the sensor or to access the sensor from | |
38 | command line scripts. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym, | |
42 | mający otwarte źródła, służący do kalibrowania ekranów. | |
43 | ||
44 | Ten pakiet zawiera narzędzia klienckie pozwalające uaktualniać | |
45 | firmware sensora oraz operować sensorem z linii poleceń. | |
46 | ||
47 | %package gui | |
b896b4a1 JB |
48 | Summary: GUI tools for the Hughski Colorimeter |
49 | Summary(pl.UTF-8): Graficzne narzędzia do kolorymetrów Hughski | |
2ee09604 JB |
50 | Group: X11/Applications |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Requires: colord >= 0.1.15 | |
53 | Requires: gtk+3 >= 3.0.0 | |
54 | ||
55 | %description gui | |
56 | The Hughski ColorHug colorimeter is a low cost open-source hardware | |
57 | sensor used to calibrate screens. | |
58 | ||
b896b4a1 | 59 | This package includes the GUI client tools which allow the user to |
2ee09604 JB |
60 | access the sensor. |
61 | ||
62 | %description gui -l pl.UTF-8 | |
63 | Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym, | |
64 | mający otwarte źródła, służący do kalibrowania ekranów. | |
65 | ||
b896b4a1 | 66 | Ten pakiet zawiera graficzne narzędzia klienckia pozwalające |
2ee09604 JB |
67 | operować sensorem. |
68 | ||
1deaac0b JB |
69 | %package libs |
70 | Summary: Library for Hughski Colorimeter | |
71 | Summary(pl.UTF-8): Biblioteka do kolorymetrów Hughski | |
72 | Group: Libraries | |
73 | ||
74 | %description libs | |
75 | Library for Hughski Colorimeter. | |
76 | ||
77 | %description libs -l pl.UTF-8 | |
78 | Biblioteka do kolorymetrów Hughski. | |
79 | ||
80 | %package devel | |
81 | Summary: Header files for ColorHug library | |
82 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ColorHug | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-libs = %{version}-%{release} | |
85 | ||
86 | %description devel | |
87 | Header files for ColorHug library. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe biblioteki ColorHug. | |
91 | ||
92 | %package static | |
93 | Summary: Static ColorHug library | |
94 | Summary(pl.UTF-8): Statyczna biblioteka ColorHug | |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-devel = %{version}-%{release} | |
97 | ||
98 | %description static | |
99 | Static ColorHug library. | |
100 | ||
101 | %description static -l pl.UTF-8 | |
102 | Statyczna biblioteka ColorHug. | |
103 | ||
35043863 JB |
104 | %package -n bash-completion-colorhug |
105 | Summary: Bash completion support for ColorHug console commands | |
106 | Summary(pl.UTF-8): Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga | |
107 | Group: Applications/Shells | |
108 | Requires: bash-completion | |
109 | ||
110 | %description -n bash-completion-colorhug | |
111 | Bash completion support for ColorHug console commands. | |
112 | ||
113 | %description -n bash-completion-colorhug -l pl.UTF-8 | |
114 | Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga. | |
115 | ||
2ee09604 JB |
116 | %prep |
117 | %setup -q | |
118 | ||
119 | %build | |
120 | %configure \ | |
121 | --disable-silent-rules | |
122 | %{__make} | |
123 | ||
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %{__make} install \ | |
128 | DESTDIR=$RPM_BUILD_ROOT | |
129 | ||
1deaac0b | 130 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{cs_CZ,cs} |
6dcbb40a | 131 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{de_DE,de} |
1deaac0b | 132 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{el_GR,el} |
6dcbb40a JB |
133 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{es_ES,es} |
134 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{fr_FR,fr} | |
135 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{it_IT,it} | |
1deaac0b | 136 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{ja_JP,ja} |
6dcbb40a | 137 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{nl_NL,nl} |
1358799c | 138 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{pt_PT,pt} |
6dcbb40a JB |
139 | # empty version of pl which already exists |
140 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/pl_PL | |
1deaac0b JB |
141 | # obsoleted by pkg-config |
142 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcolorhug.la | |
6dcbb40a | 143 | |
756c4883 | 144 | %find_lang %{name} |
292111b5 | 145 | |
2ee09604 JB |
146 | %clean |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
1deaac0b JB |
149 | %post libs -p /sbin/ldconfig |
150 | %postun libs -p /sbin/ldconfig | |
151 | ||
756c4883 | 152 | %files -f %{name}.lang |
2ee09604 JB |
153 | %defattr(644,root,root,755) |
154 | %doc AUTHORS NEWS README | |
155 | %attr(755,root,root) %{_bindir}/colorhug | |
b896b4a1 | 156 | %attr(755,root,root) %{_bindir}/colorhug-inhx32-to-bin |
1deaac0b | 157 | %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml |
2ee09604 JB |
158 | |
159 | %files gui | |
160 | %defattr(644,root,root,755) | |
b896b4a1 JB |
161 | %attr(755,root,root) %{_bindir}/colorhug-ccmx |
162 | %attr(755,root,root) %{_bindir}/colorhug-flash | |
2ee09604 JB |
163 | %attr(755,root,root) %{_bindir}/colorhug-gui |
164 | %{_datadir}/colorhug-client | |
b896b4a1 JB |
165 | %{_desktopdir}/colorhug-ccmx.desktop |
166 | %{_desktopdir}/colorhug-flash.desktop | |
2dc5f527 JB |
167 | %{_iconsdir}/hicolor/*/apps/colorhug*.png |
168 | %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png | |
b896b4a1 | 169 | %{_iconsdir}/hicolor/scalable/apps/colorhug.svg |
1358799c JB |
170 | %{_iconsdir}/hicolor/*/mimetypes/application-x-ccmx.png |
171 | %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg | |
b896b4a1 | 172 | %{_mandir}/man1/colorhug-flash.1* |
756c4883 | 173 | %{_mandir}/man1/colorhug-ccmx.1* |
35043863 | 174 | |
1deaac0b JB |
175 | %files libs |
176 | %defattr(644,root,root,755) | |
177 | %attr(755,root,root) %{_libdir}/libcolorhug.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libcolorhug.so.1 | |
179 | %{_libdir}/girepository-1.0/ColorHug-1.0.typelib | |
180 | ||
181 | %files devel | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_libdir}/libcolorhug.so | |
184 | %{_includedir}/libcolorhug | |
185 | %{_datadir}/gir-1.0/ColorHug-1.0.gir | |
186 | %{_pkgconfigdir}/colorhug.pc | |
187 | ||
188 | %files static | |
189 | %defattr(644,root,root,755) | |
190 | %{_libdir}/libcolorhug.a | |
191 | ||
35043863 JB |
192 | %files -n bash-completion-colorhug |
193 | %defattr(644,root,root,755) | |
194 | /etc/bash_completion.d/colorhug-completion.bash |