[9472] | 1 | %define git 20130131 |
---|
| 2 | |
---|
[2048] | 3 | Summary: A .NET based build tool |
---|
[9472] | 4 | Summary(ja): .NET ベースのビルドツール |
---|
[2048] | 5 | Name: nant |
---|
[9472] | 6 | Version: 0.92 |
---|
| 7 | Release: 1%{?git:.git%{git}}%{?_dist_release} |
---|
| 8 | License: GPLv2+ and LGPLv2+ |
---|
[2048] | 9 | Group: Development/Tools |
---|
| 10 | URL: http://nant.sourceforge.net/ |
---|
[9472] | 11 | |
---|
| 12 | #Source0: http://downloads.sourceforge.net/nant/%{name}-%{version}-src.tar.gz |
---|
| 13 | # git clone //github.com/letiemble/nant.git |
---|
| 14 | Source0: %{name}.tar.xz |
---|
| 15 | |
---|
[2048] | 16 | BuildArch: noarch |
---|
[9472] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildRequires: dos2unix |
---|
[2048] | 19 | BuildRequires: mono-core |
---|
| 20 | BuildRequires: mono-devel |
---|
| 21 | BuildRequires: pkgconfig |
---|
[9472] | 22 | |
---|
| 23 | Autoreq: no |
---|
[2048] | 24 | Requires: mono-core |
---|
[9472] | 25 | Requires: mono-data |
---|
| 26 | Requires: mono-web |
---|
| 27 | Requires: mono-winforms |
---|
| 28 | #Requires: mono(System) |
---|
| 29 | #Requires: mono(System.Data) |
---|
| 30 | #Requires: mono(System.Drawing) |
---|
| 31 | #Requires: mono(System.Web) |
---|
| 32 | #Requires: mono(System.Windows.Forms) |
---|
| 33 | #Requires: mono(System.Xml) |
---|
| 34 | #Requires: mono(mscorlib) |
---|
| 35 | |
---|
| 36 | # ignore some bundled dlls |
---|
| 37 | %define _use_internal_dependency_generator 0 |
---|
| 38 | %define __find_provides env sh -c 'filelist=($(grep -v log4net.dll | grep -v scvs.exe | grep -v nunit | grep -v NDoc | grep -v neutral)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/mono-find-provides ; } | sort | uniq' |
---|
| 39 | %define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/mono-find-requires ; } | sort | uniq' |
---|
| 40 | |
---|
[2048] | 41 | Vendor: Project Vine |
---|
| 42 | Distribution: Vine Linux |
---|
| 43 | |
---|
| 44 | %description |
---|
| 45 | NAnt is a .NET based build tool. In theory it is kind of like make |
---|
| 46 | without make's wrinkles. In practice it's a lot like Ant. |
---|
| 47 | |
---|
[9472] | 48 | %package devel |
---|
| 49 | Summary: NAnt pkgconfig files |
---|
| 50 | License: LGPLv2 |
---|
| 51 | Group: Development/Libraries |
---|
| 52 | Requires: nant = %{version}-%{release} |
---|
| 53 | |
---|
| 54 | %description devel |
---|
| 55 | This package contains the pkgconfig files for NAnt. |
---|
| 56 | |
---|
[2048] | 57 | %prep |
---|
[9472] | 58 | %setup -q -n %{name} |
---|
[2048] | 59 | |
---|
| 60 | %build |
---|
[9472] | 61 | make TARGET=mono-4.5 MCS="gmcs -sdk:4" |
---|
[2048] | 62 | |
---|
| 63 | %install |
---|
| 64 | rm -rf $RPM_BUILD_ROOT |
---|
[9472] | 65 | make install prefix=%{_prefix} DESTDIR=$RPM_BUILD_ROOT TARGET=mono-4.5 MCS="gmcs -sdk:4" docdir=%{_docdir} |
---|
[2048] | 66 | |
---|
| 67 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig |
---|
| 68 | mv $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig/%{name}.pc $RPM_BUILD_ROOT%{_datadir}/pkgconfig |
---|
| 69 | |
---|
[9472] | 70 | chmod -x $RPM_BUILD_ROOT%{_datadir}/NAnt/bin/lib/common/2.0/nunit-console.exe.config |
---|
| 71 | dos2unix $RPM_BUILD_ROOT%{_datadir}/NAnt/bin/lib/common/2.0/nunit-console.exe.config |
---|
[2048] | 72 | |
---|
[9472] | 73 | rm -rf _docs |
---|
| 74 | mkdir -p _docs |
---|
| 75 | mv $RPM_BUILD_ROOT%{_docdir}/NAnt/* _docs |
---|
[2048] | 76 | |
---|
| 77 | %clean |
---|
| 78 | rm -rf $RPM_BUILD_ROOT |
---|
| 79 | |
---|
| 80 | %files |
---|
| 81 | %defattr(-,root,root) |
---|
[9472] | 82 | %doc COPYING.txt README.txt _docs/* |
---|
[2048] | 83 | %{_bindir}/nant |
---|
[9472] | 84 | %dir %{_datadir}/NAnt |
---|
| 85 | %{_datadir}/NAnt/* |
---|
| 86 | |
---|
| 87 | %files devel |
---|
| 88 | %defattr(-,root,root) |
---|
[2048] | 89 | %{_datadir}/pkgconfig/%{name}.pc |
---|
| 90 | |
---|
| 91 | %changelog |
---|
[9472] | 92 | * Sat Mar 28 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.92-1.git20140131 |
---|
| 93 | - updated to 0.92+git based on OpenSUSE |
---|
| 94 | - built with mono 3.12.1 |
---|
| 95 | |
---|
[3701] | 96 | * Mon Apr 25 2011 Shu KONNO <owa@bg.wakwak.com> 0.90-3 |
---|
| 97 | - rebuilt with mono-2.10.1-3 |
---|
| 98 | |
---|
[3285] | 99 | * Sun Apr 03 2011 Shu KONNO <owa@bg.wakwak.com> 0.90-2 |
---|
| 100 | - rebuilt with mono-2.10.1 |
---|
| 101 | |
---|
[2048] | 102 | * Tue Oct 12 2010 Shu KONNO <owa@bg.wakwak.com> 0.90-1 |
---|
| 103 | - initial build for VineSeed |
---|
| 104 | |
---|