libgrantlee/libgrantlee.spec

95 lines
2.9 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: libgrantlee
Version: 5.0.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_Templates.so.*
%{_libdir}/libGrantlee_TextDocument.so.*
%dir %{_libdir}/grantlee
%{_libdir}/grantlee/%{majver}
%{_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/Grantlee5
%{_libdir}/cmake/Grantlee5/Grantlee5Config.cmake
%{_libdir}/cmake/Grantlee5/Grantlee5ConfigVersion.cmake
%{_libdir}/cmake/Grantlee5/GrantleeMacros.cmake
%{_libdir}/cmake/Grantlee5/GrantleeTargets-noconfig.cmake
%{_libdir}/cmake/Grantlee5/GrantleeTargets.cmake
%{_libdir}/libGrantlee_Templates.so
%{_libdir}/libGrantlee_TextDocument.so
#%doc README
%changelog
* Sat Oct 11 2014 Automatic Build System <autodist@mambasoft.it> 5.0.0-1mamba
- automatic update by autodist
* 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