File:  [Local Repository] / imach / distributions / gnulinux / imach.spec-cmake
Revision 1.1: download - view: text, annotated - select for diffs
Thu Sep 17 06:20:22 2015 UTC (8 years, 9 months ago) by brouard
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

    1: # -*- rpm-spec -*-
    2: Summary:        imach
    3: Name:           imach
    4: Version:        
    5: Release:        1
    6: License:        Unknown
    7: Group:          Unknown
    8: Source:         IMaCh-0.1.1-Source.tar.gz
    9: BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
   10: BuildRequires:	cmake
   11: 
   12: %define prefix /opt/imach-%{version}
   13: %define rpmprefix $RPM_BUILD_ROOT%{prefix}
   14: %define srcdirname %{name}-%{version}-Source
   15: 
   16: %description
   17: imach : No description for now
   18: 
   19: %prep
   20: %setup -q -n %{srcdirname}
   21: 
   22: %build
   23: cd ..
   24: rm -rf build_tree
   25: mkdir build_tree
   26: cd build_tree
   27: cmake -DCMAKE_INSTALL_PREFIX=%{rpmprefix} ../%{srcdirname}
   28: make
   29:   
   30: %install 
   31: cd ../build_tree
   32: make install
   33: 
   34: %clean
   35: rm -rf %{srcdirname}
   36: rm -rf build_tree
   37: 
   38: %files
   39: %defattr(-,root,root,-)
   40: %dir %{prefix}
   41: %{prefix}/*
   42: 
   43: %changelog
   44: * Wed Feb 28 2007 Erk <eric.noulard@gmail.com>
   45:   Generated by CMake UseRPMTools macros

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>