]>
Commit | Line | Data |
---|---|---|
4d1a4743 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
1cefa8e7 | 4 | %bcond_without static_libs # static library |
4d1a4743 | 5 | |
41c38532 | 6 | Summary: Interface components for OpenPGP |
1cefa8e7 | 7 | Summary(pl.UTF-8): Elementy interfejsu dla OpenPGP |
41c38532 | 8 | Name: libcryptui |
60625c3a | 9 | Version: 3.10.1 |
b4ee8ee0 | 10 | Release: 1 |
41c38532 ER |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
00781604 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libcryptui/3.10/%{name}-%{version}.tar.xz |
60625c3a | 14 | # Source0-md5: 409924734b60006fc96b34e4c3ee5ead |
41c38532 | 15 | URL: http://projects.gnome.org/seahorse/ |
1cefa8e7 | 16 | BuildRequires: dbus-glib-devel >= 0.35 |
adec6234 | 17 | BuildRequires: gettext-devel |
1cefa8e7 JB |
18 | BuildRequires: glib2-devel >= 1:2.32.0 |
19 | BuildRequires: gobject-introspection-devel >= 0.6.4 | |
20 | BuildRequires: gpgme-devel >= 1.0.0 | |
21 | BuildRequires: gtk+3-devel >= 3.0.0 | |
22 | BuildRequires: gtk-doc >= 1.9 | |
23 | BuildRequires: intltool >= 0.35.0 | |
24 | BuildRequires: libgnome-keyring-devel >= 2.25.5 | |
25 | BuildRequires: libnotify-devel >= 0.3 | |
41c38532 | 26 | BuildRequires: libtool |
adec6234 | 27 | BuildRequires: pkgconfig |
1cefa8e7 | 28 | BuildRequires: xorg-lib-libICE-devel |
41c38532 | 29 | BuildRequires: xorg-lib-libSM-devel |
41c38532 | 30 | Requires(post,postun): /sbin/ldconfig |
1cefa8e7 JB |
31 | Requires: dbus-glib >= 0.35 |
32 | Requires: glib2 >= 1:2.32.0 | |
33 | Requires: gpgme >= 1.0.0 | |
34 | Requires: gtk+3 >= 3.0.0 | |
35 | Requires: libgnome-keyring >= 2.25.5 | |
36 | Requires: libnotify >= 0.3 | |
41c38532 ER |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | libcryptui is a library used for prompting for PGP keys. | |
41 | ||
4d1a4743 | 42 | %description -l pl.UTF-8 |
1cefa8e7 | 43 | libcryptui to biblioteka używana przy zapytaniach o klucze PGP. |
4d1a4743 | 44 | |
41c38532 ER |
45 | %package devel |
46 | Summary: Header files required to develop with libcryptui | |
4d1a4743 ER |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcryptui |
48 | Group: X11/Development/Libraries | |
adec6234 | 49 | Requires: %{name} = %{version}-%{release} |
1cefa8e7 JB |
50 | Requires: dbus-glib >= 0.35 |
51 | Requires: glib2-devel >= 1:2.32.0 | |
4d1a4743 | 52 | Requires: gtk+3-devel >= 2.91.7 |
41c38532 ER |
53 | |
54 | %description devel | |
1cefa8e7 JB |
55 | The libcryptui-devel package contains the header files for the |
56 | libcryptui library. | |
41c38532 | 57 | |
4d1a4743 ER |
58 | %description devel -l pl.UTF-8 |
59 | Ten pakiet zawiera pliki nagłówkowe biblioteki libcryptui. | |
60 | ||
1cefa8e7 JB |
61 | %package static |
62 | Summary: Static libcryptui library | |
63 | Summary(pl.UTF-8): Statyczna biblioteka libcryptui | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static libcryptui library. | |
69 | ||
70 | %description static -l pl.UTF-8 | |
71 | Statyczna biblioteka libcryptui. | |
72 | ||
4d1a4743 ER |
73 | %package apidocs |
74 | Summary: libcryptui library API documentation | |
75 | Summary(pl.UTF-8): Dokumentacja API biblioteki libcryptui | |
76 | Group: Documentation | |
77 | Requires: gtk-doc-common | |
78 | ||
79 | %description apidocs | |
80 | libcryptui library API documentation. | |
81 | ||
82 | %description apidocs -l pl.UTF-8 | |
83 | Dokumentacja API biblioteki libcryptui. | |
84 | ||
41c38532 ER |
85 | %prep |
86 | %setup -q | |
87 | ||
88 | %build | |
89 | %configure \ | |
90 | --disable-silent-rules \ | |
1cefa8e7 | 91 | %{!?with_static_libs:--disable-static} \ |
41c38532 ER |
92 | --with-html-dir=%{_gtkdocdir} |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcryptui.la | |
101 | ||
1cefa8e7 | 102 | %find_lang cryptui |
41c38532 ER |
103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post | |
108 | /sbin/ldconfig | |
109 | %glib_compile_schemas | |
110 | ||
111 | %postun | |
112 | /sbin/ldconfig | |
113 | %glib_compile_schemas | |
114 | ||
115 | %files -f cryptui.lang | |
116 | %defattr(644,root,root,755) | |
1cefa8e7 | 117 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
41c38532 | 118 | %attr(755,root,root) %{_bindir}/seahorse-daemon |
41c38532 | 119 | %attr(755,root,root) %{_libdir}/libcryptui.so.*.*.* |
1cefa8e7 | 120 | %attr(755,root,root) %ghost %{_libdir}/libcryptui.so.0 |
41c38532 | 121 | %{_libdir}/girepository-1.0/CryptUI-0.0.typelib |
1cefa8e7 | 122 | %{_datadir}/cryptui |
41c38532 | 123 | %{_datadir}/GConf/gsettings/org.gnome.seahorse.recipients.convert |
1cefa8e7 | 124 | %{_datadir}/dbus-1/services/org.gnome.seahorse.service |
41c38532 | 125 | %{_datadir}/glib-2.0/schemas/org.gnome.seahorse.recipients.gschema.xml |
1cefa8e7 JB |
126 | %{_pixmapsdir}/cryptui |
127 | %{_mandir}/man1/seahorse-daemon.1* | |
41c38532 ER |
128 | |
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
1cefa8e7 JB |
131 | %attr(755,root,root) %{_libdir}/libcryptui.so |
132 | %{_includedir}/%{name} | |
41c38532 | 133 | %{_datadir}/gir-1.0/CryptUI-0.0.gir |
1cefa8e7 JB |
134 | %{_pkgconfigdir}/cryptui-0.0.pc |
135 | ||
136 | %if %{with static_libs} | |
137 | %files static | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/libcryptui.a | |
140 | %endif | |
41c38532 | 141 | |
4d1a4743 ER |
142 | %if %{with apidocs} |
143 | %files apidocs | |
144 | %defattr(644,root,root,755) | |
41c38532 | 145 | %{_gtkdocdir}/%{name} |
4d1a4743 | 146 | %endif |