summaryrefslogtreecommitdiff
path: root/pnetC.spec
blob: 810e0896a6a532158143e681ad44bf51b4e6062a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%define		pnetlib_version 0.7.4

Summary:	The ANSI compatible C library for IL
Summary(pl.UTF-8):   Zgodna z ANSI biblioteka C dla IL
Name:		pnetC
Version:	0.7.4
Release:	1
License:	LGPL
Vendor:		DotGNU
Group:		Libraries
Source0:	http://www.southern-storm.com.au/download/%{name}-%{version}.tar.gz
# Source0-md5:	9aacffc4e11b8f6ad1ed425c794bb01a
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	pnet-compiler-c = %{version}
BuildRequires:	pnet-compiler-csharp = %{version}
BuildRequires:	pnetlib-base = %{pnetlib_version}
Requires:	pnetlib-base = %{pnetlib_version}
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
The goal of the pnetC project is to create an ANSI-compatible C
library, that can be compiled down to IL using Portable.NET's "cscc"
compiler.

%description -l pl.UTF-8
Celem projektu pnetC jest stworzenie zgodnej z ANSI C biblioteki,
która może być skompilowana do IL korzystając z dostarczanego przez
Portable.NET kompilatora cscc.

%package devel
Summary:	Headers for pnet C library
Summary(pl.UTF-8):   Pliki nagłówkowe dla biblioteki pnet C
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	pnet-compiler-c = %{version}

%description devel
These are the header files required to build programs with the C
backend to cscc.

%description devel -l pl.UTF-8
Pliki nagłówkowe potrzebne do budowania programów korzystając z
nakładki C na cscc.

%prep
%setup -q

%build
%{__aclocal}
%{__automake} --ignore-deps
%{__autoconf}
%configure
%{__make}
%{__make} check

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT \
	CYG_CACHE=%{_libdir}/cscc/lib

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%{_libdir}/cscc/lib/*

%files devel
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README doc/*
%{_datadir}/cscc/include