libxfce4ui/libxfce4ui.spec

109 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libxfce4ui (Version 4.7.1)
#
# 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/
#
# norootforbuild
Name: libxfce4ui
BuildRequires: glib2-devel gtk2-devel libgladeui-1_0-devel libxfce4util-devel libxfconf-devel startup-notification-devel
BuildRequires: gtk-doc intltool
Summary: Widgets library for the Xfce desktop environment
Version: 4.7.1
Release: 6
License: LGPLv2.1+
Url: http://www.xfce.org/
Source0: %{name}-%{version}.tar.bz2
Group: System/GUI/XFCE
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Widgets and other frequently used functions for the Xfce desktop environment.
%package devel
License: LGPLv2.1+
Requires: libxfce4ui = %{version}
Requires: glib2-devel gtk2-devel libxfce4util-devel libxfconf-devel libgladeui-1_0-devel startup-notification-devel
Summary: Development files for the libxfce4ui library
Group: Development/Libraries/C and C++
%description devel
Development files for the libxfce4ui library.
%package doc
License: LGPLv2.1+
Requires: libxfce4ui = %{version}
Summary: Documentation for the libxfce4ui library
Group: Documentation
%description doc
Documentation for the libxfce4ui library.
%prep
%setup -q
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure \
--enable-startup-notification \
--enable-gtk-doc \
--disable-static
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.la $RPM_BUILD_ROOT%{_libdir}/glade3/modules/*.la
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%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.*
%{_libdir}/glade3/modules/libxfce4uiglade.so
%{_datadir}/glade3/catalogs/*
%{_datadir}/glade3/pixmaps/hicolor/*/actions/*.png
%dir %{_datadir}/locale/tl_PH
%dir %{_datadir}/locale/tl_PH/LC_MESSAGES
%files devel
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/xfce4/libxfce4ui-1
%dir %{_includedir}/xfce4/libxfce4ui-1/libxfce4ui
%{_includedir}/xfce4/libxfce4ui-1/libxfce4ui/*
%dir %{_includedir}/xfce4/libxfce4kbd-private-2
%dir %{_includedir}/xfce4/libxfce4kbd-private-2/libxfce4kbd-private
%{_includedir}/xfce4/libxfce4kbd-private-2/libxfce4kbd-private/*
%files doc
%defattr(-, root, root)
%dir %{_datadir}/gtk-doc/html/libxfce4ui
%{_datadir}/gtk-doc/html/libxfce4ui/*
%changelog