Browse Source

NEW PACKAGE

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8558 ec354946-7b23-47d6-9f5a-488ba84defc7
Takemikaduchi 9 years ago
parent
commit
74d97c110b
2 changed files with 239 additions and 0 deletions
  1. 130 0
      n/ninja/ninja-vl.spec
  2. 109 0
      r/re2c/re2c-vl.spec

+ 130 - 0
n/ninja/ninja-vl.spec

@@ -0,0 +1,130 @@
+#global githash 5dc55a3
+
+Name:           ninja
+Version:        1.4.0
+Release:        1%{?_dist_release}
+Group:          Development/Tools
+Summary:        A small build system with a focus on speed
+
+License:        ASL 2.0
+URL:            http://martine.github.com/ninja/
+#VCS:            git://github.com/martine/ninja.git
+# Snapshot from github
+# Downloaded from https://github.com/martine/ninja/tarball/%{githash}
+#Source0:        martine-ninja-%{githash}.tar.gz
+Source0:        https://github.com/martine/ninja/archive/v%{version}.tar.gz
+Source1:        ninja.vim
+
+BuildRequires:  asciidoc
+BuildRequires:  gtest-devel
+BuildRequires:  re2c
+Requires:       emacsen
+Requires:       vim
+
+%description
+Ninja is a small build system with a focus on speed. It differs from other
+build systems in two major respects: it is designed to have its input files
+generated by a higher-level build system, and it is designed to run builds as
+fast as possible.
+
+
+%prep
+%setup -q -n ninja-%{version}
+
+
+%build
+CFLAGS="%{optflags}"
+export CFLAGS
+./bootstrap.py --verbose -- --debug
+./ninja -v manual
+./ninja -v ninja_test
+
+
+%check
+# workaround possible too low default limits
+ulimit -n 2048
+ulimit -u 2048
+
+./ninja_test
+
+
+%install
+# TODO: Install ninja_syntax.py?
+install -p -m 755 -d %{buildroot}%{_bindir}
+install -p -m 755 ninja %{buildroot}%{_bindir}/ninja
+
+install -p -m 755 -d %{buildroot}%{_sysconfdir}/bash_completion.d
+install -p -m 644 misc/bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/ninja-bash-completion
+
+install -p -m 755 -d %{buildroot}%{_datadir}/emacs/site-lisp
+install -p -m 644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el
+
+install -p -m 755 -d %{buildroot}%{_datadir}/vim/vimfiles/syntax
+install -p -m 644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
+install -p -m 755 -d %{buildroot}%{_datadir}/vim/vimfiles/ftdetect
+install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
+
+install -p -m 755 -d %{buildroot}%{_datadir}/zsh/site-functions
+install -p -m 644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja
+
+
+%files
+%doc COPYING README doc/manual.html
+%{_bindir}/ninja
+# bash-completion does not own this
+%{_sysconfdir}/bash_completion.d/
+%{_datadir}/emacs/site-lisp/ninja-mode.el
+%{_datadir}/vim/vimfiles/syntax/ninja.vim
+%{_datadir}/vim/vimfiles/ftdetect/ninja.vim
+# zsh does not have a -filesystem package
+%{_datadir}/zsh/
+
+
+%changelog
+* Thu Jun 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.4.0-1
+- initial build for Vine Linux
+
+
+* Wed Nov 20 2013 Ben Boeckel <mathstuf@gmail.com> - 1.4.0-1
+- Update to 1.4.0
+
+* Sun Nov  3 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.3.4-4
+- Use special %%doc to install all docs (#994005).
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Fri Jun 21 2013 Dan Horák <dan[at]danny.cz> - 1.3.4-2
+- workaround possible too low limits for number of processes and open files,
+  fixes build on ppc/ppc64 and s390(x)
+
+* Sun Jun 09 2013 Ben Boeckel <mathstuf@gmail.com> - 1.3.4-1
+- Update to 1.3.4
+- Run test suite
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Sun Nov 04 2012 Ben Boeckel <mathstuf@gmail.com> - 1.0.0-1
+- Update to 1.0.0
+
+* Thu Jul 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.6.20120719git5dc55a3
+- Update to new snapshot
+
+* Mon Jul 09 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.5.20120709gitb90d038
+- Preserve timestamps on install
+- Install as ninja-build to avoid conflicts with the ninja IRC package
+- Update snapshot
+
+* Tue Jun 19 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.4.20120605git54553d3
+- Add an ftdetect file for ninja
+- Fix zsh-stuff directory ownership
+
+* Thu Jun 07 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.3.20120605git54553d3
+- Add a Group tag
+
+* Tue Jun 05 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.2.20120605git54553d3
+- Update to new snapshot
+
+* Fri Mar 30 2012 Ben Boeckel <mathstuf@gmail.com> - 0-0.1.20120330gitabd33d5
+- Initial package

+ 109 - 0
r/re2c/re2c-vl.spec

@@ -0,0 +1,109 @@
+Summary: Tool for generating C-based recognizers from regular expressions
+Name: re2c
+Version: 0.13.5
+Release: 1%{?_dist_release}
+License: Public Domain
+Group: Development/Tools
+URL: http://re2c.org/
+Source: http://downloads.sf.net/re2c/re2c-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+re2c is a tool for writing very fast and very flexible scanners. Unlike any
+other such tool, re2c focuses on generating high efficient code for regular
+expression matching. As a result this allows a much broader range of use than
+any traditional lexer offers. And Last but not least re2c generates warning
+free code that is equal to hand-written code in terms of size, speed and
+quality.
+
+
+%prep
+%setup -q
+# Fix all those executable files, set executable only the ones that need to be
+find . -type f -exec chmod -x {} \;
+%{__chmod} +x configure depcomp install-sh missing
+
+
+%build
+%configure
+# Build re2c, then our own scanner.cc, then rebuild the final re2c with it
+%{__make} %{?_smp_mflags} re2c
+%{__rm} -f scanner.cc
+./re2c -b -o scanner.cc scanner.re
+%{__rm} -f re2c scanner.o
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__install} -D -p -m 0755 re2c %{buildroot}%{_bindir}/re2c
+%{__install} -D -p -m 0644 re2c.1 %{buildroot}%{_mandir}/man1/re2c.1
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG README examples/ doc/* lessons/
+%{_bindir}/re2c
+%{_mandir}/man1/re2c.1*
+
+
+%changelog
+* Thu Jun 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.13.5-1
+- initial build for Vine Linux
+
+
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.5-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.5-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.5-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.5-4
+- Rebuilt for c++ ABI breakage
+
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Mon Jul 12 2010 Matthias Saou <http://freshrpms.net/> 0.13.5-1
+- Update to 0.13.5.
+- Update URL to the one used in the included spec file.
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.3-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.12.3-2
+- Autorebuild for GCC 4.3
+
+* Thu Sep 13 2007 Matthias Saou <http://freshrpms.net/> 0.12.3-1
+- Update to 0.12.3.
+
+* Thu Aug 23 2007 Matthias Saou <http://freshrpms.net/> 0.12.2-1
+- Update to 0.12.2.
+- Update URL location.
+
+* Wed Jun 20 2007 Matthias Saou <http://freshrpms.net/> 0.12.1-2
+- Fix license tag to "Public Domain".
+- Update description with most recent text from the website.
+
+* Wed Jun 20 2007 Matthias Saou <http://freshrpms.net/> 0.12.1-1
+- Spec file changes.
+
+* Wed May 23 2007 Dag Wieers <dag@wieers.com> - 0.12.1-1
+- Updated to release 0.12.1.
+
+* Thu May 03 2007 Dag Wieers <dag@wieers.com> - 0.12.0-1
+- Initial version.
+