Name: libaosd BuildRequires: freetype2-devel gtk2-devel glib2-devel Version: 0.2.7 Release: 1 License: MIT Summary: An Advanced On-Screen Display Library Group: Development/Languages/C and C++ Url: http://www.atheme.org/project/libaosd Source: %{name}-%{version}.tar.bz2 Source1: libaosd-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf >= 2.54, automake, libtool %description Libaosd is an advanced on screen display library. It supports many modern features like anti-aliased text and composited rendering via XComposite, as well as support for rendering Cairo and Pango layouts. %package devel Summary: An Advanced On-Screen Display Library Group: Development/Languages/C and C++ Requires: libaosd2 = %{version}, libaosd-text2 = %{version} Requires: pango-devel cairo-devel xorg-x11-devel %description devel Libaosd is an advanced on screen display library. It supports many modern features like anti-aliased text and composited rendering via XComposite, as well as support for rendering Cairo and Pango layouts. This package contains the development headers. %package -n aosd_cat Summary: Display on-screen notifications from scripts Group: Development/Libraries/Other Requires: libaosd-license %description -n aosd_cat Aosd_cat is an advanced on-screen display tool based on libaosd. It can be used for OSD-style notifications in shell scripts. %package -n libaosd2 Summary: An Advanced On-Screen Display Library Group: System/Libraries Requires: libaosd-license Recommends: libaosd-text2 %description -n libaosd2 Libaosd is an advanced on screen display library. It supports many modern features like anti-aliased text and composited rendering via XComposite, as well as support for rendering Cairo and Pango layouts. This package contains the main library. %package -n libaosd-text2 Summary: An Advanced On-Screen Display Library Requires: libaosd-license Group: System/Libraries %description -n libaosd-text2 libaosd is an advanced on screen display library. It supports many modern features like anti-aliased text and composited rendering via XComposite, as well as support for rendering Cairo and Pango layouts. This package contains the text layout library. %package license Summary: License of libaosd Group: System/Libraries %if 0%{?suse_version} >= 1130 BuildArch: noarch %endif %description -n libaosd-license This package contains the license libaosd is distributed under. %prep %setup -q mv aclocal.m4 acinclude.m4 %build autoreconf -fi %configure make %{?_smp_mflags} %install %makeinstall mkdir -p %{buildroot}%{_datadir}/doc/packages/%{name} install -m 644 LICENSE %{buildroot}%{_datadir}/doc/packages/%{name} %post -n libaosd2 -p /sbin/ldconfig %post -n libaosd-text2 -p /sbin/ldconfig %postun -n libaosd2 -p /sbin/ldconfig %postun -n libaosd-text2 -p /sbin/ldconfig %files license %defattr(-, root, root, 0755) %dir %{_datadir}/doc/packages/%{name} %doc %{_datadir}/doc/packages/%{name}/LICENSE %files devel %defattr(-, root, root, 0755) %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/* %files -n aosd_cat %defattr(-, root, root, 0755) %{_bindir}/aosd_cat %{_mandir}/man1/aosd_cat.1.* %files -n libaosd2 %defattr(-, root, root, 0755) %{_libdir}/libaosd.so.* %files -n libaosd-text2 %defattr(-, root, root, 0755) %{_libdir}/libaosd-text.so.* %changelog