]>
Commit | Line | Data |
---|---|---|
4552c890 JB |
1 | %include /usr/lib/rpm/macros.mono |
2 | Summary: Json.NET - a popular high-performance JSON framework for .NET | |
3 | Summary(pl.UTF-8): Json.NET - popularny, wydajny szkielet JSON dla .NET | |
4 | Name: dotnet-newtonsoft-json | |
5 | Version: 6.0.1 | |
bf62ede1 | 6 | Release: 2 |
4552c890 JB |
7 | License: MIT |
8 | Group: Libraries | |
9 | Source0: https://github.com/JamesNK/Newtonsoft.Json/archive/%{version}/Newtonsoft.Json-%{version}.tar.gz | |
10 | # Source0-md5: e341df12a672379713e9c200ed708860 | |
11 | Source1: newtonsoft-json.pc.in | |
12 | Source2: Newtonsoft.Json.source | |
13 | URL: http://james.newtonking.com/json | |
14 | BuildRequires: mono-csharp | |
15 | # xbuild | |
16 | BuildRequires: mono-devel | |
17 | BuildRequires: mono-monodoc | |
bf62ede1 | 18 | BuildRequires: rpmbuild(macros) >= 1.446 |
4552c890 JB |
19 | BuildRequires: rpmbuild(monoautodeps) |
20 | Requires: mono | |
21 | ExclusiveArch: %{ix86} %{x8664} arm ia64 ppc s390 s390x sparc sparcv9 sparc64 | |
22 | ExcludeArch: i386 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
4552c890 JB |
25 | %description |
26 | Json.NET is a popular high-performance JSON framework for .NET. | |
27 | Features: | |
28 | - Flexible JSON serializer for converting between .NET objects and | |
29 | JSON | |
30 | - LINQ to JSON for manually reading and writing JSON | |
31 | - High performance, faster than .NET's built-in JSON serializers | |
32 | - Write indented, easy to read JSON | |
33 | - Convert JSON to and from XML | |
34 | - Supports .NET 2, .NET 3.5, .NET 4, Silverlight, Windows Phone and | |
35 | Windows 8. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Json.NET to popularny, wydajny szkielet JSON dla .NET. Cechują go: | |
39 | - elastyczna serializacja JSON do konwersji między obiektami .NET i | |
40 | JSON | |
41 | - LINQ do JSON do ręcznego odczytu i zapisu formatu JSON | |
42 | - wydajna, szybsza niż wbudowana w .NET serializacja JSON | |
43 | - zapis czytelnego, zawierającego wcięcia formatu JSON | |
44 | - konwersja JSON do i z XML | |
45 | - obsługa .NET 2, .NET 3.5, .NET 4, Silverlight, Windows Phone oraz | |
46 | Windows 8. | |
47 | ||
48 | %package devel | |
49 | Summary: Development files for Json.NET library | |
50 | Summary(pl.UTF-8): Pliki programistyczne biblioteki Json.NET | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Development files for Json.NET library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki programistyczne biblioteki Json.NET. | |
59 | ||
60 | %prep | |
61 | %setup -q -n Newtonsoft.Json-%{version} | |
62 | ||
63 | %build | |
64 | # rules taken from Debian packaging | |
65 | xbuild Src/Newtonsoft.Json/Newtonsoft.Json.Net40.csproj \ | |
66 | /property:SignAssembly=true \ | |
67 | /property:AssemblyOriginatorKeyFile=Dynamic.snk \ | |
68 | /property:Configuration=Release \ | |
69 | /property:DefineConstants='SIGNED NET40 TRACE' | |
70 | mdoc update \ | |
71 | -o monodoc \ | |
72 | -i Src/Newtonsoft.Json/bin/Release/Net40/Newtonsoft.Json.xml \ | |
73 | Src/Newtonsoft.Json/bin/Release/Net40/Newtonsoft.Json.dll | |
74 | mdoc assemble \ | |
75 | --format ecma \ | |
76 | --out Newtonsoft.Json \ | |
77 | monodoc | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
bf62ede1 | 81 | install -d $RPM_BUILD_ROOT{%{_npkgconfigdir},%{_prefix}/lib/monodoc/sources} |
4552c890 JB |
82 | |
83 | gacutil -f -i Src/Newtonsoft.Json/bin/Release/Net40/Newtonsoft.Json.dll \ | |
84 | /package Newtonsoft.Json-6.0 \ | |
85 | /gacdir $RPM_BUILD_ROOT%{_prefix}/lib | |
86 | ||
87 | cp -p Newtonsoft.Json.{zip,tree} %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/lib/monodoc/sources | |
88 | ||
89 | %{__sed} -e 's,@prefix@,%{_prefix},' \ | |
90 | -e 's,@VERSION@,%{version},' \ | |
91 | -e 's,@MAJOR@,6.0,' \ | |
bf62ede1 | 92 | %{SOURCE1} > $RPM_BUILD_ROOT%{_npkgconfigdir}/newtonsoft-json.pc |
4552c890 JB |
93 | |
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %doc LICENSE.md Doc/readme.txt | |
100 | %{_prefix}/lib/mono/gac/Newtonsoft.Json | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %{_prefix}/lib/mono/Newtonsoft.Json-6.0 | |
105 | %{_prefix}/lib/monodoc/sources/Newtonsoft.Json.* | |
bf62ede1 | 106 | %{_npkgconfigdir}/newtonsoft-json.pc |