]>
Commit | Line | Data |
---|---|---|
5e8496eb KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # don't build static library | |
5 | # | |
ceb2ab5c | 6 | Summary: Desktop notifications library |
04e362d4 | 7 | Summary(hu.UTF-8): Desktop értesítő könyvtár |
6e31cc11 | 8 | Summary(pl.UTF-8): Biblioteka powiadomień dla pulpitu |
ceb2ab5c | 9 | Name: libnotify |
533f2bf8 | 10 | Version: 0.7.5 |
47fba3a2 | 11 | Release: 1 |
40d55def | 12 | License: LGPL v2.1+ (library), GPL v2+ (tools) |
3e688f5d | 13 | Group: Libraries |
533f2bf8 ŁK |
14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 8e9f8bd26517bc197ab1df748df289a9 | |
85732817 | 16 | URL: http://developer.gnome.org/notification-spec/ |
a6ba55d6 | 17 | BuildRequires: autoconf >= 2.63 |
47fba3a2 | 18 | BuildRequires: automake >= 1:1.10 |
41fd19eb | 19 | BuildRequires: docbook-dtd412-xml |
3bb62875 | 20 | BuildRequires: gdk-pixbuf2-devel |
47fba3a2 ŁK |
21 | BuildRequires: glib2-devel >= 1:2.26.0 |
22 | BuildRequires: gobject-introspection-devel >= 0.9.12 | |
23 | BuildRequires: gtk+3-devel >= 3.0.0 | |
24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.14} | |
81374740 | 25 | BuildRequires: gtk-doc-automake >= 1.14 |
a6ba55d6 | 26 | BuildRequires: libtool >= 2:2.2 |
8693f743 | 27 | BuildRequires: pkgconfig |
533f2bf8 ŁK |
28 | BuildRequires: tar >= 1:1.22 |
29 | BuildRequires: xz | |
a6ba55d6 | 30 | Requires: glib2 >= 1:2.26.0 |
41fd19eb | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ceb2ab5c PZ |
32 | |
33 | %description | |
610f45c1 JB |
34 | A library that sends desktop notifications to a notification daemon, |
35 | as defined in the Desktop Notifications spec. These notifications can | |
36 | be used to inform the user about an event or display some form of | |
ceb2ab5c PZ |
37 | information without getting in the user's way. |
38 | ||
04e362d4 ZU |
39 | %description -l hu.UTF-8 |
40 | Könyvtár, amely értesítéseket küld egy üzenetkezelő démonnak, ahogy a | |
41 | Desktop Notifications szabványnak megfelel. Ezek az értesítések | |
42 | tájékoztathatják a felhasználót eseményről vagy információt jeleníthet | |
43 | meg. | |
44 | ||
0670ddd8 JR |
45 | %description -l pl.UTF-8 |
46 | Biblioteka wysyłająca powiadomienia dla pulpitu do demona powiadomień | |
47 | zgodnie ze specyfikacją Desktop Notifications. Powiadomienia te mogą | |
48 | być używane do informowania użytkownika o zdarzeniu lub wyświetlania | |
49 | jakiejś formy informacji bez wchodzenia użytkownikowi w drogę. | |
610f45c1 | 50 | |
ceb2ab5c PZ |
51 | %package devel |
52 | Summary: libnotify header files | |
04e362d4 | 53 | Summary(hu.UTF-8): libnotify fejléc fájlok |
6e31cc11 | 54 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnotify |
40d55def | 55 | License: LGPL v2.1+ |
ceb2ab5c | 56 | Group: Development/Libraries |
610f45c1 | 57 | Requires: %{name} = %{version}-%{release} |
47fba3a2 ŁK |
58 | Requires: gdk-pixbuf2-devel |
59 | Requires: glib2-devel >= 1:2.26.0 | |
ceb2ab5c PZ |
60 | |
61 | %description devel | |
62 | Header files for libnotify-based programs development. | |
63 | ||
04e362d4 ZU |
64 | %description devel -l hu.UTF-8 |
65 | Fejléc fájlok libnotify-t használó programok fejlesztéséhez. | |
66 | ||
0670ddd8 JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki nagłówkowe do tworzenia programów opartych o libnotify. | |
610f45c1 JB |
69 | |
70 | %package static | |
71 | Summary: Static libnotify library | |
04e362d4 | 72 | Summary(hu.UTF-8): Libnotify statikus könyvtár |
6e31cc11 | 73 | Summary(pl.UTF-8): Statyczna biblioteka libnotify |
40d55def | 74 | License: LGPL v2.1+ |
610f45c1 JB |
75 | Group: Development/Libraries |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static libnotify library. | |
80 | ||
04e362d4 ZU |
81 | %description static -l hu.UTF-8 |
82 | Libnotify statikus könyvtár. | |
83 | ||
0670ddd8 | 84 | %description static -l pl.UTF-8 |
610f45c1 JB |
85 | Statyczna biblioteka libnotify. |
86 | ||
81374740 JB |
87 | %package apidocs |
88 | Summary: libnotify API documentation | |
89 | Summary(hu.UTF-8): libnotify API dokumentáció | |
90 | Summary(pl.UTF-8): Dokumentacja API biblioteki libnotify | |
91 | Group: Documentation | |
92 | Requires: gtk-doc-common | |
93 | ||
94 | %description apidocs | |
95 | libnotify API documentation. | |
96 | ||
97 | %description apidocs -l hu.UTF-8 | |
98 | libnotify API dokumentáció. | |
99 | ||
100 | %description apidocs -l pl.UTF-8 | |
101 | Dokumentacja API biblioteki libnotify. | |
102 | ||
ceb2ab5c PZ |
103 | %prep |
104 | %setup -q | |
105 | ||
106 | %build | |
ba734cc7 | 107 | %{__gtkdocize} |
40d55def JB |
108 | %{__libtoolize} |
109 | %{__aclocal} | |
110 | %{__autoconf} | |
111 | %{__autoheader} | |
112 | %{__automake} | |
3e688f5d | 113 | %configure \ |
47fba3a2 | 114 | --disable-silent-rules \ |
5e8496eb KK |
115 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
116 | --with-html-dir=%{_gtkdocdir} \ | |
117 | %{!?with_static_libs:--disable-static} | |
118 | ||
ceb2ab5c PZ |
119 | %{__make} |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
610f45c1 | 123 | |
ceb2ab5c PZ |
124 | %{__make} install \ |
125 | DESTDIR=$RPM_BUILD_ROOT | |
126 | ||
47fba3a2 ŁK |
127 | %{!?with_apidocs:%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/libnotify} |
128 | ||
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
5e8496eb | 130 | |
ceb2ab5c PZ |
131 | %clean |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post -p /sbin/ldconfig | |
135 | %postun -p /sbin/ldconfig | |
136 | ||
137 | %files | |
138 | %defattr(644,root,root,755) | |
40d55def | 139 | %doc AUTHORS ChangeLog NEWS |
47fba3a2 ŁK |
140 | %attr(755,root,root) %{_bindir}/notify-send |
141 | %attr(755,root,root) %{_libdir}/libnotify.so.*.*.* | |
142 | %attr(755,root,root) %ghost %{_libdir}/libnotify.so.4 | |
143 | %{_libdir}/girepository-1.0/Notify-0.7.typelib | |
ceb2ab5c PZ |
144 | |
145 | %files devel | |
146 | %defattr(644,root,root,755) | |
47fba3a2 ŁK |
147 | %attr(755,root,root) %{_libdir}/libnotify.so |
148 | %{_pkgconfigdir}/libnotify.pc | |
149 | %{_includedir}/libnotify | |
150 | %{_datadir}/gir-1.0/Notify-0.7.gir | |
610f45c1 | 151 | |
5e8496eb | 152 | %if %{with static_libs} |
610f45c1 JB |
153 | %files static |
154 | %defattr(644,root,root,755) | |
47fba3a2 | 155 | %{_libdir}/libnotify.a |
5e8496eb | 156 | %endif |
81374740 JB |
157 | |
158 | %if %{with apidocs} | |
159 | %files apidocs | |
160 | %defattr(644,root,root,755) | |
161 | %{_gtkdocdir}/%{name} | |
162 | %endif |