]>
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 | |
7eaff57f | 4 | Version: 0.1.13 |
42f12d1d | 5 | Release: 2 |
2ee09604 JB |
6 | License: GPL v2 |
7 | Group: Applications/System | |
8 | Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz | |
7eaff57f | 9 | # Source0-md5: a7d0c67c3b9b6c8be2bd3649a5dd0818 |
2ee09604 | 10 | URL: http://hughski.com/ |
2950d14b | 11 | BuildRequires: colord-devel >= 0.1.20 |
1b6c4392 | 12 | BuildRequires: colord-gtk-devel >= 0.1.20 |
2ee09604 | 13 | BuildRequires: gettext-devel >= 0.17 |
9bb0d4ab | 14 | BuildRequires: glib2-devel >= 1:2.28.0 |
1deaac0b | 15 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
2ee09604 JB |
16 | BuildRequires: gtk+3-devel >= 3.0.0 |
17 | BuildRequires: intltool >= 0.35.0 | |
18 | BuildRequires: lcms2-devel | |
9a2e5001 | 19 | BuildRequires: libcanberra-gtk3-devel >= 0.10 |
42f12d1d | 20 | BuildRequires: libgusb-devel >= 0.1.4 |
b896b4a1 | 21 | BuildRequires: libsoup-devel >= 2.4 |
2ee09604 | 22 | BuildRequires: pkgconfig |
2dc5f527 | 23 | BuildRequires: sqlite3-devel |
2ee09604 JB |
24 | BuildRequires: tar >= 1:1.22 |
25 | BuildRequires: xz | |
1deaac0b | 26 | Requires: %{name}-libs = %{version}-%{release} |
1b6c4392 | 27 | Requires: colord-libs >= 0.1.20 |
2ee09604 | 28 | Requires: glib2 >= 1:2.28.0 |
42f12d1d | 29 | Requires: libgusb >= 0.1.4 |
2ee09604 JB |
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 | |
b896b4a1 JB |
51 | Summary: GUI tools for the Hughski Colorimeter |
52 | Summary(pl.UTF-8): Graficzne narzędzia do kolorymetrów Hughski | |
2ee09604 JB |
53 | Group: X11/Applications |
54 | Requires: %{name} = %{version}-%{release} | |
1b6c4392 | 55 | Requires: colord-gtk >= 0.1.20 |
2ee09604 | 56 | Requires: gtk+3 >= 3.0.0 |
9a2e5001 | 57 | Requires: libcanberra-gtk3 >= 0.10 |
2ee09604 JB |
58 | |
59 | %description gui | |
60 | The Hughski ColorHug colorimeter is a low cost open-source hardware | |
61 | sensor used to calibrate screens. | |
62 | ||
b896b4a1 | 63 | This package includes the GUI client tools which allow the user to |
2ee09604 JB |
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 | ||
9bb0d4ab ŁK |
70 | Ten pakiet zawiera graficzne narzędzia klienckia pozwalające operować |
71 | sensorem. | |
2ee09604 | 72 | |
1deaac0b JB |
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 | ||
35043863 JB |
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 | ||
2ee09604 JB |
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 | ||
9bb0d4ab ŁK |
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} | |
6dcbb40a | 145 | # empty version of pl which already exists |
9bb0d4ab | 146 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL |
1deaac0b JB |
147 | # obsoleted by pkg-config |
148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcolorhug.la | |
7eaff57f JB |
149 | # program not packaged (unfinished as of 0.1.13) |
150 | %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/colorhug-spectro-util.desktop | |
6dcbb40a | 151 | |
756c4883 | 152 | %find_lang %{name} |
292111b5 | 153 | |
2ee09604 JB |
154 | %clean |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
1deaac0b JB |
157 | %post libs -p /sbin/ldconfig |
158 | %postun libs -p /sbin/ldconfig | |
159 | ||
756c4883 | 160 | %files -f %{name}.lang |
2ee09604 JB |
161 | %defattr(644,root,root,755) |
162 | %doc AUTHORS NEWS README | |
163 | %attr(755,root,root) %{_bindir}/colorhug | |
2950d14b | 164 | %attr(755,root,root) %{_bindir}/colorhug-cmd |
b896b4a1 | 165 | %attr(755,root,root) %{_bindir}/colorhug-inhx32-to-bin |
1deaac0b | 166 | %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml |
2950d14b | 167 | %{_mandir}/man1/colorhug-cmd.1* |
2ee09604 JB |
168 | |
169 | %files gui | |
170 | %defattr(644,root,root,755) | |
b896b4a1 JB |
171 | %attr(755,root,root) %{_bindir}/colorhug-ccmx |
172 | %attr(755,root,root) %{_bindir}/colorhug-flash | |
2ee09604 | 173 | %{_datadir}/colorhug-client |
b896b4a1 JB |
174 | %{_desktopdir}/colorhug-ccmx.desktop |
175 | %{_desktopdir}/colorhug-flash.desktop | |
2dc5f527 JB |
176 | %{_iconsdir}/hicolor/*/apps/colorhug*.png |
177 | %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png | |
b896b4a1 | 178 | %{_iconsdir}/hicolor/scalable/apps/colorhug.svg |
1358799c JB |
179 | %{_iconsdir}/hicolor/*/mimetypes/application-x-ccmx.png |
180 | %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg | |
b896b4a1 | 181 | %{_mandir}/man1/colorhug-flash.1* |
756c4883 | 182 | %{_mandir}/man1/colorhug-ccmx.1* |
35043863 | 183 | |
1deaac0b JB |
184 | %files libs |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/libcolorhug.so.*.*.* | |
187 | %attr(755,root,root) %ghost %{_libdir}/libcolorhug.so.1 | |
188 | %{_libdir}/girepository-1.0/ColorHug-1.0.typelib | |
189 | ||
190 | %files devel | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_libdir}/libcolorhug.so | |
193 | %{_includedir}/libcolorhug | |
194 | %{_datadir}/gir-1.0/ColorHug-1.0.gir | |
195 | %{_pkgconfigdir}/colorhug.pc | |
196 | ||
197 | %files static | |
198 | %defattr(644,root,root,755) | |
199 | %{_libdir}/libcolorhug.a | |
200 | ||
35043863 JB |
201 | %files -n bash-completion-colorhug |
202 | %defattr(644,root,root,755) | |
2950d14b | 203 | /etc/bash_completion.d/colorhug-cmd-completion.bash |