From: "Хихин Руслан" <hihin@yandex.ru> To: devel@lists.altlinux.org Subject: Re: [devel] Опять ufoai Date: Fri, 19 Oct 2007 10:29:23 +0400 Message-ID: <200710191029.29812@ruslandh> (raw) In-Reply-To: <200710191011.27924.ashen@nsrz.ru> [-- Attachment #1.1: Type: text/plain, Size: 724 bytes --] Здравствуйте Алексей Шенцев В сообщении от Пятница 19 октября 2007 Алексей Шенцев написал(a): > Руслан, кинь сюда спек или мне в личку, а то по предыдущему спеку у > меня куча > > вопросов и замечаний. В том спеке ты умудрился повторить мои ошибки > ... :) Если честно, я пока не занимался этим, так что это естественно, я больше смотрел внутренности (код) пакета. PS Выяснилось, что для сборки основной программы, вроде, нужны готовые maps. Во всяком случае у меня сложилось такое впечатление :) В голове сложилось - этим пакетам нужен один общий source и два spec`а, поэтому и мысли бродят как всё это закинуть в один git. PPS Вечером могу в личку или на ftp бросить nosource.rpm -- С уважением Хихин Руслан [-- Attachment #1.2: ufoai-data.spec --] [-- Type: text/plain, Size: 3430 bytes --] %define svnversion svn20071014 %define _localedir %_datadir/locale %define origname ufoai #define maps 1 Name: %origname-data Version: 2.3 Release: alt1.%svnversion License: GPL Packager: Alexey Shentzev <ashen@altlinux.org> Url: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/ Source0: %origname-%svnversion.tar.bz2 Summary: This is the Data Pack to strategy game UFO2 :Alien Invasion Source1: 0maps.pk3 Source2: ufoai-data-Makefile.tar.bz2 Group: Games/Strategy ExclusiveArch: %ix86 x86_64 BuildArch: noarch Patch2: ufoai-svn20070726-rootdir.patch Patch4: ufoai-svn20070730-nice.patch %ifdef maps BuildPreReq: libarts-devel libjpeg-devel libmesa-devel BuildPreReq: libcurl-devel libSDL-devel libSDL_ttf-devel libSDL_mixer-devel BuildRequires: libjpeg-devel libmesa-devel libncurses-devel libpng-devel libvorbis-devel %endifs # Automatically added by buildreq on Sun Oct 14 2007 BuildRequires: latex2html zip %description This is the Data Pack to UFO:AI %description -l ru_RU.UTF-8 п■п╟п╫п╫я▀п╣ п╢п╩я▐ п╦пЁя─я▀ UFO:AI %package -n %origname-music Summary: This is the Music Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy BuildArch: noarch ExclusiveArch: %ix86 %package -n %origname-maps Summary: This is the Maps Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy BuildArch: noarch ExclusiveArch: %ix86 %ifdef maps BuildPreReq: %origname-tools %endif %description -n %origname-maps This is the Map-Pack to UFO:AI. It is mandatory to play. %description -n %origname-maps -l ru_RU.UTF-8 Maps-я└п╟п╧п╩я▀ п╢п╩я▐ UFO:AI. %description -n %origname-music This is the Music Pack to UFO:AI %description -n %origname-music -l ru_RU.UTF-8 п°я┐п╥я▀п╨п╟ п╢п╩я▐ п╦пЁя─я▀ UFO:AI %prep %setup -a2 -n %origname %patch2 -p1 %patch4 -p1 %build # Create Makefile #configure --build=%_arch-alt-linux --host=%_arch-alt-linux # replace ufoai-data-Makefile.tar.bz2 %ifdef maps %make_build maps %endif pushd src/docs/tex %make_build pushd pushd base ./archives.sh popd %install #make_build install ROOTDIR=%buildroot DATADIR=%_gamesdatadir/%origname BINDIR=%_gamesbindir/ install -d -m 755 %buildroot%_gamesdatadir/%origname/base install -d -m 755 %buildroot%_gamesbindir install -d -m 755 %buildroot%_bindir install -d -m 755 %buildroot%_localedir install -D -m 0644 base/*.{pk3,txt} %buildroot%_gamesdatadir/%origname/base %ifndef maps install -D -m 0644 %SOURCE1 %buildroot%_gamesdatadir/%origname/base %endif %files %doc README CONTRIBUTORS src/docs/tex/ufo-manual_EN.pdf %dir %_gamesdatadir/%origname %_gamesdatadir/%origname/base/0base.pk3 %_gamesdatadir/%origname/base/0models.pk3 %_gamesdatadir/%origname/base/0pics.pk3 %_gamesdatadir/%origname/base/0ufos.pk3 %_gamesdatadir/%origname/base/0media.pk3 %_gamesdatadir/%origname/base/*.txt %files -n %origname-maps %_gamesdatadir/%origname/base/0maps.pk3 %files -n %origname-music %_gamesdatadir/%origname/base/0music.pk3 %_gamesdatadir/%origname/base/0snd.pk3 %changelog * Sun Oct 14 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.3-alt1.svn20071014 - SVN version * Thu Sep 20 2007 Alexey Shentzev <ashen@altlinux.ru> 2.1.1-alt1.4 - add support non english language, add for start from commandline * Tue Sep 11 2007 Alexey Shentzev <ashen@altlinux.ru> 2.1.1-alt1 - first build for Alt Linux [-- Attachment #1.3: ufoai-prog.spec --] [-- Type: text/plain, Size: 5422 bytes --] %define svnversion svn20071014 %define _localedir %_datadir/locale %define origname ufoai Name: %origname Version: 2.3 Release: alt1.%svnversion.2 License: GPL Packager: Alexey Shentzev <ashen@altlinux.org> Url: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk/ Source0: ufoai-%svnversion-mini.tar.bz2 # Create from SVN arhive # with Source4 #Source4: Create_Source_arhive.sh Source1: %origname.png Source2: ufoai_ru_po.tar.bz2 Source3: 0maps.pk3 Summary: This is the Data Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy ExclusiveArch: %ix86 x86_64 Patch1: ufoai-2.1.1-SDL.patch Patch2: ufoai-svn20070726-rootdir.patch Patch3: ufoai-svn20070730-locale.patch Patch4: ufoai-svn20070730-nice.patch Patch5: ufoai-svn20071014-libdir.patch # Automatically added by buildreq on Sun Oct 14 2007 BuildRequires: libSDL-devel libSDL_ttf-devel libcurl-devel libjpeg-devel libmesa-devel libncurses-devel libpng-devel libvorbis-devel BuildRequires: latex2html Group: Games/Strategy BuildArch: %ix86 x86_64 ExclusiveArch: %ix86 x86_64 BuildPreReq: libarts-devel libjpeg-devel libmesa-devel BuildPreReq: libcurl-devel libSDL-devel libSDL_ttf-devel libSDL_mixer-devel Requires: ufoai-music = %version Requires: ufoai-maps = %version Requires: ufoai-data = %version Summary: UFO: ALIEN INVASION is a strategy game %description UFO: ALIEN INVASION is a strategy game featuring tactical combat against hostile alien forces which are about to infiltrate earth at this very moment. You are in command of a small special unit which has been founded to face the alien strike force. To be successful on the long run, you will also have to have a research team study the aliens and their technologies in order to learn as much as possible about their technology, their goals and the aliens themselves. %description -l ru_RU.UTF-8 UFO: ALIEN INVASION п©п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐, п╠п╬я─я▄п╠п╟ я│ п╦п╫п╬п©п╩п╟п╫п╣я┌п╫я▀п╪ п╡я┌п╬я─п╤п╣п╫п╦п╣п╪ п╫п╟ п╪п╟я┌я┐я┬п╨я┐ п≈п╣п╪п╩я▌. п▓я▀ я▐п╡п╩я▐п╣я┌п╣я│я▄ я┐я┤п╟я│я┌п╫п╦п╨п╬п╪ я│п©п╣я├п╨п╬п╪п╟п╫п╢я▀ п©п╬ п╠п╬я─я▄п╠п╣ я│ п╦п╫п╬п©п╩п╟п╫п╣я┌п╫я▀п╪ п╡я┌п╬я─п╤п╣п╫п╦п╣п╪ п╫п╟ п©п╩п╟п╫п╣я┌я┐ п≈п╣п╪п╩я▐, я│п╬п╥п╢п╟п╫п╫п╬п╧ п╢п╩я▐ п©я─п╬я┌п╦п╡п╬я│я┌п╬я▐п╫п╦я▐ п╫п╣п╦п╥п╡п╣я│я┌п╫п╬п╧ я┐пЁя─п╬п╥п╣. п■п╩я▐ п╢п╬я│я┌п╦п╤п╣п╫п╦я▐ я┐я│п©п╣я┘п╟ п▓п╟п╪ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬ п╫п╣ я┌п╬п╩я▄п╨п╬ п╡я▀п╦пЁя─я▀п╡п╟я┌я▄ п╠п╦я┌п╡я▀, п╫п╬ п╦ п╦п╥я┐я┤п╟я┌я▄ п╦п╫п╬п©п╩п╟п╫п╣я┌я▐п╫, п╦я┘ я├п╣п╩п╦, я┌п╣я┘п╫п╬п╩п╬пЁп╦п╦, п╬я─я┐п╤п╦п╣. %package tools Summary: This is the Music Pack to strategy game UFO2 :Alien Invasion Group: Games/Strategy ExclusiveArch: %ix86 x86_64 %description tools This is the Map-Pack to UFO:AI. It is mandatory to play. %description tools -l ru_RU.UTF-8 Maps-я└п╟п╧п╩я▀ п╢п╩я▐ UFO:AI. %prep %setup -a2 -n ufoai-mini #patch2 -p1 #patch3 -p1 #patch4 -p1 %patch5 -p1 %build %configure --with-alsa %make_build %make_build lang %install #make_build install ROOTDIR=%buildroot DATADIR=%_gamesdatadir/%origname BINDIR=%_gamesbindir/ install -d -m 755 %buildroot%_gamesdatadir/%origname/base install -d -m 755 %buildroot%_gamesbindir install -d -m 755 %buildroot%_bindir install -d -m 755 %buildroot%_localedir pushd base/i18n for dir in *; do install -D -m 644 $dir/LC_MESSAGES/ufoai.mo %buildroot%_localedir/$dir/LC_MESSAGES/ufoai.mo; done popd install -D -m 0755 ufo %buildroot%_gamesbindir/ufo install -D -m 0755 ufo %buildroot%_gamesbindir/ufo2map install -D -m 0755 ufo %buildroot%_gamesbindir/ufoded install -D -m 0755 ufo %buildroot%_gamesbindir/ufomaster install -D -m 0755 ufo %buildroot%_gamesbindir/qdata install -D -m 0644 %SOURCE1 %buildroot%_pixmapsdir/%origname.png install -D -m 0644 base/game.so %buildroot%_libdir/%origname/game.so # .desktop install -d -m 755 %buildroot%_desktopdir/ cat > %buildroot%_desktopdir/%origname.desktop << EOF [Desktop Entry] Encoding=UTF-8 Type=Application Exec=/usr/bin/ufoai Patch=%_libdir/%origname Icon=%origname Terminal=false Name=UFO: Alien Invasion Comment=п÷п╬я┬п╟пЁп╬п╡п╟я▐ я│я┌я─п╟я┌п╣пЁп╦я▐ Categories=StrategyGame;Game EOF cat > %buildroot%_bindir/%origname << EOF #!/bin/sh cd %_gamesdatadir/ufoai /usr/games/ufo +set s_libdir %_libdir/%origname +set fs_basedir %_gamesdatadir/%origname/ +set vid_ref sdl +set fs_i18ndir %_localedir EOF %find_lang %origname %post %update_menus %postun %clean_menus %files -f %origname.lang %_gamesbindir/ufo %_libdir/%origname/game.so %attr(755,root,root) %_bindir/%origname %_pixmapsdir/%origname.png %_desktopdir/%origname.desktop %files tools %_gamesbindir/ufomaster %_gamesbindir/ufo2map %_gamesbindir/ufoded %_gamesbindir/qdata %changelog * Thu Oct 18 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.3-alt1.svn20071014.2 - delete locale.patch * Sun Oct 14 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.3-alt1.svn20071014.1 - correct dlopen * Sun Oct 14 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.3-alt1.svn20071014 - New version * Tue Oct 02 2007 Hihin Ruslan <ruslandh@altlinux.ru> 2.2-alt1.svn20070730 - SVN version * Thu Sep 20 2007 Alexey Shentzev <ashen@altlinux.ru> 2.1.1-alt1.4 - add support non english language, add for start from commandline * Tue Sep 11 2007 Alexey Shentzev <ashen@altlinux.ru> 2.1.1-alt1 - first build for Alt Linux [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-19 6:29 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-10-14 14:51 Хихин Руслан 2007-10-14 15:33 ` led 2007-10-14 15:52 ` Хихин Руслан 2007-10-14 16:42 ` led 2007-10-14 16:55 ` Хихин Руслан 2007-10-18 20:04 ` Хихин Руслан 2007-10-19 6:11 ` Алексей Шенцев 2007-10-19 6:29 ` Хихин Руслан [this message] 2007-10-19 7:07 ` Алексей Шенцев 2007-10-19 17:23 ` Хихин Руслан 2007-10-20 9:15 ` Алексей Шенцев 2007-10-15 6:42 ` Ildar Mulyukov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200710191029.29812@ruslandh \ --to=hihin@yandex.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git