123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- # $Id$
- %if %{_arch} != %{_build_arch}
- %define cross_compile 1
- %else
- %define cross_compile 0
- %endif
- %ifarch %{ix86}
- %define cross_compile 0
- %endif
- #undefine _enable_debug_packages
- # Version
- %define major _unique_source_major_
- %define minor _unique_source_minor_
- Name: repoforge
- Summary: Helper tools for distributive creation.
- Version: %{major}.%{minor}
- Release: vniins3
- License: %{_license}
- Vendor: %{_vendor}
- Group: %{_group_tools}
- BuildRoot: /var/tmp/%{name}-root
- Requires: make
- Source0: _unique_source_name_
- %description
- Helper tools for building distributive.
- It allows to use subversion (or another control version systems) to store SRPM packages and
- makes easier the development and patching.
- %prep
- %setup -q
- %build
- %if %{cross_compile}==1
- export LDFLAGS=" $LDFLAGS -L$TARGET_ROOTFS/lib "
- %endif
- make VERSION=%{version}
- %install
- rm -rf ${RPM_BUILD_ROOT}
- make install \
- INSTALL_FAKE_ROOT=${RPM_BUILD_ROOT} \
- TARGET_DATA_DIR=%{_datadir} \
- TARGET_BIN_DIR=%{_bindir} \
- VERSION=%{version}
- %post
- #/sbin/ldconfig
- %preun
- %postun
- #/sbin/ldconfig
- %clean
- rm -rf ${RPM_BUILD_ROOT}
- %files
- %defattr(-,root,root)
- %dir %{_datadir}/%{name}
- %{_datadir}/%{name}/*
- %dir %{_bindir}
- %attr(0755,root,root) %{_bindir}/rf
- %dir %{_datadir}/pkgconfig
- %attr(0644,root,root) %config(noreplace) %{_datadir}/pkgconfig/*
- #%config(noreplace) %{_mcfgdir}/mswitch.conf
- %changelog
- * Tue Jul 01 2008 Serj Kalichev (serj.kalichev@gmail.com) vniins3
- - New directory structure;
- - Targets pepair, copy etc.
- * Tue Jun 05 2008 Serj Kalichev (serj.kalichev@gmail.com) vniins2
- - New concept using rf utility.
- * Mon May 19 2008 Serj Kalichev (serj.kalichev@gmail.com) vniins1
- - First version.
|