Ignore:
Timestamp:
May 7, 2018, 12:38:04 AM (7 years ago)
Author:
chronos
Message:
  • Fixed: Updated RPM spec file to use new StdAI path
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Install/rpm/c-evo.spec

    r84 r140  
    1515Turn-based empire building game inspired by Civilization.
    1616
     17%global debug_package %{nil}
     18
    1719%prep
    1820%setup -q -c $(RPM_NAME)-$(RPM_VERSION)
     
    2022
    2123%build
    22 (cd AI ; lazbuild --build-mode=Release AIProject.lpi)
    23 mv AI/libstdai.so AI/libstdai-%{_target_cpu}.so
    24 sed -i 's/libstdai-amd64.so/libstdai-%{_target_cpu}.so/g' AI/StdAI.ai.txt
     24(cd AI/StdAI ; lazbuild --build-mode=Release AIProject.lpi)
     25mv AI/StdAI/libstdai.so AI/StdAI/libstdai-%{_target_cpu}.so
     26sed -i 's/libstdai-amd64.so/libstdai-%{_target_cpu}.so/g' AI/StdAI/StdAI.ai.txt
    2527lazbuild --build-mode=Release Integrated.lpi
    2628
     
    3537install -d -m 755 $RPM_BUILD_ROOT/usr/share/pixmaps
    3638install -m 644 Graphics/c-evo_64x64.png $RPM_BUILD_ROOT/usr/share/pixmaps/c-evo.png
    37 install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/AI
    38 install -m 644 AI/libstdai-%{_target_cpu}.so $RPM_BUILD_ROOT/usr/share/c-evo/AI
    39 install -m 644 AI/StdAI.ai.txt $RPM_BUILD_ROOT/usr/share/c-evo/AI
    40 install -m 644 AI/StdAI.png $RPM_BUILD_ROOT/usr/share/c-evo/AI
    41 install -d -m 755 $RPM_BUILD_ROOT//usr/share/c-evo/Graphics
    42 install -D -m 644 Graphics/* $RPM_BUILD_ROOT//usr/share/c-evo/Graphics
    43 install -d -m 755 $RPM_BUILD_ROOT//usr/share/c-evo/Help
    44 install -D -m 644 Help/* $RPM_BUILD_ROOT//usr/share/c-evo/Help
    45 install -d -m 755 $RPM_BUILD_ROOT//usr/share/c-evo/Sounds
    46 install -D -m 644 Sounds/* $RPM_BUILD_ROOT//usr/share/c-evo/Sounds
    47 install -d -m 755 $RPM_BUILD_ROOT//usr/share/c-evo/Tribes
    48 install -D -m 644 Tribes/* $RPM_BUILD_ROOT//usr/share/c-evo/Tribes
    49 install -d -m 755 $RPM_BUILD_ROOT//usr/share/c-evo/Localization
    50 cp -R Localization $RPM_BUILD_ROOT//usr/share/c-evo
     39install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
     40install -m 644 AI/StdAI/libstdai-%{_target_cpu}.so $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
     41install -m 644 AI/StdAI/StdAI.ai.txt $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
     42install -m 644 AI/StdAI/StdAI.png $RPM_BUILD_ROOT/usr/share/c-evo/AI/StdAI
     43install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Graphics
     44install -D -m 644 Graphics/* $RPM_BUILD_ROOT/usr/share/c-evo/Graphics
     45install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Help
     46install -D -m 644 Help/* $RPM_BUILD_ROOT/usr/share/c-evo/Help
     47install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Sounds
     48install -D -m 644 Sounds/* $RPM_BUILD_ROOT/usr/share/c-evo/Sounds
     49install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Tribes
     50install -D -m 644 Tribes/* $RPM_BUILD_ROOT/usr/share/c-evo/Tribes
     51install -d -m 755 $RPM_BUILD_ROOT/usr/share/c-evo/Localization
     52cp -R Localization $RPM_BUILD_ROOT/usr/share/c-evo
    5153
    5254install -m 644 Language.txt $RPM_BUILD_ROOT/usr/share/c-evo/
    5355install -m 644 Language2.txt $RPM_BUILD_ROOT/usr/share/c-evo/
    54 install -m 644 Fonts.txt $RPM_BUILD_ROOT/usr/share/c-evo/       
     56install -m 644 Fonts.txt $RPM_BUILD_ROOT/usr/share/c-evo/
    5557
    5658%clean
     
    6264/usr/bin/c-evo
    6365/usr/share/applications/c-evo.desktop
    64 /usr/share/c-evo/AI/libstdai-x86_64.so
    6566/usr/share/c-evo/*
    6667/usr/share/pixmaps/c-evo.png
Note: See TracChangeset for help on using the changeset viewer.