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