diff options
author | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-17 20:13:39 +1000 |
commit | 343cafef346543282b5b6e825bc8f9dd10028a48 (patch) | |
tree | 1bcf221ecb525c7aeadc8325e7b780d3656e544b /fish.spec.in | |
parent | 95a01f3c8f15034433ffce368d8f2d13d925139c (diff) |
Redo installation file structure, move lots of things to $PREFIX/share/fish
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz
Diffstat (limited to 'fish.spec.in')
-rw-r--r-- | fish.spec.in | 46 |
1 files changed, 41 insertions, 5 deletions
diff --git a/fish.spec.in b/fish.spec.in index 3ce51b7e..a7c9802f 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -13,40 +13,65 @@ Source0: http://roo.no-ip.org/%{name}/files/%{version}/%{name}-%{ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: doxygen ncurses-devel xorg-x11-devel + + + %description fish is a shell geared towards interactive use. It's features are focused on user friendlieness and discoverability. The language syntax is simple but incompatible with other shell languages. + + + %prep %setup -q -%build + + +%build %configure docdir=%_datadir/doc/%{name}-%{version} make %{?_smp_mflags} + + + %install rm -rf $RPM_BUILD_ROOT make install DESTDIR="$RPM_BUILD_ROOT" + + + %clean rm -rf $RPM_BUILD_ROOT + + + %post if ! grep %_bindir/fish %_sysconfdir/shells >/dev/null; then echo %_bindir/fish >>%_sysconfdir/shells fi + + + %postun if [ "$1" = 0 ]; then grep -v %_bindir/fish %_sysconfdir/shells >%_sysconfdir/fish.tmp mv %_sysconfdir/fish.tmp %_sysconfdir/shells fi + + + %files %defattr(-,root,root,-) + %doc %_datadir/doc/%{name}-%{version} + %_mandir/man1/fish.1* %_mandir/man1/xsel.1x* %_mandir/man1/mimedb.1* @@ -54,6 +79,7 @@ fi %_mandir/man1/count.1* %_mandir/man1/fishd.1* %_mandir/man1/fish_pager.1* + %attr(0755,root,root) %_bindir/fish %attr(0755,root,root) %_bindir/fishd %attr(0755,root,root) %_bindir/fish_pager @@ -61,16 +87,26 @@ fi %attr(0755,root,root) %_bindir/set_color %attr(0755,root,root) %_bindir/mimedb %attr(0755,root,root) %_bindir/count + %config %_sysconfdir/fish %config %_sysconfdir/fish_inputrc %dir %_sysconfdir/fish.d %config %_sysconfdir/fish.d/fish_*.fish -%dir %_sysconfdir/fish.d/completions -%config %_sysconfdir/fish.d/completions/*.fish -%dir %_sysconfdir/fish.d/functions -%config %_sysconfdir/fish.d/functions/*.fish + +%dir %_datadir/fish +%_datadir/fish/fish + +%dir %_datadir/fish/completions +%_datadir/fish/completions/*.fish + +%dir %_datadir/fish/functions +%_datadir/fish/functions/*.fish + %_datadir/locale/*/LC_MESSAGES/fish.mo + + + %changelog * Tue Nov 29 2005 Axel Liljencrantz <axel@liljencrantz.se> 1.17.0-0 - 1.17.0 |