libxfce4ui/libxfce4ui.spec
Guido Berhoerster 2aad1d7bfc - improved descriptions
- corrected categories
- removed unsupported locales
- show compiler output

OBS-URL: https://build.opensuse.org/package/show/X11:xfce/libxfce4ui?expand=0&rev=16
2010-12-24 12:50:30 +00:00

141 lines
4.3 KiB
RPMSpec

#
# spec file for package libxfce4ui (Version 4.7.5)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libxfce4ui
Version: 4.7.5
Release: 1
License: LGPLv2.1+
Summary: Widgets library for the Xfce desktop environment
Url: http://www.xfce.org/
Group: System/Libraries
Source0: %{name}-%{version}.tar.bz2
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: pkgconfig(gladeui-1.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
%package -n glade3-catalog-libxfce4ui
License: LGPLv2.1+
Summary: Widgets library for the Xfce desktop environment -- Catalog for Glade
Group: Development/Tools/GUI Builders
Requires: %{name} = %{version}
Requires: glade3
Supplements: packageand(glade3:%{name}-devel)
%description -n glade3-catalog-libxfce4ui
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
This package provides a catalog for Glade, to allow the use the Xfce widgets in
Glade.
%package devel
License: LGPLv2.1+
Summary: Development files for the libxfce4ui library
Group: Development/Libraries/C and C++
Requires: libxfce4ui = %{version}
Requires: pkgconfig(gladeui-1.0)
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(gtk+-2.0)
Requires: pkgconfig(libstartup-notification-1.0)
Requires: pkgconfig(libxfce4util-1.0)
Requires: pkgconfig(libxfconf-0)
%description devel
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
This package provides development files for developing applications based on
the libxfce4ui library.
%package doc
License: LGPLv2.1+
Summary: Documentation for the libxfce4ui library
Group: Documentation/HTML
Requires: libxfce4ui = %{version}
%description doc
The libxfce4ui library provides a number of widgets commonly used by Xfce
applications.
This package provides the documentation for the libxfce4ui library.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
--enable-startup-notification \
--enable-gtk-doc \
--disable-static
make %{?_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/libglade/2.0/*.la
rm -f %{buildroot}%{_libdir}/glade3/modules/*.la
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%exclude %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
%{_libdir}/lib*.so.*
%files -n glade3-catalog-libxfce4ui
%defattr(-, root, root)
%{_libdir}/glade3/modules/libxfce4uiglade.so
%{_datadir}/glade3/catalogs/libxfce4ui.xml*
%{_datadir}/glade3/pixmaps/hicolor/*/actions/*.png
%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/xfce4/libxfce4ui-1
%{_includedir}/xfce4/libxfce4ui-1/libxfce4ui/
%dir %{_includedir}/xfce4/libxfce4kbd-private-2
%{_includedir}/xfce4/libxfce4kbd-private-2/libxfce4kbd-private/
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libxfce4ui/
%changelog