Пакет libindicate: Specfile

Name: libindicate
Version: 0.2.3
Release: alt0.M51.1

%define major 3
%define major_gtk 1
%define libname %name%major
%define gtklibname  %name%major_gtk-gtk
%define develname %name-devel
%define gtkdevelname %name-gtk-devel

Group: System/Libraries
Summary: Library for applications to raise flags on DBus
Url: https://launchpad.net/libindicate
License: LGPLv3 / LGPLv2.1

Source: http://launchpad.net/%name/0.2/%version/+download/%name-%version.tar.gz
Patch1: libindicate-0.2.3-alt-dont-build-examples.patch

BuildRequires: glibc-devel gtk-doc libdbus-glib-devel libgtk+2-devel libxml2-devel

%description
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%package -n %libname
Summary: Library for applications to raise flags on DBus
Group: System/Libraries
%description -n %libname
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%package -n %gtklibname
Summary: Library for applications to raise flags on DBus
Group: System/Libraries
%description -n %gtklibname
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%package -n %develname
Summary: Library headers for %name
Group: Development/C
Requires: %libname = %version
%description -n %develname
This is the libraries, include files and other resources you can use
to incorporate %name into applications.

%package -n %gtkdevelname
Summary: Library headers for %name
Group: Development/C
Requires: %gtklibname = %version
Requires: %develname = %version
%description -n %gtkdevelname
This is the libraries, include files and other resources you can use
to incorporate %name into applications.

%package doc
Summary: Documentation for %name
Group: Development/C
Requires: %libname = %version
%description doc
This package provides documentation files for %name


%prep
%setup -q
%patch1 -p0

%autoreconf


%build
%configure \
    --disable-static \
    --enable-shared
%make


%install
%make install DESTDIR=%buildroot


%files -n %libname
%_libdir/libindicate.so.%{major}*

%files -n %gtklibname
%_libdir/libindicate-gtk.so.%{major_gtk}*

%files -n %develname
%dir %_includedir/%name-0.2
%_includedir/%name-0.2/libindicate
%_libdir/libindicate.so
%_libdir/pkgconfig/indicate.pc

%files -n %gtkdevelname
%_includedir/%name-0.2/libindicate-gtk
%_libdir/libindicate-gtk.so
%_libdir/pkgconfig/indicate-gtk.pc

%files doc
%doc AUTHORS examples tests
%_datadir/gtk-doc/html/%name


%changelog
* Tue Mar 30 2010 Sergey V Turchin <zerg@altlinux.org> 0.2.3-alt0.M51.1
- built for M51

* Thu Jan 21 2010 Sergey V Turchin <zerg@altlinux.org> 0.2.3-alt1
- innitial specfile