]> git.pld-linux.org Git - packages/colorhug-client.git/blob - colorhug-client.spec
- remove empty de locale before changing de_DE to de; rel. 2
[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.10
5 Release:        2
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
9 # Source0-md5:  ec1914a8cd5754e17093c1973158e345
10 URL:            http://hughski.com/
11 BuildRequires:  colord-devel >= 0.1.20
12 BuildRequires:  gettext-devel >= 0.17
13 BuildRequires:  glib2-devel >= 1:2.28.0
14 BuildRequires:  gobject-introspection-devel >= 0.9.8
15 BuildRequires:  gtk+3-devel >= 3.0.0
16 BuildRequires:  intltool >= 0.35.0
17 BuildRequires:  lcms2-devel
18 BuildRequires:  libcanberra-gtk3-devel >= 0.10
19 BuildRequires:  libgusb-devel >= 0.1.2
20 BuildRequires:  libsoup-devel >= 2.4
21 BuildRequires:  pkgconfig
22 BuildRequires:  sqlite3-devel
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  xz
25 Requires:       %{name}-libs = %{version}-%{release}
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
49 Summary:        GUI tools for the Hughski Colorimeter
50 Summary(pl.UTF-8):      Graficzne narzędzia do kolorymetrów Hughski
51 Group:          X11/Applications
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       colord >= 0.1.20
54 Requires:       gtk+3 >= 3.0.0
55 Requires:       libcanberra-gtk3 >= 0.10
56
57 %description gui
58 The Hughski ColorHug colorimeter is a low cost open-source hardware
59 sensor used to calibrate screens.
60
61 This package includes the GUI client tools which allow the user to
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
68 Ten pakiet zawiera graficzne narzędzia klienckia pozwalające operować
69 sensorem.
70
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
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
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
132 # remove empty de locale
133 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de
134 mv $RPM_BUILD_ROOT%{_localedir}/{cs_CZ,cs}
135 mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
136 mv $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
137 mv $RPM_BUILD_ROOT%{_localedir}/{es_ES,es}
138 mv $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
139 mv $RPM_BUILD_ROOT%{_localedir}/{it_IT,it}
140 mv $RPM_BUILD_ROOT%{_localedir}/{ja_JP,ja}
141 mv $RPM_BUILD_ROOT%{_localedir}/{nl_NL,nl}
142 mv $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
143 # empty version of pl which already exists
144 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pl_PL
145 # obsoleted by pkg-config
146 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcolorhug.la
147
148 %find_lang %{name}
149
150 %clean
151 rm -rf $RPM_BUILD_ROOT
152
153 %post   libs -p /sbin/ldconfig
154 %postun libs -p /sbin/ldconfig
155
156 %files -f %{name}.lang
157 %defattr(644,root,root,755)
158 %doc AUTHORS NEWS README
159 %attr(755,root,root) %{_bindir}/colorhug
160 %attr(755,root,root) %{_bindir}/colorhug-cmd
161 %attr(755,root,root) %{_bindir}/colorhug-inhx32-to-bin
162 %{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml
163 %{_mandir}/man1/colorhug-cmd.1*
164
165 %files gui
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_bindir}/colorhug-ccmx
168 %attr(755,root,root) %{_bindir}/colorhug-flash
169 %{_datadir}/colorhug-client
170 %{_desktopdir}/colorhug-ccmx.desktop
171 %{_desktopdir}/colorhug-flash.desktop
172 %{_iconsdir}/hicolor/*/apps/colorhug*.png
173 %{_iconsdir}/hicolor/*/apps/colorimeter-colorhug-inactive.png
174 %{_iconsdir}/hicolor/scalable/apps/colorhug.svg
175 %{_iconsdir}/hicolor/*/mimetypes/application-x-ccmx.png
176 %{_iconsdir}/hicolor/scalable/mimetypes/application-x-ccmx.svg
177 %{_mandir}/man1/colorhug-flash.1*
178 %{_mandir}/man1/colorhug-ccmx.1*
179
180 %files libs
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/libcolorhug.so.*.*.*
183 %attr(755,root,root) %ghost %{_libdir}/libcolorhug.so.1
184 %{_libdir}/girepository-1.0/ColorHug-1.0.typelib
185
186 %files devel
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/libcolorhug.so
189 %{_includedir}/libcolorhug
190 %{_datadir}/gir-1.0/ColorHug-1.0.gir
191 %{_pkgconfigdir}/colorhug.pc
192
193 %files static
194 %defattr(644,root,root,755)
195 %{_libdir}/libcolorhug.a
196
197 %files -n bash-completion-colorhug
198 %defattr(644,root,root,755)
199 /etc/bash_completion.d/colorhug-cmd-completion.bash
This page took 0.074053 seconds and 4 git commands to generate.