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