%define majver %(echo %version | cut -d. -f1-2) Name: libfrontend-elements Version: 1.1.4 Release: 1mamba Summary: A collection of elementary building blocks for implementing compiler frontends in c++ Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://kolpackov.net/projects/libfrontend-elements/ Source: ftp://kolpackov.net/pub/projects/libfrontend-elements/%{majver}/libfrontend-elements-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libcult-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: build BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libfrontend-elements is a collection of elementary building blocks for implementing compiler frontends in c++. %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q %build %make << _EOF _EOF %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -D -m0755 frontend-elements/libfrontend-elements.so %{buildroot}%{_libdir}/libfrontend-elements.so install -d -m0755 %{buildroot}%{_includedir} cp -a frontend-elements %{buildroot}%{_includedir}/ find %{buildroot}%{_includedir} -name *.o -exec rm -f {} \; find %{buildroot}%{_includedir} -name *.o.d -exec rm -f {} \; find %{buildroot}%{_includedir} -name *.so -exec rm -f {} \; %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libfrontend-elements.so %doc LICENSE %files devel %defattr(-,root,root) %dir %{_includedir}/frontend-elements %{_includedir}/frontend-elements/* %doc NEWS README %changelog * Fri Aug 10 2012 Silvan Calarco 1.1.4-1mamba - package created by autospec