]>
Commit | Line | Data |
---|---|---|
fe90e304 JB |
1 | # |
2 | # Conditional build: | |
2752e9b1 JB |
3 | %bcond_without apidocs # API documentation |
4 | %bcond_without static_libs # static library | |
fe90e304 JB |
5 | # |
6 | Summary: Library for reading and writing Jcat files | |
7 | Summary(pl.UTF-8): Biblioteka do odczytu i zapisu plików Jcat | |
8 | Name: libjcat | |
7de03aeb | 9 | Version: 0.1.12 |
09f99e81 | 10 | Release: 1 |
fe90e304 JB |
11 | License: LGPL v2.1+ |
12 | Group: Libraries | |
13 | Source0: https://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz | |
7de03aeb | 14 | # Source0-md5: f08701b2a93a9848d78103efafcf00e8 |
fe90e304 JB |
15 | URL: https://github.com/hughsie/libjcat |
16 | BuildRequires: glib2-devel >= 1:2.45.8 | |
17 | BuildRequires: gnutls-devel >= 3.6.0 | |
85011f2e | 18 | BuildRequires: gobject-introspection-devel |
fe90e304 JB |
19 | BuildRequires: gpgme-devel |
20 | %{?with_apidocs:BuildRequires: gtk-doc} | |
21 | BuildRequires: json-glib-devel >= 1.1.1 | |
22 | BuildRequires: libgpg-error-devel | |
23 | BuildRequires: meson >= 0.52.0 | |
8ef394c7 | 24 | BuildRequires: nettle-devel |
fe90e304 JB |
25 | BuildRequires: ninja >= 1.5 |
26 | BuildRequires: pkgconfig | |
3e48d29f | 27 | BuildRequires: rpm-build >= 4.6 |
fe90e304 JB |
28 | BuildRequires: rpmbuild(macros) >= 1.736 |
29 | BuildRequires: tar >= 1:1.22 | |
85011f2e | 30 | BuildRequires: vala |
fe90e304 JB |
31 | BuildRequires: xz |
32 | Requires: glib2 >= 1:2.45.8 | |
33 | Requires: gnutls >= 3.6.0 | |
34 | Requires: json-glib >= 1.1.1 | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | This library allows reading and writing gzip-compressed JSON catalog | |
39 | files, which can be used to store GPG, PKCS-7 and SHA-256 checksums | |
40 | for each file. | |
41 | ||
42 | This provides equivalent functionality to the catalog files supported | |
43 | in Microsoft Windows. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Ta biblioteka pozwala na odczyt i zapis skompresowanych gzipem plików | |
47 | katalogów JSON, które mogą służyć do zapisu sum kontrolnych GPG, PKCS-7 | |
48 | i SHA-256 dla każdego pliku. | |
49 | ||
50 | Daje do funkcjonalność odpowiadającą plikom catalog, obsługiwanym w | |
51 | Microsoft Windows. | |
52 | ||
53 | %package devel | |
54 | Summary: Header files for Jcat library | |
55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Jcat | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | Requires: glib2-devel >= 1:2.45.8 | |
59 | Requires: gnutls-devel >= 3.6.0 | |
60 | Requires: gpgme-devel | |
61 | Requires: json-glib-devel >= 1.1.1 | |
62 | Requires: libgpg-error-devel | |
63 | ||
64 | %description devel | |
65 | Header files for Jcat library. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe biblioteki Jcat. | |
69 | ||
70 | %package static | |
71 | Summary: Static Jcat library | |
72 | Summary(pl.UTF-8): Statyczna biblioteka Jcat | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | Static Jcat library. | |
78 | ||
79 | %description static -l pl.UTF-8 | |
80 | Statyczna biblioteka Jcat. | |
81 | ||
82 | %package -n vala-libjcat | |
83 | Summary: Vala API for Jcat library | |
84 | Summary(pl.UTF-8): API języka Vala do biblioteki Jcat | |
85 | Group: Development/Libraries | |
86 | Requires: %{name}-devel = %{version}-%{release} | |
87 | Requires: vala | |
3e48d29f | 88 | BuildArch: noarch |
fe90e304 JB |
89 | |
90 | %description -n vala-libjcat | |
91 | Vala API for Jcat library. | |
92 | ||
93 | %description -n vala-libjcat -l pl.UTF-8 | |
94 | API języka Vala do biblioteki Jcat. | |
95 | ||
96 | %package apidocs | |
97 | Summary: API documentation for Jcat library | |
98 | Summary(pl.UTF-8): Dokumentacja API biblioteki Jcat | |
99 | Group: Documentation | |
fe90e304 | 100 | BuildArch: noarch |
fe90e304 JB |
101 | |
102 | %description apidocs | |
103 | API documentation for Jcat library. | |
104 | ||
105 | %description apidocs -l pl.UTF-8 | |
106 | Dokumentacja API biblioteki Jcat. | |
107 | ||
108 | %prep | |
109 | %setup -q | |
110 | ||
111 | %build | |
112 | %meson build \ | |
113 | %{!?with_static_libs:--default-library=shared} \ | |
114 | %{?with_apidocs:-Dgtkdoc=true} | |
115 | ||
116 | %ninja_build -C build | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %ninja_install -C build | |
122 | ||
2bc95579 | 123 | %{__rm} -r $RPM_BUILD_ROOT%{_libexecdir}/installed-tests \ |
fe90e304 JB |
124 | $RPM_BUILD_ROOT%{_datadir}/installed-tests |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post -p /sbin/ldconfig | |
130 | %postun -p /sbin/ldconfig | |
131 | ||
132 | %files | |
133 | %defattr(644,root,root,755) | |
134 | %doc MAINTAINERS NEWS README.md | |
135 | %attr(755,root,root) %{_bindir}/jcat-tool | |
136 | %attr(755,root,root) %{_libdir}/libjcat.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libjcat.so.1 | |
138 | %{_libdir}/girepository-1.0/Jcat-1.0.typelib | |
139 | %{_mandir}/man1/jcat-tool.1* | |
140 | ||
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_libdir}/libjcat.so | |
144 | %{_includedir}/libjcat-1 | |
145 | %{_datadir}/gir-1.0/Jcat-1.0.gir | |
146 | %{_pkgconfigdir}/jcat.pc | |
147 | ||
148 | %if %{with static_libs} | |
149 | %files static | |
150 | %defattr(644,root,root,755) | |
151 | %{_libdir}/libjcat.a | |
152 | %endif | |
153 | ||
154 | %files -n vala-libjcat | |
155 | %defattr(644,root,root,755) | |
156 | %{_datadir}/vala/vapi/jcat.deps | |
157 | %{_datadir}/vala/vapi/jcat.vapi | |
158 | ||
159 | %if %{with apidocs} | |
160 | %files apidocs | |
161 | %defattr(644,root,root,755) | |
162 | %{_gtkdocdir}/libjcat | |
163 | %endif |