+++ /dev/null
-%define version 3.0.1.8
-%define release 1
-
-Summary: hengband %{version}
-Name: hengband-en
-Version: %{version}
-Release: %{release}
-License: unknown
-Group: Amusements/Games
-Url: https://hengband.github.io
-Source: hengband-%{version}.tar.gz
-Requires: ncurses-libs libstdc++ libcurl libX11
-BuildRequires: autoconf automake gcc-c++ ncurses-devel libcurl-devel libX11-devel
-
-%description
-Hengband is a variant of ZAngband.
-
-Official page is this,
-https://hengband.github.io
-
-More infomation is /usr/share/doc/hengband-en/readme-eng.md
-This is an English version package.
-
-Summary(ja): 変愚蛮怒 %{version}
-
-%description -l ja
-変愚蛮怒は Angband のバリアントです。
-
-本ソフトウェアの最新版は以下の場所から入手できます。
-https://hengband.github.io
-
-詳しくは /usr/share/doc/hengband-en/readme.md を参照。
-このパッケージは英語版です。
-
-%prep
-rm -rf %{buildroot}
-
-%setup -n hengband-%{version}
-./bootstrap
-
-%build
-%configure --with-libpath=%{_datadir}/games/%{name}/lib --disable-japanese
-%make_build
-
-%install
-mkdir -p %{buildroot}/%{_bindir}
-mkdir -p %{buildroot}/%{_datadir}/games/%{name}
-%make_install bindir=%{_bindir}
-mv %{buildroot}/%{_bindir}/hengband %{buildroot}/%{_bindir}/hengband-en
-cp -R lib/ -p %{buildroot}/%{_datadir}/games/%{name}/
-find %{buildroot}/%{_datadir}/games/%{name}/ -type f -name "Makefile*" -exec rm {} \;
-find %{buildroot}/%{_datadir}/games/%{name}/ -type f -name "delete.me*" -exec rm {} \;
-find %{buildroot}/%{_datadir}/games/%{name}/ -name ".git*" -exec rm -rf {} \;
-rm -rf %{buildroot}/%{_datadir}/games/%{name}/lib/xtra/{sound,music}
-touch %{buildroot}/%{_datadir}/games/%{name}/lib/apex/scores.raw
-
-%clean
-rm -rf %{buildroot}
-
-%preun
-if [ -e %{_datadir}/games/%{name}/lib/data/f_info_j.raw ]
-then
-rm -rf %{_datadir}/games/%{name}/lib/data/*.raw
-fi
-exit 0
-
-%files
-%defattr(-,root,root)
-%attr(2755,root,games) %{_bindir}/%{name}
-%dir %{_datadir}/games/%{name}/lib
-%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/apex
-%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/bone
-%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/data
-%dir %{_datadir}/games/%{name}/lib/edit
-%dir %{_datadir}/games/%{name}/lib/file
-%dir %{_datadir}/games/%{name}/lib/file/books
-%dir %{_datadir}/games/%{name}/lib/help
-%dir %{_datadir}/games/%{name}/lib/info
-%dir %{_datadir}/games/%{name}/lib/pref
-%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/save
-%dir %{_datadir}/games/%{name}/lib/script
-%dir %{_datadir}/games/%{name}/lib/user
-%dir %{_datadir}/games/%{name}/lib/xtra
-%dir %{_datadir}/games/%{name}/lib/xtra/graf
-%{_datadir}/games/%{name}/lib/apex/h_scores.raw
-%{_datadir}/games/%{name}/lib/apex/readme.txt
-%attr(664 root,games) %config(noreplace) %{_datadir}/games/%{name}/lib/apex/scores.raw
-%{_datadir}/games/%{name}/lib/edit/*.txt
-%{_datadir}/games/%{name}/lib/edit/quests/*.txt
-%{_datadir}/games/%{name}/lib/edit/towns/*.txt
-%{_datadir}/games/%{name}/lib/file/*.txt
-%{_datadir}/games/%{name}/lib/file/books/*.txt
-%{_datadir}/games/%{name}/lib/help/*.hlp
-%{_datadir}/games/%{name}/lib/help/*.txt
-%{_datadir}/games/%{name}/lib/pref/*.prf
-%{_datadir}/games/%{name}/lib/xtra/graf/8x8.bmp
-%doc readme.md readme_angband readme-eng.md
-%license lib/help/jlicense.txt
-
-%changelog
-* Thu Mar 07 2024 Shiro Hara <white@vx-xv.com>
-- English version
-- hengband-en RPM 3.0.1.8(Beta)
-%define version 3.0.1.8
+%define version 3.0.1.9
%define release 1
Summary: hengband %{version}
Requires: ncurses-libs libstdc++ libcurl libX11
BuildRequires: autoconf automake gcc-c++ ncurses-devel libcurl-devel nkf libX11-devel
+Requires: %{name}-data
+
+%package data
+
+Summary: %{name}-data %{version}
+
+%package en
+
+Requires: ncurses-libs libstdc++ libcurl libX11
+Requires: %{name}-data
+Summary: %{name}-en %{version}
+
%description
Hengband is a variant of ZAngband.
詳しくは /usr/share/doc/hengband/readme.md を参照。
このパッケージは日本語版です。
+%description data
+Hengband is a variant of ZAngband.
+
+Official page is this,
+https://hengband.github.io
+
+More infomation is /usr/share/doc/hengband/readme-eng.md
+This packages contains common data files.
+
+Summary(ja): 変愚蛮怒 %{version}
+
+%description data -l ja
+変愚蛮怒は Angband のバリアントです。
+
+本ソフトウェアの最新版は以下の場所から入手できます。
+https://hengband.github.io
+
+詳しくは /usr/share/doc/hengband/readme.md を参照。
+このパッケージはゲーム用データです。
+
+%description en
+Hengband is a variant of ZAngband.
+
+Official page is this,
+https://hengband.github.io
+
+More infomation is /usr/share/doc/hengband/readme-eng.md
+This is a English version.
+
+Summary(ja): 変愚蛮怒 %{version}
+
%prep
rm -rf %{buildroot}
./bootstrap
%build
+%configure --with-libpath=%{_datadir}/games/%{name}/lib --disable-japanese
+%make_build
+cp src/hengband src/hengband-en
%configure --with-libpath=%{_datadir}/games/%{name}/lib
%make_build
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/games/%{name}
%make_install bindir=%{_bindir}
+cp src/hengband-en %{buildroot}/%{_bindir}
cp -R lib/ -p %{buildroot}/%{_datadir}/games/%{name}/
find %{buildroot}/%{_datadir}/games/%{name}/ -type f -name "Makefile*" -exec rm {} \;
find %{buildroot}/%{_datadir}/games/%{name}/ -type f -name "delete.me*" -exec rm {} \;
%files
%defattr(-,root,root)
%attr(2755,root,games) %{_bindir}/%{name}
+
+%files en
+%defattr(-,root,root)
+%attr(2755,root,games) %{_bindir}/%{name}-en
+
+%files data
%dir %{_datadir}/games/%{name}/lib
%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/apex
%attr(775,root,games) %dir %{_datadir}/games/%{name}/lib/bone
%license lib/help/jlicense.txt
%changelog
+* Sun Mar 10 2024 Shiro Hara <white@vx-xv.com>
+- Add en(English version), data(common data files) subpakages
+- hengband RPM 3.0.1.9(Beta)
+
* Mon Mar 04 2024 Shiro Hara <white@vx-xv.com>
- hengband RPM 3.0.1.8(Beta)