]>
Commit | Line | Data |
---|---|---|
f2d0f350 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries | |
4 | # | |
5 | Summary: Frontend/Backend Communication Libraries for the Common Print Dialog Backends | |
6 | Summary(pl.UTF-8): Biblioteki komunikacji frontendu/backendu dla CPDB (wspólnych okien dialogowych drukowania) | |
7 | Name: cpdb-libs | |
8 | Version: 1.2.0 | |
9 | Release: 1 | |
10 | License: MIT | |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/OpenPrinting/cpdb-libs/releases | |
13 | Source0: https://github.com/OpenPrinting/cpdb-libs/archive/v%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 2df7396b3c6ce05a0c001324d82396de | |
15 | Patch0: %{name}-link.patch | |
16 | URL: https://github.com/OpenPrinting/cpdb-libs | |
17 | BuildRequires: autoconf >= 2.69 | |
18 | BuildRequires: automake | |
19 | BuildRequires: cups-devel | |
20 | BuildRequires: glib2-devel >= 2.0 | |
21 | BuildRequires: libtool >= 2:2 | |
22 | BuildRequires: pkgconfig | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This package contains the frontend and backend libraries for the | |
27 | Common Printing Dialog Backends (CPDB) project. These libraries allow | |
28 | the CPDB frontends (the print dialogs) and backends (the modules | |
29 | communicating with the different printing systems) too communicate | |
30 | with each other via D-Bus. | |
31 | ||
32 | The frontend library also provides some extra functionality to deal | |
33 | with Printers, Settings, etc. in a high level manner. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Ten pakiet zawiera biblioteki frontendu i backendu projektu CPDB | |
37 | (Common Printing Dialog Backends - wspólnych backendów okien | |
38 | dialogowych drukowania). Biblioteki te pozwalają na komunikację | |
39 | pomiędzy frontendami CPDB (oknami dialogowymi drukowania) a backendami | |
40 | (modułami komunikującymi się z różnymi systemami drukowania) poprzez | |
41 | szynę D-Bus. | |
42 | ||
43 | Biblioteka frontendu zapewnia też trochę dodatkowej funkcjonalności | |
44 | do wysokopoziomowej obsługi drukarek, ustawień itp. | |
45 | ||
46 | %package devel | |
47 | Summary: Header files for CPDB libraries | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek CPDB | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | Requires: glib2-devel >= 2.0 | |
52 | ||
53 | %description devel | |
54 | Header files for CPDB libraries. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe bibliotek CPDB. | |
58 | ||
59 | %package static | |
60 | Summary: Static CPDB libraries | |
61 | Summary(pl.UTF-8): Statyczne biblioteki CPDB | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | Static CPDB libraries. | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Statyczne biblioteki CPDB. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | %patch0 -p1 | |
74 | ||
75 | %build | |
76 | %{__libtoolize} | |
77 | %{__aclocal} | |
78 | %{__autoconf} | |
79 | %{__automake} | |
80 | %configure \ | |
81 | %{!?with_static_libs:--disable-static} | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
52146154 | 86 | install -d $RPM_BUILD_ROOT{%{_libdir}/print-backends,%{_datadir}/print-backends} |
f2d0f350 JB |
87 | |
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | # obsoleted by pkg-config | |
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcpdb-*.la | |
93 | ||
94 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
95 | cp -pr demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc LICENSE.md README.md | |
106 | %attr(755,root,root) %{_libdir}/libcpdb-libs-common.so.*.*.* | |
107 | %attr(755,root,root) %ghost %{_libdir}/libcpdb-libs-common.so.1 | |
108 | %attr(755,root,root) %{_libdir}/libcpdb-libs-frontend.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libcpdb-libs-frontend.so.1 | |
52146154 JB |
110 | %dir %{_libdir}/print-backends |
111 | %dir %{_datadir}/print-backends | |
f2d0f350 JB |
112 | |
113 | %files devel | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) %{_libdir}/libcpdb-libs-common.so | |
116 | %attr(755,root,root) %{_libdir}/libcpdb-libs-frontend.so | |
117 | %{_includedir}/cpd-interface-headers | |
118 | %{_includedir}/cpdb-libs-backend.h | |
119 | %{_includedir}/cpdb-libs-frontend.h | |
120 | %{_pkgconfigdir}/cpdb-libs-backend.pc | |
121 | %{_pkgconfigdir}/cpdb-libs-common.pc | |
122 | %{_pkgconfigdir}/cpdb-libs-frontend.pc | |
123 | %{_examplesdir}/%{name}-%{version} | |
124 | ||
125 | %if %{with static_libs} | |
126 | %files static | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libcpdb-libs-common.a | |
129 | %{_libdir}/libcpdb-libs-frontend.a | |
130 | %endif |