瀏覽代碼

Update RPM spec

* Update instructions to fetch 0.99 tarball
* Remove missing README.linux file
* Add postinstall to create symlink to libvcmi.so
Trung Lê 5 年之前
父節點
當前提交
3338e4b855
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      rpm/vcmi.spec

+ 7 - 4
rpm/vcmi.spec

@@ -9,9 +9,9 @@ Group:				Amusements/Games
 
 
 # The source for this package was pulled from upstream's vcs.  Use the
 # The source for this package was pulled from upstream's vcs.  Use the
 # following commands to generate the tarball:
 # following commands to generate the tarball:
-#  wget https://github.com/vcmi/vcmi/archive/0.98.tar.gz
-#  tar -xzf 0.98.tar.gz vcmi-0.98-1
-Source:				vcmi-0.98-1.tar.gz
+#  wget https://github.com/vcmi/vcmi/archive/0.99.tar.gz
+#  tar -xzf 0.99.tar.gz vcmi-0.99-1
+Source:				vcmi-0.99-1.tar.gz
 
 
 URL:				http://forum.vcmi.eu/portal.php
 URL:				http://forum.vcmi.eu/portal.php
 
 
@@ -49,7 +49,7 @@ rm -rf %{buildroot}
 make DESTDIR=%{buildroot} install
 make DESTDIR=%{buildroot} install
 
 
 %files
 %files
-%doc README.md README.linux license.txt AUTHORS ChangeLog
+%doc README.md license.txt AUTHORS ChangeLog
 %{_bindir}/vcmiclient
 %{_bindir}/vcmiclient
 %{_bindir}/vcmiserver
 %{_bindir}/vcmiserver
 %{_bindir}/vcmibuilder
 %{_bindir}/vcmibuilder
@@ -60,6 +60,9 @@ make DESTDIR=%{buildroot} install
 %{_datadir}/applications/*
 %{_datadir}/applications/*
 %{_datadir}/icons/*
 %{_datadir}/icons/*
 
 
+%post
+%{__ln_s} -f %{_libdir}/%{name}/libvcmi.so %{_libdir}/libvcmi.so
+
 %changelog
 %changelog
 
 
 * Tue Nov 01 2016 VCMI - 0.99-1
 * Tue Nov 01 2016 VCMI - 0.99-1