libgarcon/libgarcon.spec

100 lines
2.7 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: libgarcon
Version: 0.2.1
Release: 1mamba
Summary: A menu tree management library used by XFCE
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://wiki.xfce.org/releng/4.8/roadmap/garcon?s[]=garcon
Source: http://archive.xfce.org/src/libs/garcon/%{majver}/garcon-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libffi-devel
BuildRequires: libglib-devel
BuildRequires: libselinux-devel
BuildRequires: libxfce4util-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A menu tree management library used by XFCE.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
A menu tree management library used by XFCE.
This package contains static libraries and header files need for development.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%prep
%setup -q -n garcon-%{version}
%build
%configure --enable-gtk-doc
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang garcon
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f garcon.lang
%defattr(-,root,root)
%{_sysconfdir}/xdg/menus/xfce-applications.menu
%{_libdir}/libgarcon-1.so.*
%{_datadir}/desktop-directories/xfce-*.directory
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/garcon-1/*
%{_libdir}/libgarcon-1.la
%{_libdir}/libgarcon-1.so
%{_libdir}/pkgconfig/garcon-1.pc
%doc NEWS README TODO ChangeLog
%files apidocs
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/garcon
%changelog
* Tue May 07 2013 Automatic Build System <autodist@mambasoft.it> 0.2.1-1mamba
- automatic version update by autodist
* Thu Oct 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.0-1mamba
- update to 0.2.0
* Wed Apr 25 2012 Automatic Build System <autodist@mambasoft.it> 0.1.12-1mamba
- automatic version update by autodist
* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 0.1.8-1mamba
- automatic update by autodist
* Sun May 01 2011 Automatic Build System <autodist@mambasoft.it> 0.1.7-1mamba
- automatic update by autodist
* Sat Feb 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.5-1mamba
- package created by autospec