libgrantlee/libgrantlee.spec

84 lines
2.5 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: libgrantlee
Version: 0.4.0
Release: 1mamba
Summary: A set of Free Software libraries written using the Qt framework
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gitorious.org/grantlee/pages/Home
Source: http://downloads.grantlee.org/grantlee-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Grantlee is a set of Free Software libraries written using the Qt framework.
Currently two libraries are shipped with Grantlee: Grantlee Templates and Grantlee TextDocument.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Grantlee is a set of Free Software libraries written using the Qt framework.
Currently two libraries are shipped with Grantlee: Grantlee Templates and Grantlee TextDocument.
This package contains static libraries and header files need for development.
%prep
%setup -q -n grantlee-%{version}
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libgrantlee_*.so.*
%{_libdir}/grantlee/%{majver}/grantlee_*.so
%doc AUTHORS COPYING.LIB
%files devel
%defattr(-,root,root)
%{_includedir}/grantlee_*.h
%dir %{_includedir}/grantlee
%{_includedir}/grantlee/*.h
%dir %{_libdir}/cmake/grantlee
%{_libdir}/cmake/grantlee/*
%{_libdir}/libgrantlee_*.so
#%doc README
%changelog
* Fri Nov 29 2013 Automatic Build System <autodist@mambasoft.it> 0.4.0-1mamba
- automatic version update by autodist
* Fri Nov 16 2012 Automatic Build System <autodist@mambasoft.it> 0.3.0-1mamba
- automatic version update by autodist
* Mon Aug 06 2012 Automatic Build System <autodist@mambasoft.it> 0.2.0-1mamba
- automatic version update by autodist
* Sun Jul 24 2011 Automatic Build System <autodist@mambasoft.it> 0.1.9-1mamba
- automatic version update by autodist
* Thu Jan 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.8-1mamba
- package created by autospec