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