]>
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 | |
4cc99f19 | 4 | Version: 0.2.8 |
230c483d | 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 | |
4cc99f19 | 9 | # Source0-md5: 7c73d5088e14556f09181115346448ac |
f7350664 | 10 | Patch0: %{name}-bashcomp.patch |
2ee09604 | 11 | URL: http://hughski.com/ |
f862254a | 12 | BuildRequires: colord-devel >= 1.2.9 |
ae45f7fa JB |
13 | BuildRequires: colord-gtk-devel >= 0.1.24 |
14 | BuildRequires: docbook-utils | |
8665ad22 | 15 | BuildRequires: gettext-tools >= 0.17 |
ae45f7fa | 16 | BuildRequires: glib2-devel >= 1:2.31.10 |
1deaac0b | 17 | BuildRequires: gobject-introspection-devel >= 0.9.8 |
230c483d | 18 | BuildRequires: gtk+3-devel >= 3.11.2 |
ec1e36e1 | 19 | BuildRequires: intltool >= 0.50.0 |
2ee09604 | 20 | BuildRequires: lcms2-devel |
9a2e5001 | 21 | BuildRequires: libcanberra-gtk3-devel >= 0.10 |
7e628f5d | 22 | BuildRequires: libgusb-devel >= 0.2.2 |
b896b4a1 | 23 | BuildRequires: libsoup-devel >= 2.4 |
2ee09604 | 24 | BuildRequires: pkgconfig |
2dc5f527 | 25 | BuildRequires: sqlite3-devel |
2ee09604 JB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
2d33f61e | 28 | BuildRequires: yelp-tools |
f862254a | 29 | Requires: colord-libs >= 1.2.9 |
ae45f7fa | 30 | Requires: glib2 >= 1:2.31.10 |
7e628f5d | 31 | Requires: libgusb >= 0.2.2 |
2ee09604 JB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | # why programs are installed to libexecdir in the first place? | |
35 | %define _libexecdir %{_bindir} | |
36 | ||
37 | %description | |
38 | The Hughski ColorHug colorimeter is a low cost open-source hardware | |
39 | sensor used to calibrate screens. | |
40 | ||
41 | This package includes the client tools which allows the user to | |
42 | upgrade the firmware on the sensor or to access the sensor from | |
43 | command line scripts. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym, | |
47 | mający otwarte źródła, służący do kalibrowania ekranów. | |
48 | ||
49 | Ten pakiet zawiera narzędzia klienckie pozwalające uaktualniać | |
50 | firmware sensora oraz operować sensorem z linii poleceń. | |
51 | ||
52 | %package gui | |
b896b4a1 JB |
53 | Summary: GUI tools for the Hughski Colorimeter |
54 | Summary(pl.UTF-8): Graficzne narzędzia do kolorymetrów Hughski | |
2ee09604 JB |
55 | Group: X11/Applications |
56 | Requires: %{name} = %{version}-%{release} | |
ae45f7fa | 57 | Requires: colord-gtk >= 0.1.24 |
230c483d | 58 | Requires: gtk+3 >= 3.11.2 |
9a2e5001 | 59 | Requires: libcanberra-gtk3 >= 0.10 |
2ee09604 JB |
60 | |
61 | %description gui | |
62 | The Hughski ColorHug colorimeter is a low cost open-source hardware | |
63 | sensor used to calibrate screens. | |
64 | ||
b896b4a1 | 65 | This package includes the GUI client tools which allow the user to |
2ee09604 JB |
66 | access the sensor. |
67 | ||
68 | %description gui -l pl.UTF-8 | |
69 | Hughski ColorHug to niskobudżetowy kolorymetr z sensorem sprzętowym, | |
70 | mający otwarte źródła, służący do kalibrowania ekranów. | |
71 | ||
9bb0d4ab ŁK |
72 | Ten pakiet zawiera graficzne narzędzia klienckia pozwalające operować |
73 | sensorem. | |
2ee09604 | 74 | |
35043863 JB |
75 | %package -n bash-completion-colorhug |
76 | Summary: Bash completion support for ColorHug console commands | |
77 | Summary(pl.UTF-8): Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga | |
78 | Group: Applications/Shells | |
f7350664 | 79 | Requires: bash-completion >= 2.0 |
f91dc378 | 80 | BuildArch: noarch |
35043863 JB |
81 | |
82 | %description -n bash-completion-colorhug | |
83 | Bash completion support for ColorHug console commands. | |
84 | ||
85 | %description -n bash-completion-colorhug -l pl.UTF-8 | |
86 | Bashowe uzupełnianie składni dla poleceń terminalowych ColorHuga. | |
87 | ||
2ee09604 JB |
88 | %prep |
89 | %setup -q | |
f7350664 | 90 | %patch0 -p1 |
2ee09604 JB |
91 | |
92 | %build | |
e7147cf9 JR |
93 | %{__aclocal} -I m4 |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__automake} | |
2ee09604 | 97 | %configure \ |
f7350664 | 98 | --enable-bash-completion=%{bash_compdir} \ |
2ee09604 JB |
99 | --disable-silent-rules |
100 | %{__make} | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
9bb0d4ab | 108 | mv $RPM_BUILD_ROOT%{_localedir}/{cs_CZ,cs} |
962f5275 JB |
109 | # replace de with more complete version from de_DE |
110 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de | |
9bb0d4ab ŁK |
111 | mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de} |
112 | mv $RPM_BUILD_ROOT%{_localedir}/{el_GR,el} | |
113 | mv $RPM_BUILD_ROOT%{_localedir}/{es_ES,es} | |
114 | mv $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr} | |
115 | mv $RPM_BUILD_ROOT%{_localedir}/{it_IT,it} | |
116 | mv $RPM_BUILD_ROOT%{_localedir}/{ja_JP,ja} | |
117 | mv $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl} | |
6dcbb40a | 118 | # empty version of pl which already exists |
9bb0d4ab | 119 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL |
230c483d JB |
120 | # just a copy of pt (only header differs) |
121 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pt_PT | |
6dcbb40a | 122 | |
756c4883 | 123 | %find_lang %{name} |
292111b5 | 124 | |
2ee09604 JB |
125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
756c4883 | 128 | %files -f %{name}.lang |
2ee09604 JB |
129 | %defattr(644,root,root,755) |
130 | %doc AUTHORS NEWS README | |
131 | %attr(755,root,root) %{_bindir}/colorhug | |
2950d14b | 132 | %attr(755,root,root) %{_bindir}/colorhug-cmd |
1deaac0b | 133 | %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml |
2950d14b | 134 | %{_mandir}/man1/colorhug-cmd.1* |
2ee09604 JB |
135 | |
136 | %files gui | |
137 | %defattr(644,root,root,755) | |
f862254a | 138 | %attr(755,root,root) %{_bindir}/colorhug-backlight |
b896b4a1 JB |
139 | %attr(755,root,root) %{_bindir}/colorhug-ccmx |
140 | %attr(755,root,root) %{_bindir}/colorhug-flash | |
7e628f5d | 141 | %attr(755,root,root) %{_bindir}/colorhug-refresh |
2ee09604 | 142 | %{_datadir}/colorhug-client |
f862254a | 143 | %{_datadir}/appdata/com.hughski.ColorHug.Backlight.appdata.xml |
7e628f5d | 144 | %{_datadir}/appdata/com.hughski.ColorHug.CcmxLoader.appdata.xml |
f7350664 | 145 | %{_datadir}/appdata/com.hughski.ColorHug.DisplayAnalysis.appdata.xml |
7e628f5d | 146 | %{_datadir}/appdata/com.hughski.ColorHug.FlashLoader.appdata.xml |
4782c800 | 147 | %{_datadir}/help/C/colorhug-client |
4782c800 | 148 | %{_desktopdir}/colorhug-docs.desktop |
f862254a | 149 | %{_desktopdir}/com.hughski.ColorHug.Backlight.desktop |
7e628f5d JB |
150 | %{_desktopdir}/com.hughski.ColorHug.CcmxLoader.desktop |
151 | %{_desktopdir}/com.hughski.ColorHug.DisplayAnalysis.desktop | |
152 | %{_desktopdir}/com.hughski.ColorHug.FlashLoader.desktop | |
2dc5f527 JB |
153 | %{_iconsdir}/hicolor/*/apps/colorhug*.png |
154 | %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png | |
b896b4a1 | 155 | %{_iconsdir}/hicolor/scalable/apps/colorhug.svg |
294378d3 | 156 | %{_iconsdir}/hicolor/*x*/mimetypes/application-x-ccmx.png* |
1358799c | 157 | %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg |
f862254a | 158 | %{_mandir}/man1/colorhug-backlight.1* |
756c4883 | 159 | %{_mandir}/man1/colorhug-ccmx.1* |
f7350664 JB |
160 | %{_mandir}/man1/colorhug-flash.1* |
161 | %{_mandir}/man1/colorhug-refresh.1* | |
35043863 JB |
162 | |
163 | %files -n bash-completion-colorhug | |
164 | %defattr(644,root,root,755) | |
f7350664 | 165 | %{bash_compdir}/colorhug-cmd |