]>
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 |
6e31cc11 | 7 | Summary(pl.UTF-8): Biblioteka powiadomień dla pulpitu |
ceb2ab5c | 8 | Name: libnotify |
9401a358 | 9 | Version: 0.4.5 |
61c09467 | 10 | Release: 3 |
40d55def | 11 | License: LGPL v2.1+ (library), GPL v2+ (tools) |
3e688f5d | 12 | Group: Libraries |
68ee31d6 | 13 | Source0: http://www.galago-project.org/files/releases/source/libnotify/%{name}-%{version}.tar.bz2 |
9401a358 | 14 | # Source0-md5: 6a8388f93309dbe336bbe5fc0677de6b |
ceb2ab5c | 15 | URL: http://www.galago-project.org/ |
40d55def JB |
16 | BuildRequires: autoconf >= 2.50 |
17 | BuildRequires: automake | |
b2753f23 | 18 | BuildRequires: dbus-glib-devel >= 0.71 |
41fd19eb | 19 | BuildRequires: docbook-dtd412-xml |
b2753f23 | 20 | BuildRequires: glib2-devel >= 1:2.12.1 |
21 | BuildRequires: gtk+2-devel >= 2:2.10.1 | |
5e8496eb KK |
22 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
23 | BuildRequires: gtk-doc-automake | |
40d55def | 24 | BuildRequires: libtool |
8693f743 | 25 | BuildRequires: pkgconfig |
b2753f23 | 26 | Requires: dbus-glib >= 0.71 |
41fd19eb | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ceb2ab5c PZ |
28 | |
29 | %description | |
610f45c1 JB |
30 | A library that sends desktop notifications to a notification daemon, |
31 | as defined in the Desktop Notifications spec. These notifications can | |
32 | be used to inform the user about an event or display some form of | |
ceb2ab5c PZ |
33 | information without getting in the user's way. |
34 | ||
0670ddd8 JR |
35 | %description -l pl.UTF-8 |
36 | Biblioteka wysyłająca powiadomienia dla pulpitu do demona powiadomień | |
37 | zgodnie ze specyfikacją Desktop Notifications. Powiadomienia te mogą | |
38 | być używane do informowania użytkownika o zdarzeniu lub wyświetlania | |
39 | jakiejś formy informacji bez wchodzenia użytkownikowi w drogę. | |
610f45c1 | 40 | |
505109e1 MB |
41 | %package apidocs |
42 | Summary: libnotify API documentation | |
6e31cc11 | 43 | Summary(pl.UTF-8): Dokumentacja API biblioteki libnotify |
505109e1 MB |
44 | Group: Documentation |
45 | Requires: gtk-doc-common | |
46 | ||
47 | %description apidocs | |
48 | libnotify API documentation. | |
49 | ||
0670ddd8 | 50 | %description apidocs -l pl.UTF-8 |
505109e1 MB |
51 | Dokumentacja API biblioteki libnotify. |
52 | ||
ceb2ab5c PZ |
53 | %package devel |
54 | Summary: libnotify header files | |
6e31cc11 | 55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnotify |
40d55def | 56 | License: LGPL v2.1+ |
ceb2ab5c | 57 | Group: Development/Libraries |
610f45c1 | 58 | Requires: %{name} = %{version}-%{release} |
b2753f23 | 59 | Requires: dbus-glib-devel >= 0.71 |
60 | Requires: glib2-devel >= 1:2.12.1 | |
61 | Requires: gtk+2-devel >= 2:2.10.1 | |
ceb2ab5c PZ |
62 | |
63 | %description devel | |
64 | Header files for libnotify-based programs development. | |
65 | ||
0670ddd8 JR |
66 | %description devel -l pl.UTF-8 |
67 | Pliki nagłówkowe do tworzenia programów opartych o libnotify. | |
610f45c1 JB |
68 | |
69 | %package static | |
70 | Summary: Static libnotify library | |
6e31cc11 | 71 | Summary(pl.UTF-8): Statyczna biblioteka libnotify |
40d55def | 72 | License: LGPL v2.1+ |
610f45c1 JB |
73 | Group: Development/Libraries |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | ||
76 | %description static | |
77 | Static libnotify library. | |
78 | ||
0670ddd8 | 79 | %description static -l pl.UTF-8 |
610f45c1 JB |
80 | Statyczna biblioteka libnotify. |
81 | ||
ceb2ab5c PZ |
82 | %prep |
83 | %setup -q | |
84 | ||
85 | %build | |
40d55def JB |
86 | %{__libtoolize} |
87 | %{__aclocal} | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
3e688f5d | 91 | %configure \ |
5e8496eb KK |
92 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
93 | --with-html-dir=%{_gtkdocdir} \ | |
94 | %{!?with_static_libs:--disable-static} | |
95 | ||
ceb2ab5c PZ |
96 | %{__make} |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
610f45c1 | 100 | |
ceb2ab5c PZ |
101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
5e8496eb KK |
104 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/libnotify} |
105 | ||
ceb2ab5c PZ |
106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
40d55def | 114 | %doc AUTHORS ChangeLog NEWS |
311eab1c | 115 | %attr(755,root,root) %{_bindir}/* |
ceb2ab5c | 116 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
9401a358 | 117 | %attr(755,root,root) %ghost %{_libdir}/lib*.so.1 |
ceb2ab5c | 118 | |
5e8496eb | 119 | %if %{with apidocs} |
505109e1 MB |
120 | %files apidocs |
121 | %defattr(644,root,root,755) | |
122 | %{_gtkdocdir}/%{name} | |
5e8496eb | 123 | %endif |
505109e1 | 124 | |
ceb2ab5c PZ |
125 | %files devel |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/lib*.so | |
ceb2ab5c | 128 | %{_libdir}/lib*.la |
610f45c1 | 129 | %{_pkgconfigdir}/* |
ceb2ab5c | 130 | %{_includedir}/* |
610f45c1 | 131 | |
5e8496eb | 132 | %if %{with static_libs} |
610f45c1 JB |
133 | %files static |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/lib*.a | |
5e8496eb | 136 | %endif |